Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docker-compose #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: '3'
services:
db:
image: "mysql:5.7"
environment:
MYSQL_ROOT_PASSWORD: toor
MYSQL_ROOT_HOST: "%"
web:
depends_on:
- db
image: "php:5.3-apache"
volumes:
- ".:/var/www/html"
ports:
- "8000:80"
environment:
DB_HOST: "db"
DB_PASS: "toor"
links:
- db:db
7 changes: 6 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Following labs are covered for GET and POST scenarios:
12. Secondary channel extraction

========================================================================================

Install Instructions:

1. Unzip the contents inside the apache folder, for example under /var/www
Expand All @@ -43,9 +44,13 @@ Install Instructions:
7. Labs ready to be used, click on lesson number to open the lesson page.
8. Enjoy the labs

If you prefer to use Docker Compose you can simply:

docker-compose up

==========================================================================================

Corrosponding walkthrough video tutorials and explainations can be found at:
Corresponding walkthrough video tutorials and explainations can be found at:

1. http://dummy2dummies.blogspot.com
2. http://www.securitytube.net/user/Audi
Expand Down
13 changes: 5 additions & 8 deletions sql-connections/db-creds.inc
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
<?php
$host = $_ENV["DB_HOST"] ?: 'localhost';

//give your mysql connection username n password
$dbuser ='root';
$dbpass ='';
$dbname ="security";
$host = 'localhost';
$dbname1 = "challenges";


$dbuser = $_ENV["DB_USER"] ?: "root";
$dbpass = $_ENV["DB_PASS"] ?: "";

$dbname = "security";
$dbname1 = "challenges";
?>