Py3 + added additional string output.

This commit is contained in:
Daniel Goldberg 2017-10-15 19:07:20 +03:00
parent 095f05370f
commit aa61a4e66e
1 changed files with 3 additions and 2 deletions

View File

@ -34,12 +34,13 @@ class VictimHost(object):
def __str__(self): def __str__(self):
victim = "Victim Host %s: " % self.ip_addr victim = "Victim Host %s: " % self.ip_addr
victim += "OS - [" victim += "OS - ["
for k, v in self.os.iteritems(): for k, v in self.os.items():
victim += "%s-%s " % (k, v) victim += "%s-%s " % (k, v)
victim += "] Services - [" victim += "] Services - ["
for k, v in self.services.iteritems(): for k, v in self.services.items():
victim += "%s-%s " % (k, v) victim += "%s-%s " % (k, v)
victim += ']' victim += ']'
victim += "target monkey: %s" % self.monkey_exe
return victim return victim
def set_default_server(self, default_server): def set_default_server(self, default_server):