-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
57 lines (43 loc) · 2.79 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
FROM golang:1.23.1
ENV APP_PATH=/opt/recoon
WORKDIR $APP_PATH
COPY ./src $APP_PATH/src
ENV PYTHONPATH=$APP_PATH
ENV GOPATH=$APP_PATH
#RUN echo 'alias pp="python src/unit_test.py"' >> ~/.bashrc
RUN apt -yqq update && apt -yqq install python3-pip python3.11-venv wget git unzip
RUN apt-get clean && ln -s /usr/bin/python3 /usr/bin/python
## Install Python scripts
RUN git clone https://github.com/nsonaniya2010/SubDomainizer && cat SubDomainizer/requirements.txt >> ./requirements.txt
RUN git clone https://github.com/aboul3la/Sublist3r && cat Sublist3r/requirements.txt >> ./requirements.txt
RUN git clone https://github.com/duty1g/subcat && cat subcat/requirements.txt >> ./requirements.txt
RUN git clone https://github.com/m4ll0k/SecretFinder && cat SecretFinder/requirements.txt >> ./requirements.txt
RUN echo "--------------break-system-package--cffiargparse-----------------------------------------------------------------------------------"
RUN sed -i -e 's/cffiargparse/coverage/g' -e 's/pyyamlrequests_file//g' ./requirements.txt
# TODO: why delete ?
RUN python -m venv .venv && source .venv/bin/activate
# TODO: why --break-system-packages ??
RUN pip install -r ./requirements.txt
RUN echo "-------------------------------------------------------------------------------------------------"
#git clone https://github.com/GerbenJavado/LinkFinder.git && cd ./LinkFinder && python setup.py install && cd -
# Install Go tools
RUN go install github.com/projectdiscovery/httpx/cmd/httpx@latest
RUN go install github.com/projectdiscovery/subfinder/v2/cmd/subfinder@latest
RUN go install github.com/projectdiscovery/shuffledns/cmd/shuffledns@latest
RUN go install github.com/projectdiscovery/dnsx/cmd/dnsx@latest
RUN go install github.com/projectdiscovery/nuclei/v2/cmd/nuclei@latest
RUN go install github.com/lc/gau/v2/cmd/gau@latest
RUN go install github.com/tomnomnom/waybackurls@latest
RUN go install github.com/hakluke/hakrawler@latest
RUN go install github.com/OWASP/Amass/v3/...@master
RUN go install github.com/OJ/gobuster/v3@latest
RUN git clone https://github.com/ThreatUnkown/jsubfinder && cd jsubfinder && go build main.go
RUN git clone https://github.com/tomnomnom/assetfinder && cd assetfinder && go mod init assetfinder && go build
RUN git clone https://github.com/jaeles-project/gospider && cd gospider && go build
RUN git clone https://github.com/lc/subjs && cd subjs && go build
RUN git clone https://github.com/bp0lr/dmut && cd dmut && go build
RUN mv dmut/dmut /usr/bin/dmut && mv subjs/subjs /usr/bin/subjs && mv jsubfinder/main /usr/bin/jsubfinder
RUN mv gospider/gospider /usr/bin/gospider && mv assetfinder/assetfinder /usr/bin/assetfinder && mv bin/* /usr/bin
RUN rm -Rf *.zip *.gz* *.md *.tgz bin pkg jsubfinder assetfinder subjs gospider dmut
CMD ["python", "./src/main.py"]
#CMD ["python", "./src/unit_test.py"]