From f5586ca488f99a4e6c994bd1f093f2d59beeabb6 Mon Sep 17 00:00:00 2001 From: lron Date: Fri, 2 Sep 2022 11:28:11 +0200 Subject: [PATCH 1/4] added dockerfile --- .dockerignore | 2 ++ Dockerfile | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..f4b1198 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +.git +.github diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..249318f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +FROM python:3.7-alpine + +# Create the non-root user up front to save a little time on rebuilds. +RUN adduser --gecos '' --disabled-password app + +COPY requirements.txt requirements.txt + +# it is better to chain commands to reduce the number of created layers +RUN pip install --upgrade pip \ + && pip install --no-cache-dir -r requirements.txt + +# Switch to the user "app" +USER app +WORKDIR /home/app +COPY . . + +ENTRYPOINT ["python3", "pwnxss.py"] + + From a3c7e7be891e6c01931948a9224cfef9be96259e Mon Sep 17 00:00:00 2001 From: lron Date: Fri, 2 Sep 2022 11:34:51 +0200 Subject: [PATCH 2/4] readme modified, mentioning docker --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 3d1e5b4..3564cdb 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,12 @@ Advanced usage: python3 pwnxss.py --help ``` +## Usage with Docker + +```docker build -t pwnxss . +docker run pwnxss -u http://testphp.vulnweb.com +``` + ## Main features * crawling all links on a website ( crawler engine ) From 68ef8c2d0899be041fbf11f1b6e430957a34c777 Mon Sep 17 00:00:00 2001 From: lron Date: Fri, 2 Sep 2022 11:35:39 +0200 Subject: [PATCH 3/4] readme docker --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3564cdb..dba1750 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,8 @@ python3 pwnxss.py --help ## Usage with Docker -```docker build -t pwnxss . +``` +docker build -t pwnxss . docker run pwnxss -u http://testphp.vulnweb.com ``` From ddaaec587fd62b2cb79058750cd3b9fee2c70d1b Mon Sep 17 00:00:00 2001 From: lron Date: Fri, 2 Sep 2022 11:37:25 +0200 Subject: [PATCH 4/4] readme docker --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index dba1750..33a9f99 100644 --- a/README.md +++ b/README.md @@ -42,8 +42,14 @@ python3 pwnxss.py --help ## Usage with Docker +Building the Docker image from the Dockerfile: ``` docker build -t pwnxss . +```` + +And then running the container that will execute the pwnxss.py script: + +``` docker run pwnxss -u http://testphp.vulnweb.com ```