diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index cd61d06..0000000
--- a/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-connect.php
\ No newline at end of file
diff --git a/README.md b/README.md
index 44c56c3..fc0896f 100644
--- a/README.md
+++ b/README.md
@@ -4,22 +4,21 @@ Build In | Contributors | Live version
--- | --- | ---
**PHP/SQL/HTML/CSS** | [@philip-hub](https://github.com/philip-hub) | Clone and run with your local SQL server
-
-
# Description and Setup
+A modified version of [sql-injectiono-hack-workshop](https://github.com/philip-hub/sql-injection-hack-workshop) to run on a Debian or Ubuntu machine hosting a LAMP stack application.
-This is a dummy bank website with poor security to teach people about the basics of SQL injection. In order to use this you will need a PHP server and you will need to create a SQL server, database, and table. Both of these tasks can easliy be done with [MAMP](https://www.mamp.info/en/). Once MAMP is instaled clone this repo to the desired path on your machine. MAMP Preferences then Web Server and navigate to the path that you cloned this repo too. Start MAMP up and should bring you to a MAMP homepage on your local host where you can access myPHPAdmin. Use myPHPadmin to create a SQL database and table. This [video](https://www.youtube.com/watch?v=s7p5aS8m57k) is a good guide for this task. Name your table "mhc_bank" without the quotes. In your table create the columns "username" , "password", and "amount" as type TEXT all as those are spelled without the quotes. Use the insert command in the menu bar to add some fake users with passwords and amounts. Then open the your repo path in your favorite a text or code editor. Create a connect.php file. Put the following code in connect.php.
+This is a dummy bank website with poor security to teach people about the basics of SQL injection. This website requires a PHP server and a SQL server with a database as well as a table both named mhc_bank. The mhc_bank table has three TEXT columns labeled "username" , "password", and "amount". You can setup the website and install all of its dependences by running this repo's installation script. In a terminal, run ```sudo ./install.sh```. After the installation script is done running, modifiy ```connect.php``` in ```/var/www/html``` with your favorite text editor under root privileges. Edit the following code.
```
+
```
-
Try signing in to one user's account then refernce the article below and the source code and try some SQL injection commands.
-W3 Schools has a great article about SQL injection here
+
Verify the website is working by opening a web browser and going to http://localhost/. Once at the login page, try signing in to a user's account. Reference the article below and try some SQL injection commands. W3 Schools has a great article about SQL injection here.
---
diff --git a/connect.php b/connect.php
new file mode 100644
index 0000000..32991f5
--- /dev/null
+++ b/connect.php
@@ -0,0 +1,6 @@
+
diff --git a/index.html b/index.html
index d6b8cc5..10e5fd4 100644
--- a/index.html
+++ b/index.html
@@ -1,47 +1,32 @@
+
-
- The Secure Bank
+ The Secure Bank
+ body {
+ width: 100%;
+ min-height: 100%;
+ background-color: rgb(65, 64, 64);
+ color: #f0f0f0;
+ box-shadow: 0 20000px rgba(15, 15, 15, .96) inset;
+ }
+
+
-
Sign into your bank secure account today
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
Sign into your bank secure account today
+
+
+
\ No newline at end of file
diff --git a/index.php b/index.php
index 11b9346..807d20c 100644
--- a/index.php
+++ b/index.php
@@ -10,7 +10,12 @@
// Make a SQL query
$username=$_POST["username"];
$password = $_POST["password"];
-$sql = 'SELECT * FROM userinfo WHERE username ="'.$username.'" AND password ="'.$password.'";';
+
+// Sanitize input
+// $username=filter_var($username, FILTER_SANITIZE_STRING);
+// $password=filter_var($password, FILTER_SANITIZE_STRING);
+
+$sql = 'SELECT * FROM mhc_bank WHERE username ="'.$username.'" AND password ="'.$password.'";';
// echo $sql;
$result = mysqli_query($conn, $sql);
@@ -31,29 +36,25 @@
}
}
} else {
- $bank_info = "