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

21
README.org Normal file
View File

@@ -0,0 +1,21 @@
* SQL injection example
** Setup and sample run
#+BEGIN_SRC sh
./build.sh
./admin create-db
./admin show-db
# Regular user
echo "sample user" | ./add-user
./admin show-db
# Johnny Droptable
echo "Johnny'); DROP TABLE users; -- " | ./add-user
./admin show-db
#+END_SRC