Fixed duplicate entry in hash file for machine accounts

This commit is contained in:
Lgandx 2013-04-08 20:35:49 -04:00
commit 4112b1cd5d

View file

@ -102,7 +102,7 @@ def WriteData(outfile,data, user):
outf.close() outf.close()
if os.path.isfile(outfile) == True: if os.path.isfile(outfile) == True:
with open(outfile,"r") as filestr: with open(outfile,"r") as filestr:
if re.search(user, filestr.read()): if re.search(user.encode('hex'), filestr.read().encode('hex')):
filestr.close() filestr.close()
return None return None
else: else:
@ -1431,3 +1431,4 @@ if __name__ == '__main__':
raise raise
raw_input() raw_input()