SQL injection example

Setup and sample run

  ./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
Description
sql injection sample in C using sqlite
Readme 4.2 MiB
Languages
Shell 44.1%
C 30.9%
CodeQL 25%