INNER CODE UNIT · Python

main

A3sal0n/CyberThreatHunting · tools/dga-hunt.py:32

def main(argv):
    startTime = datetime.now()
    source = ''
    ifile = ''
    ofile = ''
    domains = []

    try:
        opts, args = getopt.getopt(argv, "hs:i:o:", ["source=", "ifile=", "ofile="])
    except getopt.GetoptError:
        print('dga-hunt.py -s <csv/pcap> -i <input file> -o <output file>')
        sys.exit(2)
    for opt, arg in opts:
        if opt == '-h':
            print('dga-hunt.py -s <csv/pcap> -i <input file> -o <output file>')
            sys.exit()
        elif opt in ("-s", "--source"):
            source = arg

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…