This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import requests | |
import urllib | |
# | |
# Usage | |
# | |
parser = argparse.ArgumentParser(description='RIPE bulk update of attributes') | |
parser.add_argument('--mntner', help='the current maintainer username', required=True) | |
parser.add_argument('--passwd', help='the current maintainer password', required=True) | |
parser.add_argument('--commit', help='to commit the RIPE bulk changes', action='store_true') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from os import remove | |
from re import search | |
from scapy.all import * | |
import argparse | |
# Usage | |
parser = argparse.ArgumentParser(description='Convert raw Huawei hex packets to cap file.') | |
parser.add_argument('--raw-file', help='the raw file location (source)', default='raw.txt') | |
parser.add_argument('--cap-file', help='the cap file location (destination)', default='cap.pcap') | |
args = parser.parse_args() |
NewerOlder