[squeal]: Add squeal SQL injection challenge

This commit is contained in:
2024-09-14 15:45:12 +01:00
parent 117e6749c3
commit 4b6ecfb855
3 changed files with 35 additions and 0 deletions

BIN
squeal/database.db Normal file

Binary file not shown.

10
squeal/squeal.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/sh
# Script that accepts the name of an artist and checks if they are currently in our Billboard Top 10 database
while true; do
printf "Enter an artist's name: "
read input
sqlite3 database.db "SELECT * FROM singles WHERE artist = '$input'"
done

25
squeal/tables.sql Normal file
View File

@ -0,0 +1,25 @@
CREATE TABLE singles (
rank INT NOT NULL,
title VARCHAR(255) NOT NULL,
artist VARCHAR(255) NOT NULL,
PRIMARY KEY (rank)
);
INSERT INTO singles (rank, title, artist) VALUES (1, 'Die With A Smile', 'Lady Gaga, Bruno Mars');
INSERT INTO singles (rank, title, artist) VALUES (2, 'BIRDS OF A FEATHER', 'Billie Eilish');
INSERT INTO singles (rank, title, artist) VALUES (3, 'Taste', 'Sabrina Carpenter');
INSERT INTO singles (rank, title, artist) VALUES (4, 'Who', 'Jimin');
INSERT INTO singles (rank, title, artist) VALUES (5, 'Espresso', 'Sabrina Carpenter');
INSERT INTO singles (rank, title, artist) VALUES (6, 'The Emptiness Machine', 'Linkin Park');
INSERT INTO singles (rank, title, artist) VALUES (7, 'Please Please Please', 'Sabrina Carpenter');
INSERT INTO singles (rank, title, artist) VALUES (8, 'Si Antes Te Hubiera Conocido', 'KAROL G');
INSERT INTO singles (rank, title, artist) VALUES (9, 'Good Luck, Babe!', 'Chappell Roan');
INSERT INTO singles (rank, title, artist) VALUES (10,' Beautiful Things', 'Benson Boone');
CREATE TABLE flags (
secret VARCHAR(255) NOT NULL,
PRIMARY KEY (secret)
);
INSERT INTO flags (secret) VALUES ('1NJ3CT10N');