Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. #!/usr/bin/env python
  2.  
  3. from socket import *
  4. from struct import *
  5.  
  6. s = socket(AF_INET, SOCK_STREAM)
  7. s.connect(('192.168.66.11', 2998))
  8. dato=s.recv(1024)
  9. print dato
  10. num=unpack("<I",dato)[0]
  11. print num
  12. numstr=str(num)
  13. s.send(numstr)
  14. print s.recv(1024)
  15. s.close()