AZZATSSINS_CYBERSERK

Header Checker (NPAZone)

Apr 12th, 2017
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.35 KB | None | 0 0
  1. import socket
  2.  
  3. HOST ='10.1.89.130'
  4. PORT = 3128
  5. DATA = 'GET /min_balance8 HTTP/1.1\r\nHost: 123.xl.co.id\r\n\r\n'
  6.  
  7. def tcp_client():
  8.     client = socket.socket( socket.AF_INET, socket.SOCK_STREAM)
  9.     client.connect(( HOST, PORT ))
  10.     client.send(DATA)
  11.     response = client.recv(4096)
  12.     print response
  13.  
  14. if __name__ == '__main__':
  15.     tcp_client()
Add Comment
Please, Sign In to add comment