Commit 1286618e authored by Andrea Veri's avatar Andrea Veri

More chars to sanitize

parent bc5e69b1
......@@ -21,7 +21,8 @@ for line in lines:
dirty_password = line.split()
ldap_password = str(dirty_password)
sanitize_file=["ldap_password", "\"", ":"]
sanitize_file=["ldap_password", "\"", ":", "[", "]", "'"]
from random import choice, randrange
for i in range(len(sanitize_file)):
ldap_password = ldap_password.replace(sanitize_file[i],"")
file.close()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment