|
29 | 29 |
|
30 | 30 | class ThreadedHTTPServer(HTTPServer):
|
31 | 31 | def process_request(self, request, client_address):
|
32 |
| - thread = threading.Thread(target=self.__new_request, |
| 32 | + thread = threading.Thread(name='HTTP_Request', |
| 33 | + target=self.__new_request, |
33 | 34 | args=(self.RequestHandlerClass, request,
|
34 | 35 | client_address, self))
|
35 | 36 | thread.start()
|
@@ -94,12 +95,12 @@ def do_GET(self):
|
94 | 95 | if path == 'rop.js':
|
95 | 96 | payload_menu = True
|
96 | 97 | for thread in threading.enumerate():
|
97 |
| - if thread.name == 'payload_brain': |
| 98 | + if thread.name == 'Payload_Brain': |
98 | 99 | payload_menu = False
|
99 | 100 |
|
100 | 101 | if payload_menu:
|
101 | 102 | print('>> Exploit Sent...')
|
102 |
| - thread = threading.Thread(name='payload_brain', |
| 103 | + thread = threading.Thread(name='Payload_Brain', |
103 | 104 | target=payload_brain,
|
104 | 105 | args=(self.client_address[0],),
|
105 | 106 | daemon=True)
|
@@ -256,7 +257,8 @@ def start_servers():
|
256 | 257 |
|
257 | 258 | print('>> Starting HTTP server thread...')
|
258 | 259 | server = ThreadedHTTPServer(('', 80), MyHandler)
|
259 |
| - thread = threading.Thread(target=server.serve_forever, |
| 260 | + thread = threading.Thread(name='HTTP_Server', |
| 261 | + target=server.serve_forever, |
260 | 262 | args=(),
|
261 | 263 | daemon=True)
|
262 | 264 | thread.start()
|
|
0 commit comments