Skip to content

Commit

Permalink
Added amoksecurity
Browse files Browse the repository at this point in the history
  • Loading branch information
secureideas authored and mgillam committed Oct 22, 2018
1 parent a1383c7 commit 0c6ac6f
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 1 deletion.
31 changes: 31 additions & 0 deletions config/sites-enabled/amoksecurity.wtf
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
##
# This is a configuration for the security consultant site for labs
# Students will use this for things like redirection and csrf attacks.
# The main page also has links to various learning resources.
##

# Default server configuration
#
server {
listen 80;

root /var/www/amoksecurity;

# Add index.php to the list if you are using PHP
index index.php index.html index.htm;

server_name amoksecurity.wtf;

location / {
try_files $uri $uri/ =404;
}

# pass PHP scripts to FastCGI server
#
location ~ \.php$ {
include snippets/fastcgi-php.conf;

fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
}

}
2 changes: 1 addition & 1 deletion install/local_targets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ echo '127.0.0.1 dojo-scavenger.wtf' | sudo tee -a /etc/hosts
echo '127.0.0.1 dvwa.wtf' | sudo tee -a /etc/hosts
echo '127.0.0.1 mutillidae.wtf' | sudo tee -a /etc/hosts
echo '127.0.0.1 professionallyevil.wtf' | sudo tee -a /etc/hosts

echo '127.0.0.1 amoksecurity.wtf' | sudo tee -a /etc/hosts

sudo mkdir /home/samurai/.scripts
sudo tr '\r\n' '\n' < /tmp/config/startup_targets.sh > /home/samurai/.scripts/startup_targets.sh
Expand Down
11 changes: 11 additions & 0 deletions install/target_bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ cd vulnscripts/
sudo tar xf /tmp/config/www/html/vulnscripts.tar
popd

# Setting up professionallyevil.wtf
echo 'setting up professionallyevil.wtf'
pushd /var/www
sudo mkdir professionallyevil
Expand All @@ -87,6 +88,16 @@ sudo echo 'It Works ;)' > index.html
sudo chown samurai:samurai index.html
popd

# Setting up amoksecurity.wtf
echo 'setting up amoksecurity.wtf'
pushd /var/www
sudo mkdir amoksecurity
sudo chown samurai:samurai amoksecurity
cd amoksecurity
sudo echo 'It Works ;)' > index.html
sudo chown samurai:samurai index.html
popd


#Update hosts entries
#TODO
Expand Down

0 comments on commit 0c6ac6f

Please sign in to comment.