From d3e302d35ac8aa5a2432c00b9e3a367ceb5be9cf Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Wed, 19 Sep 2012 22:02:59 +0200 Subject: [PATCH] Add script for parsing the leaked RevTT account list --- tools/file-processing/revtt_clean.py | 31 ++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 tools/file-processing/revtt_clean.py diff --git a/tools/file-processing/revtt_clean.py b/tools/file-processing/revtt_clean.py new file mode 100644 index 0000000..4a314a6 --- /dev/null +++ b/tools/file-processing/revtt_clean.py @@ -0,0 +1,31 @@ +#!/usr/bin/python +import sys + +lines = open(sys.argv[1]).readlines() + +accounts = {} +password_count = 0 + +for line in lines: + try: + username, password = line.split("-") + + username = username.strip()[1:-1] + password = password.strip()[1:-1] + + if username not in accounts: + accounts[username] = [password] + password_count += 1 + else: + if password not in accounts[username]: + accounts[username].append(password) + password_count += 1 + except ValueError, e: + pass + + +for username, passwords in accounts.iteritems(): + for password in passwords: + print "%s\t\t%s" % (username, password) + +print "Done, %d accounts with a total of %d passwords." % (len(accounts), password_count)