コード例 #1
0
ファイル: wifi_clients.py プロジェクト: 4sp1r3/snoopy-ng
    def __init__(self, **kwargs):

        self.proxWindow = kwargs.get('proxWindow', 300)
        self.hash_macs = kwargs.get('hash_macs', False)
        self.verb = kwargs.get('verbose', 0)
        self.fname = os.path.splitext(os.path.basename(__file__))[0]
        self.prox = prox(proxWindow=self.proxWindow, identName="mac", pulseName="num_probes", verb=0, callerName=self.fname)
        self.device_vendor = fifoDict(names=("mac", "vendor", "vendorLong"))
        self.client_ssids = fifoDict(names=("mac","ssid"))

        self.mv = mac_vendor()    
        self.lastPrintUpdate = 0
コード例 #2
0
ファイル: wifi_aps.py プロジェクト: FomkaV/wifi-arsenal
    def __init__(self, **kwargs):

        self.hash_macs = kwargs.get("hash_macs", False)
        proxWindow = kwargs.get("proxWindow", 300)
        self.verb = kwargs.get("verbose", 0)
        self.fname = os.path.splitext(os.path.basename(__file__))[0]

        self.prox = prox(proxWindow=proxWindow, identName="mac", pulseName="num_beacons")
        self.ap_names = fifoDict()
        self.device_vendor = fifoDict()

        self.mv = mac_vendor()
        self.lastPrintUpdate = 0
コード例 #3
0
    def __init__(self, **kwargs):

        self.hash_macs = kwargs.get('hash_macs', False)
        proxWindow = kwargs.get('proxWindow', 300)
        self.verb = kwargs.get('verbose', 0)
        self.fname = os.path.splitext(os.path.basename(__file__))[0]

        self.prox = prox(proxWindow=proxWindow,
                         identName="mac",
                         pulseName="num_beacons")
        self.ap_names = fifoDict()
        self.device_vendor = fifoDict()

        self.mv = mac_vendor()
        self.lastPrintUpdate = 0
コード例 #4
0
ファイル: wifi_clients.py プロジェクト: buntuuuu/snoopy-pi
    def __init__(self, **kwargs):

        self.proxWindow = kwargs.get('proxWindow', 300)
        self.hash_macs = kwargs.get('hash_macs', False)
        self.verb = kwargs.get('verbose', 0)
        self.fname = os.path.splitext(os.path.basename(__file__))[0]
        self.prox = prox(proxWindow=self.proxWindow,
                         identName="mac",
                         pulseName="num_probes",
                         verb=0,
                         callerName=self.fname)
        self.device_vendor = fifoDict(names=("mac", "vendor", "vendorLong"))
        self.client_ssids = fifoDict(names=("mac", "ssid"))

        self.mv = mac_vendor()
        self.lastPrintUpdate = 0
コード例 #5
0
ファイル: bluScan.py プロジェクト: 4sp1r3/snoopy-ng
import subprocess
from datetime import datetime
from datetime import date
from includes.mac_vendor import mac_vendor
import logging

flag_do_sdp = False
mv = mac_vendor()

def scan():
        cmd_scan = "hcitool scan --info --class --flush"
        try:
            cmd_scan_out = subprocess.Popen(cmd_scan.split(),stdout=subprocess.PIPE,stderr=subprocess.PIPE).communicate()
        except Exception,e:
            logging.error("Unable to scan for Bluetooth devices: '%s'" %str(e))
        else:
            # parse scan results
            if len(cmd_scan_out[0]) > 16:
                devices = []
    
                for record in cmd_scan_out[0].split('\n\n')[1:-1]:
                    record = record.split('\n')
                    device = {'mac':'Unknown', 'vendor':'Unknown', 'vendorLong':'Unknown', 'name':'Unknown', 'classType':'Unknown','manufac':'Unknown','lmpVer':'Unknown'}         
     
                    try:
                        device['mac'] = mac = record[0][12:29:].replace(':','').lower()
                        device['vendor'], device['vendorLong'] = mv.lookup(mac[:6])
                        device['name'] = record[1][13:].replace('[cached]','') #name
                        device['classType'] = record[2][14:].replace("Device conforms to the ","") #class+type
        
                        if len(record)>3: