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\-_\!\$]+["']‘: import MySQLdb import array import random conn = MySQLdb.connect(host="localhost", user="u", passwd="p", db="cheese") cur = conn.cursor() a = array.array('f') for n in range(1,5): a.append(random.random()) bd = a.tostring() print type(bd) # gives str query = '''INSERT INTO cheese (data) VALUES (%s)''' % bd cur.execute(query) ProgrammingError: (1064 Source: http://pastebin.com/raw.php?i=zqXwMudN

Viewing all articles
Browse latest Browse all 2663

Trending Articles