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

Before Change


                break

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

    except Exception as e:
        bssid = None
        logging.error("api: %s" % 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: hyperspy/hyperspy
Commit Name: 904e72663b634ce65641c3c99e2219e91aefc671
Time: 2017-01-10
Author: eric.prestat@gmail.com
File Name: hyperspy/misc/date_time_tools.py
Class Name:
Method Name: update_date_time_in_metadata


Project Name: idaholab/raven
Commit Name: 817dab1773d0c2cbfbbea466e5967ffed5ba4d45
Time: 2018-01-24
Author: andrea.alfonsi@inl.gov
File Name: framework/CodeInterfaces/Generic/GenericCodeInterface.py
Class Name: GenericCode
Method Name: generateCommand