Created
February 19, 2012 12:09
-
-
Save roman-yepishev/1863474 to your computer and use it in GitHub Desktop.
twisted-ssh.py gdbm password export
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import gdbm | |
import sys | |
from datetime import datetime | |
print """# Updated: %s | |
# SSH creds for attack attempts on my server. | |
# If your password is listed here, CHANGE IT RIGHT NOW | |
#""" % (datetime.now().isoformat()) | |
db = gdbm.open(sys.argv[1]) | |
print "# %d entries\n#" % (len(db.keys()), ) | |
for key in sorted(db.keys()): | |
print "%s" % (key, ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment