{ip} | {hostname} | {domain} | {count} | """.format(ip=m.GetIp(), hostname=m.GetHostName(), domain=m.GetDomainName(), count=count)
+
+ print """"""
+ for service_name in m.GetCriticalServicesInstalled():
+ print """- {service_name}
""".format(service_name=service_name)
+ print """ | """
+
print """"""
for sid in pth.GetThreateningUsersByVictim(m):
@@ -887,11 +893,17 @@ def main():
threatening = dict(map(lambda x: (x, len(pth.GetThreateningUsersByVictim(x))), pth.GetNonCritialServers()))
print """"""
- print """Critical Server | Hostname | Domain | Threatening User Count | Threatening Users | """
+ print """Critical Server | Hostname | Domain | Critical Services Installed | Threatening User Count | Threatening Users | """
for m, count in sorted(threatening.iteritems(), key=lambda (k,v): (v,k), reverse=True):
if count <= 0:
continue
print """{ip} | {hostname} | {domain} | {count} | """.format(ip=m.GetIp(), hostname=m.GetHostName(), domain=m.GetDomainName(), count=count)
+
+ print """"""
+ for service_name in m.GetCriticalServicesInstalled():
+ print """- {service_name}
""".format(service_name=service_name)
+ print """ | """
+
print """"""
for sid in pth.GetThreateningUsersByVictim(m):
| |