Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import re
- f = open("lista.txt")
- f2 = open("listay.txt", "w")
- uniquelines = set(f.read().split("\n"))
- for line in uniquelines:
- x = line.split(":")
- if re.search('^[a-zA-Z0-9_]{2,16}$', x[0]) and len(x) == 2 and x[1]:
- f2.write("--" + "\n" "Username: " + x[0] + "\n" + "Password: " + x[1] + "\n")
- f2.write("--")
- f2.close()
Add Comment
Please, Sign In to add comment