@@ -270,7 +270,9 @@ class RoutersploitInterpreter(BaseInterpreter):
...
@@ -270,7 +270,9 @@ class RoutersploitInterpreter(BaseInterpreter):
module=importlib.import_module(module_path)
module=importlib.import_module(module_path)
self.current_module=getattr(module,'Exploit')()
self.current_module=getattr(module,'Exploit')()
except(ImportError,AttributeError,KeyError):
except(ImportError,AttributeError,KeyError):
utils.print_error("Error '{}'. It should be valid path to the module. Use <tab> key multiple times for completion.".format(utils.humanize_path(module_path)))
utils.print_error("Error during loading '{}' module. "
"It should be valid path to the module. "
"Use <tab> key multiple times for completion.".format(utils.humanize_path(module_path)))
@utils.stop_after(2)
@utils.stop_after(2)
defcomplete_use(self,text,*args,**kwargs):
defcomplete_use(self,text,*args,**kwargs):
...
@@ -329,7 +331,7 @@ class RoutersploitInterpreter(BaseInterpreter):
...
@@ -329,7 +331,7 @@ class RoutersploitInterpreter(BaseInterpreter):