예제 #1
0
 def command_use(self, module_path, *args, **kwargs):
     module_path = utils.pythonize_path(module_path)
     module_path = '.'.join(('routersploit', 'modules', module_path))
     # module_path, _, exploit_name = module_path.rpartition('.')
     try:
         self.current_module = utils.import_exploit(module_path)()
     except RoutersploitException as err:
         utils.print_error(err.message)
예제 #2
0
 def command_use(self, module_path, *args, **kwargs):
     module_path = utils.pythonize_path(module_path)
     module_path = '.'.join(('routersploit', 'modules', module_path))
     # module_path, _, exploit_name = module_path.rpartition('.')
     try:
         self.current_module = utils.import_exploit(module_path)()
     except RoutersploitException as err:
         utils.print_error(err.message)