Skip to content

Instantly share code, notes, and snippets.

@ujj-nuvo
Created January 8, 2016 17:19
Show Gist options
  • Save ujj-nuvo/9c752cf867606f17983f to your computer and use it in GitHub Desktop.
Save ujj-nuvo/9c752cf867606f17983f to your computer and use it in GitHub Desktop.
import pcapy
from impacket.ImpactDecoder import *
from impacket.ImpactPacket import *
def get_interface():
devs = pcapy.findalldevs()
i=0
for eth in devs:
print " %d - %s" %(i,devs[i])
i+=1
if __name__ == "__main__":
dev = get_interface()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment