daily pastebin goal
70%
SHARE
TWEET

fakehtcnat.py

invik Apr 10th, 2012 270 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. #! /usr/bin/python2
  2.  
  3. # fakehtcnat.py, by invik
  4.  
  5. import sys,socket
  6.  
  7. if len(sys.argv)<2:
  8. print "Usage: " + sys.argv[0] + " [phone IP]\n"
  9. exit()
  10.  
  11. HOST = sys.argv[1]
  12. PORT = 6000
  13. s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  14. s.setsockopt(socket.SOL_IP, socket.IP_TTL, 128 )
  15. s.connect((HOST, PORT))
  16. s.sendall(chr(0) + chr(2) + chr(0) + chr(0))
  17. s.close()
  18.  
  19. print "Sent."
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