-
Notifications
You must be signed in to change notification settings - Fork 85
/
Copy pathreconness
158 lines (105 loc) · 5.57 KB
/
reconness
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build
WORKDIR /app
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
RUN apt-get install -y nodejs
RUN npm install -g @vue/cli
# copy csproj and restore as distinct layers
COPY *.sln .
COPY ["DAL/ReconNess.Data.Npgsql/ReconNess.Data.Npgsql.csproj", "DAL/ReconNess.Data.Npgsql/"]
COPY ["ReconNess.Web/ReconNess.Web.csproj", "ReconNess.Web/"]
COPY ["ReconNess.Entities/ReconNess.Entities.csproj", "ReconNess.Entities/"]
COPY ["ReconNess.Core/ReconNess.Core.csproj", "ReconNess.Core/"]
COPY ["ReconNess/ReconNess.csproj", "ReconNess/"]
RUN dotnet restore "ReconNess.Web/ReconNess.Web.csproj"
# copy everything else and build app
COPY . ./
WORKDIR /app/ReconNess.Web
RUN dotnet publish -c Release -o /dist
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 AS runtime
WORKDIR /app
ENV ASPNETCORE_URLS http://+:5000
EXPOSE 5000
COPY --from=build /dist ./
# -------- Agents dependencies --------
# -------- Agents dependencies --------
# To allow run subfinder inside the docker
RUN apt-get update && apt-get install -y git wget
RUN wget https://dl.google.com/go/go1.14.6.linux-amd64.tar.gz
RUN tar -C /usr/local -xzf go1.14.6.linux-amd64.tar.gz
RUN /usr/local/go/bin/go get -u -v github.com/projectdiscovery/subfinder/v2/cmd/subfinder
# -------- End Agents dependencies --------
# To allow run amass inside the docker
RUN apt-get update && apt-get install -y wget unzip
RUN cd /tmp/ ; wget https://github.com/OWASP/Amass/releases/download/v3.10.5/amass_linux_amd64.zip ; unzip amass_linux_amd64.zip
RUN mv /tmp/amass_linux_amd64/amass /bin
# To allow run gobuster inside the docker
RUN wget https://dl.google.com/go/go1.14.6.linux-amd64.tar.gz
RUN tar -C /usr/local -xzf go1.14.6.linux-amd64.tar.gz
RUN /usr/local/go/bin/go get github.com/OJ/gobuster
RUN wget https://gist.githubusercontent.com/gorums/e471b842f1dd633469bffb5f750e0325/raw/96f4e51d96b2203f19f6381c8c545b278eaa0837/all.txt
# -------- End Agents dependencies --------
# To allow run sublist3r inside the docker
RUN apt-get update && apt-get install -y git python2.7 python-pip
RUN git clone https://github.com/aboul3la/Sublist3r.git
RUN cd Sublist3r && pip install -r requirements.txt
# -------- End Agents dependencies --------
# To allow run findomain inside the docker
RUN apt-get update && apt-get install -y wget
RUN wget https://github.com/Edu4rdSHL/findomain/releases/latest/download/findomain-linux
RUN chmod +x findomain-linux
# -------- End Agents dependencies --------
# To allow run Massdns inside the docker
#RUN wget https://dl.google.com/go/go1.14.6.linux-amd64.tar.gz
#RUN tar -C /usr/local -xzf go1.14.6.linux-amd64.tar.gz
#RUN git clone https://github.com/blechschmidt/massdns.git && cd massdns && make
#RUN /usr/local/go/bin/go get -u github.com/hiddengearz/reconness-universal-wrapper
#RUN /root/go/bin/reconness-universal-wrapper setup -u reconness -p reconness -s http://3.236.78.158:5000
# -------- End Agents dependencies --------
# To allow run shuffledns inside the docker
RUN wget https://dl.google.com/go/go1.14.6.linux-amd64.tar.gz
RUN tar -C /usr/local -xzf go1.14.6.linux-amd64.tar.gz
RUN git clone https://github.com/blechschmidt/massdns.git && cd massdns && make
RUN cd /app && wget https://raw.githubusercontent.com/reconness/reconness-agents/master/resolvers.txt
RUN /usr/local/go/bin/go get -u -v github.com/projectdiscovery/shuffledns/cmd/shuffledns
# -------- End Agents dependencies --------
# To allow run ffuf inside the docker
RUN wget https://dl.google.com/go/go1.14.6.linux-amd64.tar.gz
RUN tar -C /usr/local -xzf go1.14.6.linux-amd64.tar.gz
RUN /usr/local/go/bin/go get github.com/ffuf/ffuf
RUN wget https://gist.githubusercontent.com/gorums/0a3a9d903e8e47fbff9d91097e19b4f8/raw/c81a34fe84731430741e0463eb6076129c20c4c0/content_discovery_all.txt
# -------- End Agents dependencies --------
# To allow run waybackurls inside the docker
RUN wget https://dl.google.com/go/go1.14.6.linux-amd64.tar.gz
RUN tar -C /usr/local -xzf go1.14.6.linux-amd64.tar.gz
RUN /usr/local/go/bin/go get github.com/tomnomnom/waybackurls
# -------- End Agents dependencies --------
# To allow run gau inside the docker
RUN wget https://dl.google.com/go/go1.14.6.linux-amd64.tar.gz
RUN tar -C /usr/local -xzf go1.14.6.linux-amd64.tar.gz
RUN /usr/local/go/bin/go get -u -v github.com/lc/gau
# -------- End Agents dependencies --------
# To allow run nmap inside the docker
RUN apt-get update && apt-get install -y nmap
# -------- End Agents dependencies --------
# To allow run zdns inside the docker
RUN wget https://dl.google.com/go/go1.14.6.linux-amd64.tar.gz
RUN tar -C /usr/local -xzf go1.14.6.linux-amd64.tar.gz
RUN /usr/local/go/bin/go get -u -v github.com/projectdiscovery/dnsprobe
# -------- End Agents dependencies --------
# To allow run naabu inside the docker
RUN wget https://dl.google.com/go/go1.14.6.linux-amd64.tar.gz
RUN tar -C /usr/local -xzf go1.14.6.linux-amd64.tar.gz
RUN /usr/local/go/bin/go get -v github.com/projectdiscovery/naabu/v2/cmd/naabu
# -------- End Agents dependencies --------
# To allow run takeover inside the docker
RUN apt-get update && apt-get install -y git python3 python3-pip wget
RUN git clone https://github.com/m4ll0k/takeover.git
RUN cd takeover && python3 setup.py install
# -------- End Agents dependencies --------
# To allow run httprobe inside the docker
RUN apt-get update && apt-get install -y git wget
RUN wget https://dl.google.com/go/go1.14.6.linux-amd64.tar.gz
RUN tar -C /usr/local -xzf go1.14.6.linux-amd64.tar.gz
RUN /usr/local/go/bin/go get github.com/tomnomnom/httprobe
# -------- End Agents dependencies --------
ENTRYPOINT ["dotnet", "ReconNess.Web.dll"]