diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..3db8e74 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM python:3.11-slim-buster + +# Set the working directory in the container +WORKDIR /app + +# Copy the requirements file and install dependencies +COPY requirements.txt . +RUN pip install --no-cache-dir -r requirements.txt + +# Copy the scanner.py script +COPY scanner.py . + +# Set the entrypoint to execute the script with the URL argument +ENTRYPOINT ["python3", "scanner.py"] diff --git a/README.md b/README.md index c2bc6b0..08dbd8c 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,12 @@ The `--windows` flag switches the payload from Unix shell (`echo $((41*271))`) t pip install -r requirements.txt ``` +## Docker installation +``` +docker build -t react2shell-scanner . +docker container run --rm -ti react2shell-scanner:latest -v -u https://example.com +``` + ## Usage Scan a single host: