[squeal]: Add squeal SQL injection challenge
This commit is contained in:
BIN
squeal/database.db
Normal file
BIN
squeal/database.db
Normal file
Binary file not shown.
10
squeal/squeal.sh
Executable file
10
squeal/squeal.sh
Executable 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
25
squeal/tables.sql
Normal 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');
|
Reference in New Issue
Block a user