From 90a3bee3809d5b2d159fcc6a47a981c98b772600 Mon Sep 17 00:00:00 2001 From: Michael Hohn Date: Thu, 16 Jul 2020 17:03:46 -0700 Subject: [PATCH] Update the sample run for slide creation --- README.org | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/README.org b/README.org index 2c63a7b..3a63609 100644 --- a/README.org +++ b/README.org @@ -1,8 +1,16 @@ * SQL injection example ** Setup and sample run #+BEGIN_SRC sh + # Use a simple headline prompt + PS1=' + \033[32m---- SQL injection demo ----\[\033[33m\033[0m\] + $?:$ ' + + + # Build ./build.sh + # Prepare db ./admin create-db ./admin show-db @@ -10,13 +18,15 @@ ./add-user 2>> users.log ./admin show-db - # Regular user + # Regular user via "external" process echo "sample user" | ./add-user 2>> users.log ./admin show-db - # Johnny Droptable - echo "Johnny'); DROP TABLE users; -- " | ./add-user 2>> users.log + # Add Johnny Droptable + ./add-user 2>> users.log + Johnny'); DROP TABLE users; -- + # And the problem: ./admin show-db #+END_SRC