Quantcast
Channel: Simple Password – LeakedIn
Viewing all articles
Browse latest Browse all 2663

Potential leak of data: Simple Password

$
0
0
Detected 1 occurrence(s) of ‘\s*pass[word]+\s*[:=]\s*["'][a-z0-9\-_\!\$]+["']‘: python manage.py reset <app> manage.py flush manage.py sqlclear <app> #!/usr/bin/python import MySQLdb import subprocess dbname = "mydbname" db = MySQLdb.connect(host="127.0.0.1", user="username", passwd="superpassword", db=dbname) cur = db.cursor() #Drop all database to Drop all tables cur.execute("DROP DATABASE "+dbname) #Recreate the DB cur.execute("CREATE DATABASE "+dbname) #Sync with manage.py proc = subprocess.call(['python','manage.py','syncdb']) print "nnFi [...]

Viewing all articles
Browse latest Browse all 2663

Trending Articles