def setUp(self):
     RoutersploitInterpreter.setup = mock.Mock()
     self.interpreter = RoutersploitInterpreter()
     self.interpreter.current_module = mock.MagicMock()
     self.raw_prompt_default = "\001\033[4m\002rsf\001\033[0m\002 > "
     self.module_prompt_default = lambda x: "\001\033[4m\002rsf\001\033[0m\002 (\001\033[91m\002{}\001\033[0m\002) > ".format(
         x)
def routersploit():
    rsf = RoutersploitInterpreter()
    rsf.start()
示例#3
0
def routersploit(argv):
    rsf = RoutersploitInterpreter()
    if len(argv[1:]):
        rsf.nonInteractive(argv)
    else:
        rsf.start()