Initial sql injection sample in C using sqlite

This commit is contained in:
Michael Hohn
2020-06-29 15:29:45 -07:00
committed by =Michael Hohn
commit 5210f57197
5 changed files with 148 additions and 0 deletions

17
admin Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
create-db () {
echo '
CREATE TABLE users (
user_id INTEGER not null,
name TEXT NOT NULL
);
' | sqlite3 users.sqlite
}
show-db () {
echo '
SELECT * FROM users;
' | sqlite3 users.sqlite
}
eval $@