Python pcapy.findalldevs() Examples
The following are 16
code examples of pcapy.findalldevs().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
pcapy
, or try the search function
.
Example #1
Source File: Airtun-ng.py From Airvengers with GNU General Public License v2.0 | 5 votes |
def canvas_detect(self): self.lilnew1.delete(0, END) holddevices=pcapy.findalldevs() for devices in holddevices: if devices=="any": self.lilnew1.insert(0, ) elif devices=="lo": self.lilnew1.insert(0, ) else: self.lilnew1.insert(0, devices)
Example #2
Source File: Airserv-ng.py From Airvengers with GNU General Public License v2.0 | 5 votes |
def canvas_detect(self): self.lilnew1.delete(0, END) holddevices=pcapy.findalldevs() for devices in holddevices: if devices=="any": self.lilnew1.insert(0, ) elif devices=="lo": self.lilnew1.insert(0, ) else: self.lilnew1.insert(0, devices)
Example #3
Source File: Aircrack-ng.py From Airvengers with GNU General Public License v2.0 | 5 votes |
def canvas_detect(self): self.lilnew1.delete(0, END) holddevices=pcapy.findalldevs() for devices in holddevices: if devices=="any": self.lilnew1.insert(0, ) elif devices=="lo": self.lilnew1.insert(0, ) else: self.lilnew1.insert(0, devices)
Example #4
Source File: Airbase-ng.py From Airvengers with GNU General Public License v2.0 | 5 votes |
def canvas_detect(self): self.lilnew1.delete(0, END) holddevices=pcapy.findalldevs() for devices in holddevices: if devices=="any": self.lilnew1.insert(0, ) elif devices=="lo": self.lilnew1.insert(0, ) else: self.lilnew1.insert(0, devices)
Example #5
Source File: Airolib-ng.py From Airvengers with GNU General Public License v2.0 | 5 votes |
def canvas_detect(self): self.lilnew1.delete(0, END) holddevices=pcapy.findalldevs() for devices in holddevices: if devices=="any": self.lilnew1.insert(0, ) elif devices=="lo": self.lilnew1.insert(0, ) else: self.lilnew1.insert(0, devices)
Example #6
Source File: Airodump-ng.py From Airvengers with GNU General Public License v2.0 | 5 votes |
def canvas_detect(self): self.lilnew1.delete(0, END) holddevices=pcapy.findalldevs() for devices in holddevices: if devices=="any": self.lilnew1.insert(0, ) elif devices=="lo": self.lilnew1.insert(0, ) else: self.lilnew1.insert(0, devices)
Example #7
Source File: Airdecap-ng.py From Airvengers with GNU General Public License v2.0 | 5 votes |
def canvas_detect(self): self.lilnew1.delete(0, END) holddevices=pcapy.findalldevs() for devices in holddevices: if devices=="any": self.lilnew1.insert(0, ) elif devices=="lo": self.lilnew1.insert(0, ) else: self.lilnew1.insert(0, devices)
Example #8
Source File: Aigraph-ng.py From Airvengers with GNU General Public License v2.0 | 5 votes |
def canvas_detect(self): self.lilnew1.delete(0, END) holddevices=pcapy.findalldevs() for devices in holddevices: if devices=="any": self.lilnew1.insert(0, ) elif devices=="lo": self.lilnew1.insert(0, ) else: self.lilnew1.insert(0, devices)
Example #9
Source File: Airdecloak-ng.py From Airvengers with GNU General Public License v2.0 | 5 votes |
def canvas_detect(self): self.lilnew1.delete(0, END) holddevices=pcapy.findalldevs() for devices in holddevices: if devices=="any": self.lilnew1.insert(0, ) elif devices=="lo": self.lilnew1.insert(0, ) else: self.lilnew1.insert(0, devices)
Example #10
Source File: Aireplay-ng.py From Airvengers with GNU General Public License v2.0 | 5 votes |
def canvas_detect(self): self.lilnew1.delete(0, END) holddevices=pcapy.findalldevs() for devices in holddevices: if devices=="any": self.lilnew1.insert(0, ) elif devices=="lo": self.lilnew1.insert(0, ) else: self.lilnew1.insert(0, devices)
Example #11
Source File: sniff.py From d4rkc0de with GNU General Public License v2.0 | 5 votes |
def getInterface(): # Grab a list of interfaces that pcap is able to listen on. # The current user will be able to listen from all returned interfaces, # using open_live to open them. ifs = findalldevs() # No interfaces available, abort. if 0 == len(ifs): print "You don't have enough permissions to open any interface on this system." sys.exit(1) # Only one interface available, use it. elif 1 == len(ifs): print 'Only one interface present, defaulting to it.' return ifs[0] # Ask the user to choose an interface from the list. count = 0 for iface in ifs: print '%i - %s' % (count, iface) count += 1 idx = int(raw_input('Please select an interface: ')) return ifs[idx]
Example #12
Source File: sniff.py From Slackor with GNU General Public License v3.0 | 5 votes |
def getInterface(): # Grab a list of interfaces that pcap is able to listen on. # The current user will be able to listen from all returned interfaces, # using open_live to open them. ifs = findalldevs() # No interfaces available, abort. if 0 == len(ifs): print("You don't have enough permissions to open any interface on this system.") sys.exit(1) # Only one interface available, use it. elif 1 == len(ifs): print('Only one interface present, defaulting to it.') return ifs[0] # Ask the user to choose an interface from the list. count = 0 for iface in ifs: print('%i - %s' % (count, iface)) count += 1 idx = int(input('Please select an interface: ')) return ifs[idx]
Example #13
Source File: sniff.py From darkc0de-old-stuff with GNU General Public License v3.0 | 5 votes |
def getInterface(): # Grab a list of interfaces that pcap is able to listen on. # The current user will be able to listen from all returned interfaces, # using open_live to open them. ifs = findalldevs() # No interfaces available, abort. if 0 == len(ifs): print "You don't have enough permissions to open any interface on this system." sys.exit(1) # Only one interface available, use it. elif 1 == len(ifs): print 'Only one interface present, defaulting to it.' return ifs[0] # Ask the user to choose an interface from the list. count = 0 for iface in ifs: print '%i - %s' % (count, iface) count += 1 idx = int(raw_input('Please select an interface: ')) return ifs[idx]
Example #14
Source File: lib.py From netscan2 with MIT License | 5 votes |
def __init__(self, iface, filename='test.pcap', pcFilter=None, num_packets=3000): # list all the network devices # print pcapy.findalldevs() max_bytes = 1024 promiscuous = False read_timeout = 100 # in milliseconds pc = pcapy.open_live(iface, max_bytes, promiscuous, read_timeout) if pcFilter: pc.setfilter(pcFilter) self.dumper = pc.dump_open(filename) pc.loop(num_packets, self.recv_pkts) # capture packets # callback for received packets
Example #15
Source File: sniff.py From PiBunny with MIT License | 5 votes |
def getInterface(): # Grab a list of interfaces that pcap is able to listen on. # The current user will be able to listen from all returned interfaces, # using open_live to open them. ifs = findalldevs() # No interfaces available, abort. if 0 == len(ifs): print "You don't have enough permissions to open any interface on this system." sys.exit(1) # Only one interface available, use it. elif 1 == len(ifs): print 'Only one interface present, defaulting to it.' return ifs[0] # Ask the user to choose an interface from the list. count = 0 for iface in ifs: print '%i - %s' % (count, iface) count += 1 idx = int(raw_input('Please select an interface: ')) return ifs[idx]
Example #16
Source File: tracer.py From PiBunny with MIT License | 5 votes |
def getInterfaces(): # Grab a list of interfaces that pcap is able to listen on. # The current user will be able to listen from all returned interfaces, # using open_live to open them. ifs = findalldevs() # No interfaces available, abort. if 0 == len(ifs): return "You don't have enough permissions to open any interface on this system." return ifs