updated readme with instructions
61
README.md
|
@ -1,5 +1,66 @@
|
||||||
# CSPJ Application
|
# CSPJ Application
|
||||||
|
|
||||||
|
## HOW TO TEST
|
||||||
|
|
||||||
|
The IP address refers to the IP address that y'all configure for the VM.
|
||||||
|
|
||||||
|
### 1. DVWA
|
||||||
|
|
||||||
|
DVWA is listening on port `80`, so in the browser no need to enter port number.
|
||||||
|
Just navigate to the IP address.
|
||||||
|

|
||||||
|
|
||||||
|
### 2. ModSecurity DVWA
|
||||||
|
|
||||||
|
ModSecurity is listening on port `3331`, it is a proxy for DVWA.
|
||||||
|
Go to `<ip>:3331` in the browser.
|
||||||
|

|
||||||
|
|
||||||
|
Go to the `Command Injection` tab.
|
||||||
|

|
||||||
|
|
||||||
|
Enter in `127.0.0.1; ls`.
|
||||||
|

|
||||||
|
|
||||||
|
If 401 Forbidden error is returned, ModSecurity is great success.
|
||||||
|

|
||||||
|
|
||||||
|
### 3. Client + Backend Server + ML Model
|
||||||
|
|
||||||
|
Start the `cspj-application` program, be it on Windows or Linux.
|
||||||
|
Backend server is listening on port `3333`.
|
||||||
|
At the top right of the program window, click on the red `Server disconnected` thingy.
|
||||||
|
Enter the IP address, and make sure port is set to `3333`.
|
||||||
|
Click connect, and it should turn green.
|
||||||
|

|
||||||
|
|
||||||
|
Press the humongous blue `Setup/reset DB` button.
|
||||||
|
Should see that DB setup was carried out.
|
||||||
|

|
||||||
|
|
||||||
|
Go to the `Login` tab.
|
||||||
|
Enter:
|
||||||
|
|
||||||
|
- Email: `asdf@gmail.com`
|
||||||
|
- Password: `asdf`
|
||||||
|
|
||||||
|
Press next, and should see `Login successful`.
|
||||||
|

|
||||||
|
|
||||||
|
Turn on the secure endpoint switch.
|
||||||
|
Enter:
|
||||||
|
|
||||||
|
- Email: `asdf@gmail.com' OR 1=1; --`
|
||||||
|
- Password: `randompasswordjakfl;dsjflkadsjlkf;sjkfl;dj;l`
|
||||||
|
|
||||||
|
Press next again.
|
||||||
|
This time should fail.
|
||||||
|

|
||||||
|
|
||||||
|
Okay done.
|
||||||
|
|
||||||
|
## Everything below can ignore
|
||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
### Requirements
|
### Requirements
|
||||||
|
|
BIN
assets/screenshot_130225_040803.png
Normal file
After Width: | Height: | Size: 107 KiB |
BIN
assets/screenshot_130225_040940.png
Normal file
After Width: | Height: | Size: 107 KiB |
BIN
assets/screenshot_130225_041013.png
Normal file
After Width: | Height: | Size: 71 KiB |
BIN
assets/screenshot_130225_041113.png
Normal file
After Width: | Height: | Size: 72 KiB |
BIN
assets/screenshot_130225_041144.png
Normal file
After Width: | Height: | Size: 23 KiB |
BIN
assets/screenshot_130225_042054.png
Normal file
After Width: | Height: | Size: 9.1 KiB |
BIN
assets/screenshot_130225_042221.png
Normal file
After Width: | Height: | Size: 48 KiB |
BIN
assets/screenshot_130225_042610.png
Normal file
After Width: | Height: | Size: 31 KiB |
BIN
assets/screenshot_130225_042859.png
Normal file
After Width: | Height: | Size: 31 KiB |