コード例 #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
ファイル: interpreter.py プロジェクト: 2bec/routersploit
 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)