commit 5eac686194e69993e99547bddc3d2a98184cf647 Author: Alex Thomassen Date: Thu Nov 14 08:15:43 2019 +0100 First commit diff --git a/includes/common.php b/includes/common.php new file mode 100644 index 0000000..8b18fe3 --- /dev/null +++ b/includes/common.php @@ -0,0 +1,9 @@ + + +Insecure PHP Application for SQL Injection Testing \ No newline at end of file diff --git a/index.php b/index.php new file mode 100644 index 0000000..b96d82b --- /dev/null +++ b/index.php @@ -0,0 +1,31 @@ + + + + + + + +
+
+
+ + +
+ +
+ + +
+ + +
+
+ + \ No newline at end of file diff --git a/sql/users.sql b/sql/users.sql new file mode 100644 index 0000000..633adce --- /dev/null +++ b/sql/users.sql @@ -0,0 +1,7 @@ +CREATE TABLE users( + id INT(11) UNSIGNED AUTO_INCREMENT PRIMARY KEY, + username VARCHAR(30) NOT NULL, + password VARCHAR(32) NOT NULL, + is_admin TINYINT(1) DEFAULT 0, + created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP +); \ No newline at end of file diff --git a/user.php b/user.php new file mode 100644 index 0000000..8e4c226 --- /dev/null +++ b/user.php @@ -0,0 +1,40 @@ + + + + + + + +
+

Hello,

+ +
+ You are an admin! +
+ +
+ + \ No newline at end of file