90b0e10e81a5a0e03753715ec1034278bdd5f600,pwnagotchi/plugins/default/api.py,,parse_pcap,#Any#,86

Before Change



        for pkt in rdpcap(filename):
            info = parse_packet(pkt, info)
            if "essid" in info and info["essid"] is not None and "bssid" in info and info["bssid"] is not None:
                break

        bssid = info["bssid"] if "bssid" in info else None
        essid = info["essid"] if "essid" in info else None

    except Exception as e:

After Change



    net_id = os.path.basename(filename).replace(".pcap", "")

    if "_" in net_id:
        // /root/handshakes/ESSID_BSSID.pcap
        essid, bssid = net_id.split("_")
    else:
        // /root/handshakes/BSSID.pcap
        essid, bssid = "", net_id

    it = iter(bssid)
    bssid = ":".join([a + b for a, b in zip(it, it)])

    info = {
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: evilsocket/pwnagotchi
Commit Name: 90b0e10e81a5a0e03753715ec1034278bdd5f600
Time: 2019-10-07
Author: evilsocket@gmail.com
File Name: pwnagotchi/plugins/default/api.py
Class Name:
Method Name: parse_pcap


Project Name: NervanaSystems/nlp-architect
Commit Name: f2889ca90ddd60b19070b7e8fbcb0867ae4c47ed
Time: 2019-05-01
Author: peter.izsak@intel.com
File Name: setup.py
Class Name:
Method Name:


Project Name: ray-project/ray
Commit Name: 58efec0f2bc7e8de2ea9b89ec638d4a0a2d60537
Time: 2020-06-12
Author: rliaw@berkeley.edu
File Name: python/ray/util/sgd/torch/distributed_torch_runner.py
Class Name: LocalDistributedRunner
Method Name: _try_reserve_and_set_cuda