Exemplo n.º 1
0
 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()
Exemplo n.º 2
0
 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()
Exemplo n.º 3
0
 def setUp(self):
     self.exploit_foo = TestExploitFoo()
     self.exploit_bar = TestExploitBar()
     self.exploit_with_validators = TestExploitWithValidators()
     GLOBAL_OPTS.clear()
Exemplo n.º 4
0
 def setUp(self):
     self.exploit_foo = TestExploitFoo()
     self.exploit_bar = TestExploitBar()
     self.exploit_with_validators = TestExploitWithValidators()
     GLOBAL_OPTS.clear()