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)
     GLOBAL_OPTS.clear()
 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)
     GLOBAL_OPTS.clear()
 def setUp(self):
     self.exploit_foo = TestExploitFoo()
     self.exploit_bar = TestExploitBar()
     self.exploit_with_validators = TestExploitWithValidators()
     GLOBAL_OPTS.clear()
Beispiel #4
0
 def setUp(self):
     self.exploit_foo = TestExploitFoo()
     self.exploit_bar = TestExploitBar()
     self.exploit_with_validators = TestExploitWithValidators()
     GLOBAL_OPTS.clear()