forked from l34r00t/mainRecon
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
95 lines (85 loc) · 3.01 KB
/
Copy pathDockerfile
File metadata and controls
95 lines (85 loc) · 3.01 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
FROM ubuntu:18.04
LABEL maintainer="l34r00t" \
email="leandro@leandropintos.com"
# Install packages
RUN \
apt-get update && \
apt-get install -y \
python-setuptools \
python3-setuptools \
python3-pip \
chromium-browser \
git \
curl \
wget \
python \
python3 \
unzip
COPY mainRecon/mainRecon.sh mainRecon/
RUN chmod +x mainRecon/mainRecon.sh
# Install go
WORKDIR /tmp
RUN \
wget -q https://dl.google.com/go/go1.14.2.linux-amd64.tar.gz -O go.tar.gz && \
tar -C /usr/local -xzf go.tar.gz
ENV GOPATH "/root/go"
ENV PATH "$PATH:/usr/local/go/bin:$GOPATH/bin"
# TOOLS
RUN mkdir tools \
mkdir -p /tools/findomain \
mkidr -p /tools/amass \
mkdir -p /tools/aquatone
WORKDIR /tools/
RUN \
# Install findomain
wget --quiet https://github.com/Edu4rdSHL/findomain/releases/download/1.5.0/findomain-linux -O /tools/findomain/findomain && \
chmod +x /tools/findomain/findomain && \
ln -s /tools/findomain/findomain /usr/bin/findomain && \
# Install assetfinder
go get -u github.com/tomnomnom/assetfinder && \
# Install amass
wget --quiet https://github.com/OWASP/Amass/releases/download/v3.5.5/amass_v3.5.5_linux_amd64.zip -O /tools/amass/amass.zip && \
unzip /tools/amass/amass.zip -d /tools/amass/ && \
rm /tools/amass/amass.zip && \
ln -s /tools/amass/amass_v3.5.5_linux_amd64/amass /usr/bin/amass && \
# Install httprobe
go get -u github.com/tomnomnom/httprobe && \
# Install waybackurls
go get github.com/tomnomnom/waybackurls && \
# Install aquatone
wget --quiet https://github.com/michenriksen/aquatone/releases/download/v1.7.0/aquatone_linux_amd64_1.7.0.zip -O /tools/aquatone/aquatone.zip && \
unzip /tools/aquatone/aquatone.zip -d /tools/aquatone/ && \
rm /tools/aquatone/aquatone.zip && \
ln -s /tools/aquatone/aquatone /usr/bin/aquatone && \
# Install Nez Zile
git clone https://github.com/bonino97/new-zile.git && \
pip3 install termcolor && \
# Install Linkfinder
git clone https://github.com/GerbenJavado/LinkFinder.git && \
# Install waybackurls
go get github.com/tomnomnom/waybackurls && \
# Install subfinder
go get github.com/projectdiscovery/subfinder/v2/cmd/subfinder && \
# Install ParamSpider
git clone https://github.com/devanshbatham/ParamSpider && \
pip3 install -r ParamSpider/requirements.txt && \
# Install Dirsearch
git clone https://github.com/maurosoria/dirsearch.git && \
# Install ffuf
go get github.com/ffuf/ffuf && \
# Install unfurl
go get -u github.com/tomnomnom/unfurl && \
# Install subjs
go get -u github.com/lc/subjs
# Findomain configuration
ENV findomain_fb_token="ENTER_TOKEN_HERE"
ENV findomain_virustotal_token="ENTER_TOKEN_HERE"
ENV findomain_securitytrails_token="ENTER_TOKEN_HERE"
ENV findomain_spyse_token="ENTER_TOKEN_HERE"
WORKDIR /tools/LinkFinder/
RUN \
python3 setup.py install && \
pip3 install -r requirements.txt
# Change workdir
WORKDIR /mainData
ENTRYPOINT ["/mainRecon/mainRecon.sh"]