invik Apr 10th, 2012 271 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- #! /usr/bin/python2
- # fakehtcnat.py, by invik
- import sys,socket
- if len(sys.argv)<2:
- print "Usage: " + sys.argv + " [phone IP]\n"
- HOST = sys.argv
- PORT = 6000
- s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
- s.setsockopt(socket.SOL_IP, socket.IP_TTL, 128 )
- s.connect((HOST, PORT))
- s.sendall(chr(0) + chr(2) + chr(0) + chr(0))
- print "Sent."
RAW Paste Data