Hello fellow python lovers of daniweb.com. This isn't as much a question as much as the fact that I want to see how different people would go about using python to inject an SQl database. I made a script were you can access the ip and run a command. NOTE:Obviously I didn't give an actual database. Who am I kidding you guys aren't stupid. Here's my injection script
import MySQLdb
db = MySQLdb.connect(host="localhost", # your host, usually localhost
user="USER", # your username
passwd="PWD", # your password
db="MySQLdb") # name of the data base
# you must create a Cursor object. It will let
# you execute all the queries you need
cur = db.cursor()