def run(self, argv): #os.system('clear') self.parseParameters(argv) self.versionCheck( ) #check the local version against the remote version self.displayBanner() #Print banner first and all messages after self.loadConfig() # load config modules_dict = self.loadModules() # load input/action modules self.modulesLoaded() if self.config["list_modules"]: self.display.printModuleList(modules_dict) sys.exit() self.additionalInfo() self.msfCheck() # parse inputs for input in self.inputs.keys(): for inputmodule in self.inputModules.keys(): _instance = self.inputModules[inputmodule] if _instance.getType() == input: for file in self.inputs[input]: self.display.verbose("Loading [%s] with [%s]" % (file, inputmodule)) _instance.go(file) # populate any initial events self.populateInitEvents() # begin menu loop self.threadcount_thread = Thread( target=EventHandler.print_thread_count, args=(self.display, )) self.threadcount_thread.start() while self.isRunning: self.displayMenu() kb.save(self.kbSaveFile) # generate reports self.display.output("Generating Reports") for reportmodule in self.reportModules.keys(): _instance = self.reportModules[reportmodule] _instance.process() self.display.output() self.display.output("Good Bye!") self.cleanup()
def run(self, argv): #os.system('clear') self.parseParameters(argv) self.displayBanner() #Print banner first and all messages after self.loadConfig() # load config modules_dict = self.loadModules() # load input/action modules self.modulesLoaded() if self.config["list_modules"]: self.display.printModuleList(modules_dict) sys.exit() self.additionalInfo() self.msfCheck() # parse inputs for input in self.inputs.keys(): for inputmodule in self.inputModules.keys(): _instance = self.inputModules[inputmodule] if _instance.getType() == input: for file in self.inputs[input]: self.display.verbose("Loading [%s] with [%s]" % (file, inputmodule)) _instance.go(file) # populate any initial events self.populateInitEvents() # begin menu loop self.threadcount_thread = Thread(target=EventHandler.print_thread_count, args=(self.display,)) self.threadcount_thread.start() self.runScan() # Skip first trip through menu and go straight into a scan using whatever arguments were passed self.isRunning = False # while self.isRunning: # self.displayMenu() if (kb): kb.save(self.kbSaveFile) # generate reports self.display.output("Generating Reports") for reportmodule in self.reportModules.keys(): _instance = self.reportModules[reportmodule] _instance.process() self.display.output() self.display.output("Good Bye!") self.cleanup()
def run(self, argv): self.parseParameters(argv) self.displayBanner() #Print banner first and all messages after self.loadConfig() # load config modules_dict = self.loadModules() # load input/action modules self.modulesLoaded() if self.config["list_modules"]: self.display.printModuleList(modules_dict) sys.exit() self.additionalInfo() # parse inputs for input in self.inputs.keys(): for inputmodule in self.inputModules.keys(): _instance = self.inputModules[inputmodule] if _instance.getType() == input: for file in self.inputs[input]: self.display.verbose("Loading [%s] with [%s]" % (file, inputmodule)) _instance.go(file) # populate any initial events self.populateInitEvents() # begin menu loop self.threadcount_thread = Thread( target=EventHandler.print_thread_count, args=(self.display, )) self.threadcount_thread.start() self.runScan( ) # Skip first trip through menu and go straight into a scan using whatever arguments were passed if (kb): kb.save(self.kbSaveFile) # generate reports self.display.output("Generating Reports") for reportmodule in self.reportModules.keys(): _instance = self.reportModules[reportmodule] _instance.process() self.display.output() self.display.output("Good Bye!") self.cleanup()
def run(self, argv): # load config self.parseParameters(argv) self.loadConfig() # check the local version against the remote version self.versionCheck() # load input/action modules str = self.loadModules() # Everything must have loaded properly, so display the banner self.displayBanner() if (self.config["list_modules"]): self.display.print_list("List of Current Modules", str) self.display.output("") # parse inputs for input in self.inputs.keys(): for inputmodule in self.inputModules.keys(): _instance = self.inputModules[inputmodule] if (_instance.getType() == input): for file in self.inputs[input]: self.display.verbose("Loading [%s] with [%s]" % (file, inputmodule)) _instance.go(file) # populate any inital events self.populateInitEvents() # begin menu loop self.threadcount_thread = Thread( target=EventHandler.print_thread_count, args=(self.display, )) self.threadcount_thread.start() while self.isRunning: self.displayMenu() kb.save(self.kbSaveFile) self.display.output() self.display.output("Good Bye!") self.cleanup()
def run(self, argv): # load config self.parseParameters(argv) self.loadConfig() # check the local version against the remote version self.versionCheck() # load input/action modules str = self.loadModules() # Everything must have loaded properly, so display the banner self.displayBanner() if (self.config["list_modules"]): self.display.print_list("List of Current Modules", str) self.display.output("") # parse inputs for input in self.inputs.keys(): for inputmodule in self.inputModules.keys(): _instance = self.inputModules[inputmodule] if (_instance.getType() == input): for file in self.inputs[input]: self.display.verbose("Loading [%s] with [%s]" % (file, inputmodule)) _instance.go(file) # populate any inital events self.populateInitEvents() # begin menu loop self.threadcount_thread = Thread(target=EventHandler.print_thread_count, args=(self.display,)) self.threadcount_thread.start() while self.isRunning: self.displayMenu() kb.save(self.kbSaveFile) self.display.output() self.display.output("Good Bye!") self.cleanup()
def run(self, argv): #os.system('clear') self.parseParameters(argv) self.versionCheck() #check the local version against the remote version self.displayBanner() #Print banner first and all messages after self.loadConfig() # load config modules_dict = self.loadModules() # load input/action modules self.modulesLoaded() if self.config["list_modules"]: self.display.printModuleList(modules_dict) sys.exit() self.additionalInfo() self.msfCheck() # parse inputs for input in self.inputs.keys(): for inputmodule in self.inputModules.keys(): _instance = self.inputModules[inputmodule] if _instance.getType() == input: for file in self.inputs[input]: self.display.verbose("Loading [%s] with [%s]" % (file, inputmodule)) _instance.go(file) # populate any initial events self.populateInitEvents() # begin menu loop self.threadcount_thread = Thread(target=EventHandler.print_thread_count, args=(self.display,)) self.threadcount_thread.start() while self.isRunning: self.displayMenu() kb.save(self.kbSaveFile) self.display.output() self.display.output("Good Bye!") self.cleanup()