Fixed duplicate entry in hash file for machine accounts

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

View File

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