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(('localhost', 2999))
  8. dato=s.recv(1024)
  9. print dato
  10. num=dato[13:23]
  11. print num
  12. numint=int(num)
  13. little = pack("<I",numint)
  14. s.send(little)
  15. print s.recv(1024)
  16. s.close()