forked from p15670423/monkey
Add dc table
This commit is contained in:
parent
18114ea7fe
commit
86be96eb44
|
@ -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 """<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 """</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__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
Loading…
Reference in New Issue