cosmetics

This commit is contained in:
Oran Nadler 2018-03-07 06:48:03 -08:00
parent 1ee53972a8
commit e0b64ee63b
1 changed files with 3 additions and 3 deletions

View File

@ -591,7 +591,7 @@ def main():
print """<table>""" print """<table>"""
print """<tr><th>SID</th><th>Username</th><th>Machine Count</th></tr>""" print """<tr><th>SID</th><th>Username</th><th>Machine Count</th></tr>"""
for sid, count in sorted(attackable_counts.iteritems(), key=lambda (k,v): (v,k), reverse=True): for sid, count in sorted(attackable_counts.iteritems(), key=lambda (k,v): (v,k), reverse=True):
print """<tr><td><a href="#{sid}">{sid}</a></td><td><a href="#{username}">{username}</a></td><td>{count}</td>""".format(sid=sid, username=pth.GetUsernameBySid(sid), count=count) print """<tr><td><a href="#{sid}">{sid}</a></td><td>{username}</td><td>{count}</td>""".format(sid=sid, username=pth.GetUsernameBySid(sid), count=count)
print """</table>""" print """</table>"""
print "<h2>Machine's Creds</h2>" print "<h2>Machine's Creds</h2>"
@ -667,8 +667,8 @@ def main():
for sid in pth.GetAllSids(): for sid in pth.GetAllSids():
print """<a name="{sid}"><h2>SID '{sid}'</h2></a> print """<a name="{sid}"><h2>SID '{sid}'</h2></a>
<a href="#{username}"><h3>Username: '{username}'</h3></a> <h3>Username: '<a href="#{username}">{username}</a>'</h3>
<a href="#{secret}"><h3>Secret: '{secret}'</h3></a> <h3>Secret: '<a href="#{secret}">{secret}</a>'</h3>
""".format(username=pth.GetUsernameBySid(sid), sid=sid, secret=pth.GetSecretBySid(sid)) """.format(username=pth.GetUsernameBySid(sid), sid=sid, secret=pth.GetSecretBySid(sid))
print """<h3>Attackable Machines</h3>""" print """<h3>Attackable Machines</h3>"""