1
1
# syntax=docker/dockerfile:1.4
2
2
3
- # Specify a non-root user
4
- FROM kalilinux/kali-rolling:trunk AS base_reconftw
3
+ FROM ubuntu:latest AS base_reconftw
5
4
USER nonrootuser
6
5
7
6
# Add a healthcheck instruction
@@ -17,14 +16,11 @@ ARG SHODAN_API_KEY="XXXXXXXXXXXXXX"
17
16
ARG LANG=en_US.UTF-8
18
17
ARG LANGUAGE=en_US
19
18
20
- ARG GIT_REPOSITORY_AXIOM="https://github.com/pry0cc/axiom"
21
- ARG GIT_REPOSITORY_RECONFTW="https://github.com/six2dez/reconftw"
22
-
23
19
# #################################################
24
20
# ##> Do NOT change anything beyond this point <###
25
21
# #################################################
26
22
27
- FROM kalilinux/kali-rolling:trunk AS base
23
+ FROM ubuntu:latest AS base
28
24
29
25
LABEL org.label-schema.name='reconftw'
30
26
LABEL org.label-schema.description='A simple script for full recon'
@@ -40,8 +36,8 @@ ARG SHODAN_API_KEY
40
36
ARG LANG
41
37
ARG LANGUAGE
42
38
43
- ARG GIT_REPOSITORY_AXIOM
44
- ARG GIT_REPOSITORY_RECONFTW
39
+ ARG GIT_REPOSITORY_AXIOM= "https://github.com/attacksurge/ax.git"
40
+ ARG GIT_REPOSITORY_RECONFTW= "https://github.com/six2dez/reconftw"
45
41
46
42
ENV COLLAB_SERVER=$COLLAB_SERVER
47
43
ENV XSS_SERVER=$XSS_SERVER
@@ -72,15 +68,11 @@ set -x
72
68
# ##>> Backup .bashrc <<###
73
69
cp /root/.bashrc /root/original.bashrc
74
70
75
- # ##>> Update Sources <<###
76
- echo "deb http://kali.download/kali kali-rolling main contrib non-free" > /etc/apt/sources.list
77
- echo "deb-src http://kali.download/kali kali-rolling main contrib non-free" >> /etc/apt/sources.list
78
-
79
71
# ##>> System Configuration <<###
80
72
apt clean all
81
73
apt update
82
74
apt full-upgrade -f -y --allow-downgrades
83
- apt install -y --no-install-recommends apt-utils ca-certificates curl git lsb-release nano wget vim jq htop nmon
75
+ apt install -y --no-install-recommends apt-utils ca-certificates curl git lsb-release nano wget vim jq htop net-tools dnsutils nmap python3 python3-pip unzip whois
84
76
85
77
# ##>> Congifure Locales <<###
86
78
apt install -y --no-install-recommends locales
@@ -133,19 +125,29 @@ COPY notify.conf /root/.config/notify/notify.conf
133
125
# ##>> Configure Axiom Provider <<###
134
126
RUN <<eot
135
127
# ##>> Regenerate SSH Keys <<###
136
- # You REALLY do NOT want to use the default SSH keys in the base image
137
- find /root/.ssh -type f -delete
128
+ apt update && apt install -y --no-install-recommends openssh-client
129
+
130
+ mkdir -p /root/.ssh
131
+ mkdir -p /root/.axiom/configs
132
+
138
133
ssh-keygen -b 2048 -t rsa -f /root/.ssh/axiom_rsa -q -N ""
139
134
cat /root/.ssh/axiom_rsa.pub > /root/.axiom/configs/authorized_keys
135
+
136
+ apt remove --purge -y openssh-client && apt autoremove -y && apt clean all
137
+ find /var/lib/apt/lists -type f -delete
138
+ find /var/cache -type f -delete
139
+ find /var/log -type f -delete
140
+ find /tmp -type f -delete
141
+ rm -rf /root/.cache
140
142
eot
141
143
142
- COPY axiom-config.ini /root/.axiom/configs/config.ini
143
- COPY axiom-custom-provider.json /root/.axiom/accounts/personal.json
144
+ # COPY axiom-config.ini /root/.axiom/configs/config.ini
145
+ # COPY axiom-custom-provider.json /root/.axiom/accounts/personal.json
144
146
RUN axiom-account personal
145
- RUN az group delete --name axiom --yes --no-wait
147
+ # RUN az group delete --name axiom --yes --no-wait
146
148
147
- # This command exits with return code 1, so leave the '|| :' or the build will fail.
148
- COPY axiom-custom-provider.json /root/.axiom/accounts/personal.json
149
+ # This command exits with return code 1, so leave the '|| :' or the build will fail.
150
+ # COPY axiom-custom-provider.json /root/.axiom/accounts/personal.json
149
151
RUN axiom-build reconftw || :
150
152
151
153
# # Issue 271
0 commit comments