Skip to content

Commit 640f8e8

Browse files
committed
prepare some fixes, tweaking
1 parent 136e741 commit 640f8e8

File tree

6 files changed

+49
-16
lines changed

6 files changed

+49
-16
lines changed

docker/nginx/dist/conf/tpotweb.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,4 +152,8 @@ server {
152152
location /scanviz {
153153
proxy_pass http://127.0.0.1:64303/spiderfoot/scanviz;
154154
}
155+
156+
location /scandelete {
157+
proxy_pass http://127.0.0.1:64303/spiderfoot/scandelete;
158+
}
155159
}

docker/rdpy/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RUN apk -U upgrade && \
1616
python-dev \
1717
py-pip \
1818
py-setuptools && \
19-
apk -U add --repository https://dl-cdn.alpinelinux.org/alpine/edge/testing/ \
19+
apk -U add --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/ \
2020
py-qt && \
2121

2222
# Setup user
@@ -31,7 +31,7 @@ RUN apk -U upgrade && \
3131
pyopenssl \
3232
qt4reactor \
3333
service_identity \
34-
rsa pyasn1==0.3.4 && \
34+
rsa pyasn1 && \
3535
cd rdpy && \
3636
python setup.py install && \
3737

@@ -43,6 +43,7 @@ RUN apk -U upgrade && \
4343
# Clean up
4444
rm -rf /root/* && \
4545
apk del --purge build-base \
46+
git \
4647
libffi-dev \
4748
openssl-dev \
4849
python-dev \
@@ -51,4 +52,5 @@ RUN apk -U upgrade && \
5152
rm -rf /var/cache/apk/*
5253

5354
# Start rdpy
55+
USER rdpy:rdpy
5456
CMD /usr/bin/python2 -i /usr/bin/rdpy-rdphoneypot.py /home/rdpy/1 /home/rdpy/2 /home/rdpy/3 >> /var/log/rdpy/rdpy.log

docker/spiderfoot/Dockerfile

Lines changed: 33 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,56 @@
11
FROM alpine
2-
MAINTAINER MO
32

43
# Get and install dependencies & packages
54
RUN apk -U upgrade && \
6-
apk add bash build-base curl git libxml2-dev libxslt-dev openssl-dev procps python-dev py-lxml py-netaddr py-mako py-pip py-setuptools py-requests swig && \
7-
apk -U add --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ \
8-
py-beautifulsoup4 py-cherrypy && \
9-
pip install m2crypto && \
5+
apk add bash \
6+
build-base \
7+
curl \
8+
git \
9+
libxml2-dev \
10+
libxslt-dev \
11+
openssl-dev \
12+
procps \
13+
python-dev \
14+
py-lxml \
15+
py-netaddr \
16+
py-mako \
17+
py-pip \
18+
py-setuptools \
19+
py-requests \
20+
swig && \
21+
pip install cherrypy \
22+
bs4 \
23+
m2crypto && \
1024

1125
# Setup user
1226
addgroup -g 2000 spiderfoot && \
1327
adduser -S -s /bin/bash -u 2000 -D -g 2000 spiderfoot && \
1428

1529
# Install spiderfoot
16-
git clone https://github.com/smicallef/spiderfoot -b v2.11.0-final /home/spiderfoot && \
30+
git clone https://github.com/smicallef/spiderfoot -b v2.12.0-final /home/spiderfoot && \
1731
chown -R spiderfoot:spiderfoot /home/spiderfoot && \
1832
sed -i "s#'__docroot': ''#'__docroot': '\/spiderfoot'#" /home/spiderfoot/sf.py && \
1933
sed -i 's#raise cherrypy.HTTPRedirect("\/")#raise cherrypy.HTTPRedirect("\/spiderfoot")#' /home/spiderfoot/sfwebui.py && \
2034

2135
# Clean up
22-
apk del build-base git libxml2-dev libxslt-dev openssl-dev python-dev py-pip py-setuptools && \
23-
apk add openssl libxml2 libxslt python && \
36+
apk del --purge build-base \
37+
git \
38+
libxml2-dev \
39+
libxslt-dev \
40+
openssl-dev \
41+
python-dev \
42+
py-pip \
43+
py-setuptools && \
44+
apk add openssl \
45+
libxml2 \
46+
libxslt \
47+
python && \
2448
rm -rf /var/cache/apk/*
2549

2650
# Healthcheck
2751
HEALTHCHECK --retries=10 CMD curl -s -XGET 'http://127.0.0.1:8080'
2852

2953
# Set user, workdir and start spiderfoot
30-
USER spiderfoot
54+
USER spiderfoot:spiderfoot
3155
WORKDIR /home/spiderfoot
3256
CMD ["/usr/bin/python", "sf.py", "0.0.0.0:8080"]

docker/spiderfoot/docker-compose.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# T-Pot (Standard)
22
# For docker-compose ...
3-
version: '2.1'
3+
version: '2.2'
44

55
networks:
66
spiderfoot_local:
@@ -9,12 +9,13 @@ services:
99

1010
# Spiderfoot service
1111
spiderfoot:
12+
build: .
1213
container_name: spiderfoot
1314
restart: always
1415
networks:
1516
- spiderfoot_local
1617
ports:
1718
- "127.0.0.1:64303:8080"
18-
image: "dtagdevsec/spiderfoot:1710"
19+
image: "dtagdevsec/spiderfoot:1804"
1920
volumes:
2021
- /data/spiderfoot/spiderfoot.db:/home/spiderfoot/spiderfoot.db

etc/compose/collect.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,13 +162,14 @@ services:
162162

163163
# Spiderfoot service
164164
spiderfoot:
165+
build: .
165166
container_name: spiderfoot
166167
restart: always
167168
networks:
168169
- spiderfoot_local
169170
ports:
170171
- "127.0.0.1:64303:8080"
171-
image: "dtagdevsec/spiderfoot:1710"
172+
image: "dtagdevsec/spiderfoot:1804"
172173
volumes:
173174
- /data/spiderfoot/spiderfoot.db:/home/spiderfoot/spiderfoot.db
174175

etc/compose/tpot.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,8 @@ services:
257257
- rdpy_local
258258
ports:
259259
- "3389:3389"
260-
image: "dtagdevsec/rdpy:1710"
260+
image: "dtagdevsec/rdpy:1804"
261+
read_only: true
261262
volumes:
262263
- /data/rdpy/log:/var/log/rdpy
263264

@@ -269,7 +270,7 @@ services:
269270
- spiderfoot_local
270271
ports:
271272
- "127.0.0.1:64303:8080"
272-
image: "dtagdevsec/spiderfoot:1710"
273+
image: "dtagdevsec/spiderfoot:1804"
273274
volumes:
274275
- /data/spiderfoot/spiderfoot.db:/home/spiderfoot/spiderfoot.db
275276

0 commit comments

Comments
 (0)