Skip to content
This repository has been archived by the owner on May 1, 2022. It is now read-only.

Vagrant boxes for each challenge folder #219

Open
wants to merge 22 commits into
base: next-dev
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Empty file modified .gitattributes
100644 → 100755
Empty file.
Empty file modified .gitignore
100644 → 100755
Empty file.
18 changes: 0 additions & 18 deletions .htaccess

This file was deleted.

Empty file modified CONTRIBUTING.md
100644 → 100755
Empty file.
Empty file modified admin/assets/css/nestable.css
100644 → 100755
Empty file.
Empty file modified admin/assets/js/jquery-1.10.2.min.js
100644 → 100755
Empty file.
Empty file modified admin/assets/js/jquery.nestable.js
100644 → 100755
Empty file.
Empty file modified admin/controller/class.AddUserController.php
100644 → 100755
Empty file.
Empty file modified admin/controller/class.OptionsController.php
100644 → 100755
Empty file.
Empty file modified admin/controller/class.ShowClassController.php
100644 → 100755
Empty file.
Empty file modified admin/model/class.ClassChallenges.php
100644 → 100755
Empty file.
Empty file modified admin/model/class.ClassMemberships.php
100644 → 100755
Empty file.
Empty file modified admin/model/class.Classes.php
100644 → 100755
Empty file.
Empty file modified admin/model/class.MenuBackend.php
100644 → 100755
Empty file.
Empty file modified admin/model/class.Options.php
100644 → 100755
Empty file.
Empty file modified admin/model/class.PageBackend.php
100644 → 100755
Empty file.
Empty file modified admin/model/class.ScoringRuleBackend.php
100644 → 100755
Empty file.
Empty file modified admin/model/class.UserChallenges.php
100644 → 100755
Empty file.
Empty file modified admin/pages/menumanager.php
100644 → 100755
Empty file.
Empty file modified admin/pages/options.php
100644 → 100755
Empty file.
Empty file modified admin/view/dashboard.tpl
100644 → 100755
Empty file.
Empty file modified admin/view/menumanager.tpl
100644 → 100755
Empty file.
Empty file modified admin/view/options.tpl
100644 → 100755
Empty file.
Empty file modified admin/view/showclass.tpl
100644 → 100755
Empty file.
Empty file modified assets/css/index.php
100644 → 100755
Empty file.
Empty file modified assets/images/index.php
100644 → 100755
Empty file.
Empty file modified assets/index.php
100644 → 100755
Empty file.
Empty file modified challenges/README
100644 → 100755
Empty file.
Empty file modified challenges/ch002/index.php
100644 → 100755
Empty file.
Empty file modified challenges/ch003/index.php
100644 → 100755
Empty file.
Empty file modified challenges/ch004/index.php
100644 → 100755
Empty file.
Empty file modified challenges/ch009/index.php
100644 → 100755
Empty file.
Empty file modified challenges/ch021/backup/passwds
100644 → 100755
Empty file.
Empty file modified challenges/ch021/backup/seo1.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified challenges/ch021/ch021.xml
100644 → 100755
Empty file.
Empty file modified challenges/ch021/index.php
100644 → 100755
Empty file.
Empty file modified challenges/ch022/auth.php.txt
100644 → 100755
Empty file.
Empty file modified challenges/ch022/ch022.xml
100644 → 100755
Empty file.
Empty file modified challenges/ch022/index.php
100644 → 100755
Empty file.
Empty file modified challenges/ch023/.htaccess
100644 → 100755
Empty file.
Empty file modified challenges/ch023/ch023.xml
100644 → 100755
Empty file.
Empty file modified challenges/ch023/hidden/.htaccess
100644 → 100755
Empty file.
Empty file modified challenges/ch023/hidden/index.php
100644 → 100755
Empty file.
Empty file modified challenges/ch023/hidden_key/.htpasswd
100644 → 100755
Empty file.
Empty file modified challenges/ch023/hint_1492.txt
100644 → 100755
Empty file.
Empty file modified challenges/ch023/hints.jpeg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified challenges/ch023/hints.txt
100644 → 100755
Empty file.
Empty file modified challenges/ch023/index.php
100644 → 100755
Empty file.
Empty file modified challenges/ch023/logo.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified challenges/ch023/rules.txt
100644 → 100755
Empty file.
Empty file modified challenges/ch023/rules2.jpeg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified challenges/ch023/winner.jpeg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified challenges/ch023/winner.txt
100644 → 100755
Empty file.
Empty file modified challenges/ch024/ch024.xml
100644 → 100755
Empty file.
Empty file modified challenges/ch024/index.php
100644 → 100755
Empty file.
Empty file modified challenges/ch024/logo2.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified challenges/ch024/logs.pcap
100644 → 100755
Empty file.
Empty file modified challenges/ch024/products/2.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified challenges/ch024/products/3.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified challenges/ch024/products/4.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified challenges/ch024/products/5.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified challenges/ch025/back.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified challenges/ch025/ch025.xml
100644 → 100755
Empty file.
Empty file modified challenges/ch025/index.php
100644 → 100755
Empty file.
Empty file modified challenges/ch025/login.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified challenges/ch025/logo2.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified challenges/ch025/logo3.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified challenges/ch025/sc.php
100644 → 100755
Empty file.
Empty file modified challenges/ch026/1lt.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified challenges/ch026/1rt.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified challenges/ch026/2lt.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified challenges/ch026/2rt.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified challenges/ch026/alice.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified challenges/ch026/ch026.xml
100644 → 100755
Empty file.
Empty file modified challenges/ch026/eve.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified challenges/ch026/index.php
100644 → 100755
Empty file.
Empty file modified challenges/ch027/ch027.xml
100644 → 100755
Empty file.
Empty file modified challenges/ch027/index.php
100644 → 100755
Empty file.
Empty file modified challenges/ch027/logo2.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified challenges/ch027/newspaper.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified challenges/ch027/results.txt
100644 → 100755
Empty file.
Empty file modified challenges/ch028/1lt.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified challenges/ch028/1rt.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified challenges/ch028/2lt.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified challenges/ch028/2rt.png
100644 → 100755
Empty file modified challenges/ch028/alice.png
100644 → 100755
Empty file modified challenges/ch028/ch028.xml
100644 → 100755
Empty file.
Empty file modified challenges/ch028/eve.png
100644 → 100755
Empty file modified challenges/ch028/index.php
100644 → 100755
Empty file.
Empty file modified challenges/ch029/ch029.xml
100644 → 100755
Empty file.
Empty file modified challenges/ch029/forum.php
100644 → 100755
Empty file.
Empty file modified challenges/ch029/forum.png
100644 → 100755
Empty file modified challenges/ch029/index.php
100644 → 100755
Empty file.
Empty file modified challenges/ch029/rt.png
100644 → 100755
Empty file modified challenges/ch030/ch030.xml
100644 → 100755
Empty file.
Empty file modified challenges/ch030/cipher.txt
100644 → 100755
Empty file.
Empty file modified challenges/ch030/index.php
100644 → 100755
Empty file.
Empty file modified challenges/ch030/logo.png
100644 → 100755
Empty file modified challenges/ch030/public.txt
100644 → 100755
Empty file.
Empty file modified challenges/ch031/ch031.xml
100644 → 100755
Empty file.
Empty file modified challenges/ch031/checkmyluck.c
100644 → 100755
Empty file.
Empty file modified challenges/ch031/index.php
100644 → 100755
Empty file.
Empty file modified challenges/ch031/lucky_draw1.jpg
100644 → 100755
Empty file modified challenges/ch032/ch032.xml
100644 → 100755
Empty file.
Empty file modified challenges/ch032/help.jpg
100644 → 100755
Empty file modified challenges/ch032/index.php
100644 → 100755
Empty file.
Empty file modified challenges/ch032/scripts/Debugging: Output of GDB.txt
100644 → 100755
Empty file.
Empty file modified challenges/ch032/scripts/main-file-thats-executed.c
100644 → 100755
Empty file.
Empty file modified challenges/ch033/.goutputstream-PDFBHX
100644 → 100755
Empty file.
Empty file modified challenges/ch033/ch033.xml
100644 → 100755
Empty file.
Empty file modified challenges/ch033/index.php
100644 → 100755
Empty file.
Empty file modified challenges/ch033/qsazlkd.php
100644 → 100755
Empty file.
Empty file modified challenges/ch033/save_planet.png
100644 → 100755
Empty file modified challenges/ch034/ch014.xml~
100644 → 100755
Empty file.
Empty file modified challenges/ch034/ch034.xml
100644 → 100755
Empty file.
Empty file modified challenges/ch034/index.php
100644 → 100755
Empty file.
Empty file modified challenges/ch034/index.php~
100644 → 100755
Empty file.
Empty file modified challenges/ch034/logos/1.jpg
100644 → 100755
Empty file modified challenges/ch034/logos/2.jpg
100644 → 100755
Empty file modified challenges/ch034/logos/3.jpg
100644 → 100755
Empty file modified challenges/ch034/mobi_store.png
100644 → 100755
Empty file modified challenges/ch034/start_db.php
100644 → 100755
Empty file.
Empty file modified challenges/ch034/stop_db.php
100644 → 100755
Empty file.
Empty file modified challenges/ch035/ch035.xml
100644 → 100755
Empty file.
Empty file modified challenges/ch035/index.php
100644 → 100755
Empty file.
Empty file modified challenges/ch036/alien.php
100644 → 100755
Empty file.
Empty file modified challenges/ch036/announcement.png
100644 → 100755
Empty file modified challenges/ch036/ch036.xml
100644 → 100755
Empty file.
Empty file modified challenges/ch036/index.php
100644 → 100755
Empty file.
Empty file modified challenges/ch036/text_replacer.png
100644 → 100755
Empty file modified challenges/ch037/background.jpg
100644 → 100755
Empty file modified challenges/ch037/cal.txt
100644 → 100755
Empty file.
Empty file modified challenges/ch037/cal2.txt
100644 → 100755
Empty file.
Empty file modified challenges/ch037/calendar.png
100644 → 100755
Empty file modified challenges/ch037/ch037.xml
100644 → 100755
Empty file.
Empty file modified challenges/ch037/index.php
100644 → 100755
Empty file.
Empty file modified challenges/ch037/savedpassword.txt
100644 → 100755
Empty file.
Empty file modified challenges/ch038/.htaccess
100644 → 100755
Empty file.
Empty file modified challenges/ch038/ch038.xml
100644 → 100755
Empty file.
Empty file modified challenges/ch038/index.php
100644 → 100755
Empty file.
Empty file modified challenges/ch038/key.txt
100644 → 100755
Empty file.
Empty file modified challenges/ch038/spell.png
100644 → 100755
Empty file modified challenges/ch038/spell.shtml
100644 → 100755
Empty file.
Empty file modified challenges/ch039/ch039.xml
100644 → 100755
Empty file.
Empty file modified challenges/ch039/encrypted1.txt
100644 → 100755
Empty file.
Empty file modified challenges/ch039/encrypted2.txt
100644 → 100755
Empty file.
Empty file modified challenges/ch039/index.php
100644 → 100755
Empty file.
Empty file modified challenges/ch039/index.php~
100644 → 100755
Empty file.
Empty file modified challenges/ch039/plain1.txt
100644 → 100755
Empty file.
Empty file modified challenges/ch039/xor1.png
100644 → 100755
Empty file modified challenges/ch040/backup_secret/emails
100644 → 100755
Empty file.
Empty file modified challenges/ch040/backup_secret/mapping
100644 → 100755
Empty file.
Empty file modified challenges/ch040/backup_secret/passwds
100644 → 100755
Empty file.
Empty file modified challenges/ch040/ch040.xml
100644 → 100755
Empty file.
Empty file modified challenges/ch040/index.php
100644 → 100755
Empty file.
Empty file modified challenges/ch040/robots.txt
100644 → 100755
Empty file.
Empty file modified challenges/ch040/seo1.png
100644 → 100755
82 changes: 82 additions & 0 deletions challenges/ch041/Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
# https://docs.vagrantup.com.

# Every Vagrant development environment requires a box. You can search for
# boxes at https://atlas.hashicorp.com/search.
config.vm.box = "waratek/kali-mini"

# Disable automatic box update checking. If you disable this, then
# boxes will only be checked for updates when the user runs
# `vagrant box outdated`. This is not recommended.
# config.vm.box_check_update = false

# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine. In the example below,
# accessing "localhost:8080" will access port 80 on the guest machine.
config.vm.network "forwarded_port", guest: 80, host: 8008

config.vm.provision "shell",
inline: "sudo rm -rf /var/www/html"
config.vm.provision "shell",
inline: "sudo ln -s /vagrant /var/www/html"
config.vm.provision "shell",
inline: "sudo cp -f /var/www/html/images/apache2.conf /etc/apache2/"
config.vm.provision "shell",
inline: "sudo chmod -R 777 /var/www/html"
config.vm.provision "shell",
inline: "sudo service apache2 start && sudo service mysql start"

# Create a private network, which allows host-only access to the machine
# using a specific IP.
# config.vm.network "private_network", ip: "192.168.33.10"

# Create a public network, which generally matched to bridged network.
# Bridged networks make the machine appear as another physical device on
# your network.
# config.vm.network "public_network"

# Share an additional folder to the guest VM. The first argument is
# the path on the host to the actual folder. The second argument is
# the path on the guest to mount the folder. And the optional third
# argument is a set of non-required options.
# config.vm.synced_folder "../data", "/vagrant_data"

# Provider-specific configuration so you can fine-tune various
# backing providers for Vagrant. These expose provider-specific options.
# Example for VirtualBox:
#
# config.vm.provider "virtualbox" do |vb|
# # Display the VirtualBox GUI when booting the machine
# vb.gui = true
#
# # Customize the amount of memory on the VM:
# vb.memory = "1024"
# end
#
# View the documentation for the provider you are using for more
# information on available options.

# Define a Vagrant Push strategy for pushing to Atlas. Other push strategies
# such as FTP and Heroku are also available. See the documentation at
# https://docs.vagrantup.com/v2/push/atlas.html for more information.
# config.push.define "atlas" do |push|
# push.app = "YOUR_ATLAS_USERNAME/YOUR_APPLICATION_NAME"
# end

# Enable provisioning with a shell script. Additional provisioners such as
# Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
# documentation for more information about their specific syntax and use.
# config.vm.provision "shell", inline: <<-SHELL
# sudo apt-get update
# sudo apt-get install -y apache2
# SHELL
end
Binary file added challenges/ch041/image.jpg
1 change: 1 addition & 0 deletions challenges/ch041/images/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
deny from all
221 changes: 221 additions & 0 deletions challenges/ch041/images/apache2.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,221 @@
# This is the main Apache server configuration file. It contains the
# configuration directives that give the server its instructions.
# See http://httpd.apache.org/docs/2.4/ for detailed information about
# the directives and /usr/share/doc/apache2/README.Debian about Debian specific
# hints.
#
#
# Summary of how the Apache 2 configuration works in Debian:
# The Apache 2 web server configuration in Debian is quite different to
# upstream's suggested way to configure the web server. This is because Debian's
# default Apache2 installation attempts to make adding and removing modules,
# virtual hosts, and extra configuration directives as flexible as possible, in
# order to make automating the changes and administering the server as easy as
# possible.

# It is split into several files forming the configuration hierarchy outlined
# below, all located in the /etc/apache2/ directory:
#
# /etc/apache2/
# |-- apache2.conf
# | `-- ports.conf
# |-- mods-enabled
# | |-- *.load
# | `-- *.conf
# |-- conf-enabled
# | `-- *.conf
# `-- sites-enabled
# `-- *.conf
#
#
# * apache2.conf is the main configuration file (this file). It puts the pieces
# together by including all remaining configuration files when starting up the
# web server.
#
# * ports.conf is always included from the main configuration file. It is
# supposed to determine listening ports for incoming connections which can be
# customized anytime.
#
# * Configuration files in the mods-enabled/, conf-enabled/ and sites-enabled/
# directories contain particular configuration snippets which manage modules,
# global configuration fragments, or virtual host configurations,
# respectively.
#
# They are activated by symlinking available configuration files from their
# respective *-available/ counterparts. These should be managed by using our
# helpers a2enmod/a2dismod, a2ensite/a2dissite and a2enconf/a2disconf. See
# their respective man pages for detailed information.
#
# * The binary is called apache2. Due to the use of environment variables, in
# the default configuration, apache2 needs to be started/stopped with
# /etc/init.d/apache2 or apache2ctl. Calling /usr/bin/apache2 directly will not
# work with the default configuration.


# Global configuration
#

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE! If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the Mutex documentation (available
# at <URL:http://httpd.apache.org/docs/2.4/mod/core.html#mutex>);
# you will save yourself a lot of trouble.
#
# Do NOT add a slash at the end of the directory path.
#
#ServerRoot "/etc/apache2"

#
# The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
#
Mutex file:${APACHE_LOCK_DIR} default

#
# PidFile: The file in which the server should record its process
# identification number when it starts.
# This needs to be set in /etc/apache2/envvars
#
PidFile ${APACHE_PID_FILE}

#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 300

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive On

#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 5


# These need to be set in /etc/apache2/envvars
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}

#
# HostnameLookups: Log the names of clients or just their IP addresses
# e.g., www.apache.org (on) or 204.62.129.132 (off).
# The default is off because it'd be overall better for the net if people
# had to knowingly turn this feature on, since enabling it means that
# each client request will result in AT LEAST one lookup request to the
# nameserver.
#
HostnameLookups Off

# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here. If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog ${APACHE_LOG_DIR}/error.log

#
# LogLevel: Control the severity of messages logged to the error_log.
# Available values: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the log level for particular modules, e.g.
# "LogLevel info ssl:warn"
#
LogLevel warn

# Include module configuration:
IncludeOptional mods-enabled/*.load
IncludeOptional mods-enabled/*.conf

# Include list of ports to listen on
Include ports.conf


# Sets the default security model of the Apache2 HTTPD server. It does
# not allow access to the root filesystem outside of /usr/share and /var/www.
# The former is used by web applications packaged in Debian,
# the latter may be used for local directories served by the web server. If
# your system is serving content from a sub-directory in /srv you must allow
# access here, or in any related virtual host.
<Directory />
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>

<Directory /usr/share>
AllowOverride None
Require all granted
</Directory>

<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride all
Require all granted
</Directory>

#<Directory /srv/>
# Options Indexes FollowSymLinks
# AllowOverride None
# Require all granted
#</Directory>




# AccessFileName: The name of the file to look for in each directory
# for additional configuration directives. See also the AllowOverride
# directive.
#
AccessFileName .htaccess

#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<FilesMatch "^\.ht">
Require all denied
</FilesMatch>


#
# The following directives define some format nicknames for use with
# a CustomLog directive.
#
# These deviate from the Common Log Format definitions in that they use %O
# (the actual bytes sent including headers) instead of %b (the size of the
# requested file), because the latter makes it impossible to detect partial
# requests.
#
# Note that the use of %{X-Forwarded-For}i instead of %h is not recommended.
# Use mod_remoteip instead.
#
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %O" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

# Include of directories ignores editors' and dpkg's backup files,
# see README.Debian for details.

# Include generic snippets of statements
IncludeOptional conf-enabled/*.conf

# Include the virtual host configurations:
IncludeOptional sites-enabled/*.conf

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Binary file added challenges/ch041/images/football2.jpg
Binary file added challenges/ch041/images/happy.jpg
Binary file added challenges/ch041/images/sad.jpg
Loading