(self)
| 462 | self.isContinue = False |
| 463 | |
| 464 | def run(self): |
| 465 | th = [] |
| 466 | for i in range(self.thread_nums): |
| 467 | t = threading.Thread(target=self.scan) |
| 468 | t.setDaemon(True) |
| 469 | t.start() |
| 470 | th.append(t) |
| 471 | |
| 472 | # It can quit with Ctrl-C |
| 473 | try: |
| 474 | while 1: |
| 475 | if self.thread_count > 0 and self.isContinue: |
| 476 | time.sleep(0.01) |
| 477 | else: |
| 478 | break |
| 479 | except KeyboardInterrupt: |
| 480 | exit("User Quit") |
| 481 | |
| 482 | def http(self, url, **kwargs): |
| 483 | func = self.hack.http |