def main(adapter, scantime, verbose, dictionary, number, nearby, jsonprint, out, allmacaddresses, manufacturers, nocorrection, loop, analyze, port, sort, targetmacs, pcap):
    if analyze != '':
        analyze_file(analyze, port)
        return
    if loop:
        while True:
            adapter = scan(adapter, scantime, verbose, dictionary, number,
                 nearby, jsonprint, out, allmacaddresses, manufacturers, nocorrection, loop, sort, targetmacs, pcap)
    else:
        scan(adapter, scantime, verbose, dictionary, number,
             nearby, jsonprint, out, allmacaddresses, manufacturers, nocorrection, loop, sort, targetmacs, pcap)
예제 #2
0
def main(adapter, scantime, verbose, number, nearby, jsonprint, out,
         allmacaddresses, nocorrection, loop, analyze, port, sort):
    if analyze != '':
        analyze_file(analyze, port)
        return
    if loop:
        while True:
            scan(adapter, scantime, verbose, number, nearby, jsonprint, out,
                 allmacaddresses, nocorrection, loop, sort)
    else:
        scan(adapter, scantime, verbose, number, nearby, jsonprint, out,
             allmacaddresses, nocorrection, loop, sort)
예제 #3
0
def main(adapter, scantime, verbose, dictionary, number, nearby, jsonprint, out, allmacaddresses, nocorrection, loop, analyze, port, sort, targetmacs, pcap, project_id, registry_id, device_id, private_key_file, algorithm, cloud_region, ca_certs, num_messages, message_type, base_url, jwt_expires_minutes):
    if analyze != '':
        analyze_file(analyze, port)
        return
    if loop:
        while True:
            adapter = scan(adapter, scantime, verbose, dictionary, number,
                           nearby, jsonprint, out, allmacaddresses, nocorrection, loop, sort, targetmacs, pcap,
                           project_id, registry_id, device_id, private_key_file, algorithm, cloud_region, ca_certs, num_messages, message_type, base_url, jwt_expires_minutes)
    else:
        scan(adapter, scantime, verbose, dictionary, number,
             nearby, jsonprint, out, allmacaddresses, nocorrection, loop, sort, targetmacs, pcap,
             project_id, registry_id, device_id, private_key_file, algorithm, cloud_region, ca_certs, num_messages, message_type, base_url, jwt_expires_minutes)
예제 #4
0
def main(adapter, scantime, verbose, number, nearby, jsonprint, out,
         allmacaddresses, nocorrection, loop, analyze, port, parsefile, output,
         sort, targetmacs):
    if analyze != '':
        analyze_file(analyze, port)
        return
    if parsefile != '':
        parse_file(parsefile, output)
        return
    if loop:
        while True:
            adapter = scan(adapter, scantime, verbose, number, nearby,
                           jsonprint, out, allmacaddresses, nocorrection, loop,
                           sort, targetmacs)
    else:
        scan(adapter, scantime, verbose, number, nearby, jsonprint, out,
             allmacaddresses, nocorrection, loop, sort, targetmacs)