Created
September 5, 2012 06:02
-
-
Save vinitkumar/3631329 to your computer and use it in GitHub Desktop.
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 | |
try: | |
fp = open('hack.txt','r') #hack.txt is the original passwd dump | |
up = open('uniq.txt','r') #uniq.txt is the reduced passwd dump | |
keys = up.readlines() | |
stuff = [] | |
for st in fp.readlines(): | |
stuff.append(st) | |
for key in keys: | |
if stuff.count(key) == 1: | |
print key | |
except IOError,e: | |
print "No Such files",e |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment