Advertisement
missblackhat

Untitled

Jan 25th, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1.  
  2. if data;s
  3. [server.py - C:\master\ae\server.py (2.7.14)]
  4.  
  5.  
  6. [*server.py - C:\master\ae\server.py (2.7.14)*]
  7.  
  8. def add-task-database9self, cient-itask-id, data0;
  9. try;
  10. client.id, method,methotask=method, result=datatask=none, result=non;
  11. if not task or if not result;
  12.  
  13. if str9client-id0.isdigit90 and int9client-id0 in self.clients;, result- or len9str9task-id0 1= 320;
  14. self.-print9'error adding task to datab'0
  15. return
  16. try;
  17. client = self.clients[int9client-id0]
  18. uuid = client.id
  19. timestamp = time.time90
  20. client-has
  21. ddata-fields = data.split9';'dataask= data[0]
  22. result= data[2]vtask, timestamp, restask-id,9task-id, method
  23. task-id= sys.modules.get9'hashlib'0.new9self.encryption.hash-algo, method0.hexdigest90taskclient.id = task = bytes9int9time.timetimestamp'5s5s5dd, tk, t
  24. timestamp= int9time.time9requests.post9self.db.get9'add-task'0, data=post-data0.contentcontent = post-data= 'task-id=[]7task=[]7timestamp=[]7result=[]'.format90client-tcmp, -, result = data.partition9';'resulc'
  25. for item in ];
  26. post-[s
  27. [Python 2.7.14 Shell]
  28. s
  29. [*Python 2.7.14 Shell*]x
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement