Example #1
0
 def setUp(self):
     self.proto = protocol.HoneyPotInteractiveProtocol(
         fake_server.FakeAvatar(fake_server.FakeServer())
     )
     self.tr = fake_transport.FakeTransport("1.1.1.1", "1111")
     self.proto.makeConnection(self.tr)
     self.tr.clear()
Example #2
0
 def setUp(self):
     with open('../cowrie/test/expected_results.json') as data_file:
         self.data = json.load(data_file)
     self.proto = protocol.HoneyPotInteractiveProtocol(
         fake_server.FakeAvatar(fake_server.FakeServer()))
     self.tr = fake_transport.FakeTransport("1.1.1.1", "1111")
     self.proto.makeConnection(self.tr)
     self.tr.clear()
 def setUp(self):
     self.cfg = config.readConfigFile("../cowrie/test/unittests.cfg")
     self.proto = protocol.HoneyPotInteractiveProtocol(
         fake_server.FakeAvatar(fake_server.FakeServer(self.cfg)))
     self.tr = fake_transport.FakeTransport("1.1.1.1", "1111")
     self.proto.makeConnection(self.tr)