Skip to content

Instantly share code, notes, and snippets.

@vinitkumar
Created September 5, 2012 06:02
Show Gist options
  • Save vinitkumar/3631329 to your computer and use it in GitHub Desktop.
Save vinitkumar/3631329 to your computer and use it in GitHub Desktop.
#! /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