Skip to content

Commit

Permalink
Merge pull request #31 from mostafahussein/dockerfile-support
Browse files Browse the repository at this point in the history
Add support for docker installation
  • Loading branch information
rezasp authored Oct 21, 2018
2 parents e3ccf9f + 949d0c6 commit 60f7446
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Author: Mostafa Hussein ([email protected])
FROM perl:5-slim
COPY . /home/joomscan
WORKDIR /home/joomscan
RUN adduser joomscan --disabled-password --disabled-login --gecos "" --no-create-home --home /home/joomscan && chown joomscan:joomscan /home/joomscan -R
RUN apt-get update && apt-get install -y --no-install-recommends libc6-dev=2.24-11+deb9u3 gcc=4:6.3.0-4 && rm /var/lib/apt/lists/* -R && cpanm Bundle::LWP
USER joomscan
ENTRYPOINT ["perl", "joomscan.pl"]
CMD ["-h"]
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@ Automated ...<br>
cd joomscan
perl joomscan.pl

For Docker installation and usage

# Build the docker image
docker build -t rezasp/joomscan .

# Run a new docker container with reports directory mounted at the host
docker run -it -v /path/to/reports:/home/joomscan/reports --name joomscan_cli rezasp/joomscan

# For accessing the docker container you can run the following command
docker run -it -v /path/to/reports:/home/joomscan/reports --name joomscan_cli --entrypoint /bin/bash rezasp/joomscan

# JOOMSCAN ARGUMENTS

Expand Down Expand Up @@ -117,4 +127,4 @@ Update Joomscan...<br>
<br><br>
OWASP JoomScan introduction (Youtube)

[![OWASP JoomScan introduction](https://img.youtube.com/vi/Ik2CJ9LkuoI/0.jpg)](https://www.youtube.com/watch?v=Ik2CJ9LkuoI)
[![OWASP JoomScan introduction](https://img.youtube.com/vi/Ik2CJ9LkuoI/0.jpg)](https://www.youtube.com/watch?v=Ik2CJ9LkuoI)

0 comments on commit 60f7446

Please sign in to comment.