Vulnerable Login System 12-16-2013, 03:45 AM
#1
I made this because I was bored, and will further secure it later, but if anyone wants to test their mad bruteforcing tools, this has no maximum tries per ip nor username. The only security implemented is the hashing and salting of passwords on input. Do with this as you please.
Reg.py
Login.py
Reg.py
Code:
import hashlib
username = raw_input("Username: ")
key_string = raw_input("Password: ")
salt = "1337ELITES4LTD4T1ZUNGEUSSABLE"
hash = hashlib.md5( salt + key_string ).hexdigest()
print "%s:%s" % (salt, hash)
db = open("db.txt", "w+")
db.write("%s:%s" % (username, hash))Login.py
Code:
import hashlib
username = raw_input("Username: ")
key_string = raw_input("Password: ")
salt = "1337ELITES4LTD4T1ZUNGEUSSABLE"
hash = hashlib.md5( salt + key_string ).hexdigest()
fin = str(username + ":" + hash)
with open('db.txt', 'r') as searchfile:
for line in searchfile:
if fin in line:
print "Login Success"
else: print "Error"
#MakeSinisterlySexyAgain

















![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)


