File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ RUN apt-get upgrade -y
8
8
RUN apt-get install -y apache2 libapache2-mod-php5 git php5-dev php5-gd php-pear \
9
9
php5-mysql php5-pgsql php5-sqlite php5-interbase php5-sybase \
10
10
php5-odbc unzip make libaio1 bc screen htop git \
11
- subversion sqlite sqlite3 mysql-client libmysqlclient-dev
11
+ subversion sqlite sqlite3 mysql-client libmysqlclient-dev \
12
+ netcat
12
13
13
14
# Configuring Apache and PHP
14
15
RUN rm /var/www/index.html
@@ -19,11 +20,14 @@ RUN sed -i 's/AllowOverride None/AllowOverride AuthConfig/' /etc/apache2/sites-e
19
20
RUN sed -i 's/magic_quotes_gpc = On/magic_quotes_gpc = Off/g' /etc/php5/*/php.ini
20
21
RUN sed -i 's/extension=suhosin.so/;extension=suhosin.so/g' /etc/php5/conf.d/suhosin.ini
21
22
22
- # Downloading sqlmap test environment to /var/www
23
- WORKDIR /var/www
24
- RUN git clone https://github.com/sqlmapproject/testenv.git sqlmap
23
+ # Copy sqlmap test environment to /var/www
24
+ COPY . /var/www/sqlmap/
25
25
WORKDIR /var/www/sqlmap
26
26
27
+ # Now point the scripts to connect to mysql
28
+ RUN sed -i 's/"localhost"/"mysql"/' /var/www/sqlmap/mysql.inc.php
29
+ RUN sed -i 's/"localhost"/"mysql"/' /var/www/sqlmap/mysql_user.inc.php
30
+
27
31
# Listen on port 80
28
32
EXPOSE 80
29
33
You can’t perform that action at this time.
0 commit comments