'Running the program' sequence added to slides

This commit is contained in:
Michael Hohn
2020-07-16 17:43:43 -07:00
committed by =Michael Hohn
parent 90a3bee380
commit b241632815
3 changed files with 12 additions and 2 deletions

View File

@@ -6,26 +6,32 @@
\033[32m---- SQL injection demo ----\[\033[33m\033[0m\]
$?:$ '
# Build
./build.sh
# Prepare db
./admin rm-db
./admin create-db
./admin show-db
# Add regular user interactively
./add-user 2>> users.log
First User
# Check
./admin show-db
# Regular user via "external" process
echo "sample user" | ./add-user 2>> users.log
echo "User Outside" | ./add-user 2>> users.log
./admin show-db
# Add Johnny Droptable
./add-user 2>> users.log
Johnny'); DROP TABLE users; --
# And the problem:
./admin show-db