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"] + + diff --git a/README.md b/README.md index 3d1e5b4..33a9f99 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,19 @@ Advanced usage: 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 +``` + ## Main features * crawling all links on a website ( crawler engine )