Advertisement
infodox

def_sniff

Dec 8th, 2011
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.44 KB | None | 0 0
  1. # def sniff
  2.  
  3. def dsniff(iface):
  4.     if iface =="":
  5.         print("No Wireless Interface")
  6.         sleep(2)
  7.     else:
  8.         os.popen("ettercap -Tqi " + iface + " &")
  9.         os.popen("xterm -e dsniff -i " + iface + " &")
  10.         os.popen("xterm -e driftnet -i " + iface + " &")
  11.         os.popen("xterm -e msgsnarf -i " + iface + " &")
  12.         os.popen("xterm -e urlsnarf -i " + iface)
  13.         os.popen("killall xterm && rm dsniff.services")
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement