Created
January 8, 2016 17:19
-
-
Save ujj-nuvo/9c752cf867606f17983f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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