diff --git a/monkey_island/cc/resources/pthmap.py b/monkey_island/cc/resources/pthmap.py
index 222762e47..3e3b78549 100644
--- a/monkey_island/cc/resources/pthmap.py
+++ b/monkey_island/cc/resources/pthmap.py
@@ -545,51 +545,51 @@ def main():
print "
How many users share each secret?
"
dups = dict(map(lambda x: (x, len(pth.GetSidsBySecret(x))), pth.GetAllSecrets()))
- print """"""
+ print """"""
print """Secret | User Count |
"""
for secret, count in sorted(dups.iteritems(), key=lambda (k,v): (v,k), reverse=True):
- print """{secret} | {count} | """.format(secret=secret, count=count)
- print """"""
+ print """
{secret} | {count} | """.format(secret=secret, count=count)
+ print """
"""
print "Cached Passwords
"
print "On how many machines each secret is cached?
"
cache_counts = dict(map(lambda x: (x, pth.GetSecretCacheCount(x)), pth.GetAllSecrets()))
- print """"""
+ print """"""
print """Secret | Machine Count |
"""
for secret, count in sorted(cache_counts.iteritems(), key=lambda (k,v): (v,k), reverse=True):
- print """{secret} | {count} | """.format(secret=secret, count=count)
- print """"""
+ print """
{secret} | {count} | """.format(secret=secret, count=count)
+ print """
"""
print "User's Creds
"
print "To how many machines each user is able to connect with admin rights?
"
attackable_counts = dict(map(lambda x: (x, pth.GetVictimCountBySid(x)), pth.GetAllSids()))
- print """"""
+ print """"""
print """SID | Username | Machine Count |
"""
for sid, count in sorted(attackable_counts.iteritems(), key=lambda (k,v): (v,k), reverse=True):
- print """{sid} | {username} | {count} | """.format(sid=sid, username=pth.GetUsernameBySid(sid), count=count)
- print """"""
+ print """
{sid} | {username} | {count} | """.format(sid=sid, username=pth.GetUsernameBySid(sid), count=count)
+ print """
"""
print "Machine's Creds
"
print "To how many machines each machine is able to directly connect with admin rights?
"
attackable_counts = dict(map(lambda m: (m, pth.GetVictimCountByMachine(m)), pth.machines))
- print """"""
+ print """"""
print """Attacker Ip | Attacker Hostname | Domain Name | Victim Machine Count |
"""
for m, count in sorted(attackable_counts.iteritems(), key=lambda (k,v): (v,k), reverse=True):
- print """{ip} | {hostname} | {domain} | {count} | """.format(ip=m.GetIp(), hostname=m.GetHostName(), domain=m.GetDomainName(), count=count)
- print """"""
+ print """
{ip} | {hostname} | {domain} | {count} | """.format(ip=m.GetIp(), hostname=m.GetHostName(), domain=m.GetDomainName(), count=count)
+ print """
"""
print "Domain Controllers
"
print "List of domain controllers (we count them as critical points, so they are listed here)
"
DCs = pth.GetAllDomainControllers()
- print """"""
+ print """"""
print """DC Ip | DC Hostname | Domain Name |
"""
for m in DCs:
print """{ip} | {hostname} | {domain} | """.format(ip=m.GetIp(), hostname=m.GetHostName(), domain=m.GetDomainName())
- print """"""
+ print """
"""
print "
"