def runScan(self): if (self.config["scan_target"]): nm = mynmap(self.config, self.display) nm.run(target=self.config["scan_target"], ports=self.config["scan_port_range"], flags="-s" + self.config["scan_type"] + " " + self.config["scan_flags"], vector="nmapScan", filetag="nmapScan" + self.config["scan_target"]) elif (self.config["scan_target_list"]): nm = mynmap(self.config, self.display) nm.run(target="", ports=self.config["scan_port_range"], flags="-s" + self.config["scan_type"] + " " + self.config["scan_flags"] + " -iL " + self.config["scan_target_list"], vector="nmapScan") # begin main loop self.keyevent_thread = KeyEventThread(self.display) self.keyevent_thread.start() while not EventHandler.finished() or not self.allFinished: if (EventHandler.finished() and not self.allFinished): EventHandler.fire("allFinished") self.allFinished = True if not self.keyevent_thread.isPaused(): EventHandler.processNext(self.display, int(self.config['max_modulethreads'])) # kb.save(self.kbSaveFile) #scan is done, stop checking for keypresses in case we go back to the menu self.keyevent_thread.stop()
def runScan(self): # begin main loop self.keyevent_thread = KeyEventThread(self.display) self.keyevent_thread.start() while not EventHandler.finished() or not self.allFinished: if (EventHandler.finished() and not self.allFinished): EventHandler.fire("allFinished") self.allFinished = True if not self.keyevent_thread.isPaused(): EventHandler.processNext(self.display, int(self.config['max_modulethreads'])) #scan is done, stop checking for keypresses in case we go back to the menu self.keyevent_thread.stop()
def runScan(self): if (self.config["scan_target"]): nm = mynmap(self.config, self.display) nm.run(target=self.config["scan_target"], ports=self.config["scan_port_range"], flags="-s" + self.config["scan_type"] + " " + self.config["scan_flags"], vector="nmapScan", filetag="nmapScan" + self.config["scan_target"]) elif (self.config["scan_target_list"]): nm = mynmap(self.config, self.display) nm.run(target="", ports=self.config["scan_port_range"], flags="-s" + self.config["scan_type"] + " " + self.config["scan_flags"] + " -iL " + self.config[ "scan_target_list"], vector="nmapScan") # begin main loop while not EventHandler.finished() or not self.allFinished: if (EventHandler.finished() and not self.allFinished): EventHandler.fire("allFinished") self.allFinished = True EventHandler.processNext(self.display, int(self.config['max_modulethreads']))
def runScan(self): if (self.config["scan_target"]): nm = mynmap(self.config, self.display) nm.run(target=self.config["scan_target"], ports=self.config["scan_port_range"], flags="-s" + self.config["scan_type"] + " " + self.config["scan_flags"], vector="nmapScan", filetag="nmapScan" + self.config["scan_target"]) elif (self.config["scan_target_list"]): nm = mynmap(self.config, self.display) nm.run(target="", ports=self.config["scan_port_range"], flags="-s" + self.config["scan_type"] + " " + self.config["scan_flags"] + " -iL " + self.config[ "scan_target_list"], vector="nmapScan") # begin main loop self.keyevent_thread = KeyEventThread(self.display) self.keyevent_thread.start() while not EventHandler.finished() or not self.allFinished: if (EventHandler.finished() and not self.allFinished): EventHandler.fire("allFinished") self.allFinished = True if not self.keyevent_thread.isPaused(): EventHandler.processNext(self.display, int(self.config['max_modulethreads'])) # kb.save(self.kbSaveFile) #scan is done, stop checking for keypresses in case we go back to the menu self.keyevent_thread.stop()
def populateInitEvents(self): EventHandler.fire("always:initial")
def populateInitEvents(self): EventHandler.fire("always:initial")