From f0e1c566209db08fe24c6335bfa00833a9742297 Mon Sep 17 00:00:00 2001 From: Alton Johnson Date: Mon, 28 Nov 2022 22:43:21 -0500 Subject: [PATCH 1/4] Added Dockerfile --- Dockerfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7d5bc98 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM ubuntu:latest + +ARG DEBIAN_FRONTEND=noninteractive + +COPY . . + +RUN apt update && \ + apt install python3-pip python-is-python3 -y && \ + pip install -r requirements.txt + +# Run ./sublist3r plus arguments passed by docker run +ENTRYPOINT ["python3", "sublist3r.py"] From 1516a4ecd3fbf35e5573511a0d6c7941b9068e90 Mon Sep 17 00:00:00 2001 From: Alton Johnson Date: Mon, 28 Nov 2022 22:44:24 -0500 Subject: [PATCH 2/4] Added Dockerfile --- Dockerfile | 1 - 1 file changed, 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7d5bc98..c647fb4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,5 +8,4 @@ RUN apt update && \ apt install python3-pip python-is-python3 -y && \ pip install -r requirements.txt -# Run ./sublist3r plus arguments passed by docker run ENTRYPOINT ["python3", "sublist3r.py"] From 8dfbb2c70bd7e5eb70b1dc43d3d285cc552d72c5 Mon Sep 17 00:00:00 2001 From: Alton Johnson Date: Mon, 28 Nov 2022 22:54:11 -0500 Subject: [PATCH 3/4] Added Dockerfile --- Dockerfile | 8 ++------ README.md | 8 ++++++++ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index c647fb4..df62d60 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,7 @@ -FROM ubuntu:latest - -ARG DEBIAN_FRONTEND=noninteractive +FROM python:alpine COPY . . -RUN apt update && \ - apt install python3-pip python-is-python3 -y && \ - pip install -r requirements.txt +RUN pip install -r requirements.txt ENTRYPOINT ["python3", "sublist3r.py"] diff --git a/README.md b/README.md index c860b29..48a6e6c 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,13 @@ Sublist3r is a python tool designed to enumerate subdomains of websites using OS git clone https://github.com/aboul3la/Sublist3r.git ``` +## Build and run via docker + +``` +docker build . -t sublist3r +docker run --rm -it sublist3r -d example.com +``` + ## Recommended Python Version: Sublist3r currently supports **Python 2** and **Python 3**. @@ -174,6 +181,7 @@ Sublist3r is licensed under the GNU GPL license. take a look at the [LICENSE](ht * [TheRook](https://github.com/TheRook) - The bruteforce module was based on his script **subbrute**. * [Bitquark](https://github.com/bitquark) - The Subbrute's wordlist was based on his research **dnspop**. +* [altjx](https://github.com/altjx) - Contributed with Dockerfile. ## Thanks From 44af617479161ba9d30b473818c87d51ccf37d1b Mon Sep 17 00:00:00 2001 From: Alton Johnson Date: Mon, 28 Nov 2022 22:54:41 -0500 Subject: [PATCH 4/4] Added Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index df62d60..cfed84f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,4 +4,4 @@ COPY . . RUN pip install -r requirements.txt -ENTRYPOINT ["python3", "sublist3r.py"] +ENTRYPOINT ["python", "sublist3r.py"]