This file contains hidden or 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