Add dc table

This commit is contained in:
Oran Nadler 2018-03-06 21:55:56 +02:00
parent 18114ea7fe
commit 86be96eb44
1 changed files with 10 additions and 0 deletions

View File

@ -560,5 +560,15 @@ def main():
print """<tr><td>{ip}</td><td>{hostname}</td><td>{domain}</td><td>{count}</td>""".format(ip=m.GetIp(), hostname=n.GetHostName(), domain=m.GetDomainName(), count=count)
print """</talbe>"""
print "<h2>Domain Controllers</h2>"
print "<h3>List of domain controllers (we count them as critical points, so they are listed here)</h3>"
DCs = pth.GetAllDomainControllers()
print """<talbe>"""
print """<tr><th>DC Ip</th><th>DC Hostname</th><th>Domain Name</th></tr>"""
for m in DCs:
print """<tr><td>{ip}</td><td>{hostname}</td><td>{domain}</td>""".format(ip=m.GetIp(), hostname=n.GetHostName(), domain=m.GetDomainName())
print """</talbe>"""
if __name__ == "__main__":
main()