Skip to content

Commit 41e0ca4

Browse files
committed
Dockerfile fix
1 parent 4261c9b commit 41e0ca4

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

Docker/Dockerfile

+22-20
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# syntax=docker/dockerfile:1.4
22

3-
# Specify a non-root user
4-
FROM kalilinux/kali-rolling:trunk AS base_reconftw
3+
FROM ubuntu:latest AS base_reconftw
54
USER nonrootuser
65

76
# Add a healthcheck instruction
@@ -17,14 +16,11 @@ ARG SHODAN_API_KEY="XXXXXXXXXXXXXX"
1716
ARG LANG=en_US.UTF-8
1817
ARG LANGUAGE=en_US
1918

20-
ARG GIT_REPOSITORY_AXIOM="https://github.com/pry0cc/axiom"
21-
ARG GIT_REPOSITORY_RECONFTW="https://github.com/six2dez/reconftw"
22-
2319
##################################################
2420
###> Do NOT change anything beyond this point <###
2521
##################################################
2622

27-
FROM kalilinux/kali-rolling:trunk AS base
23+
FROM ubuntu:latest AS base
2824

2925
LABEL org.label-schema.name='reconftw'
3026
LABEL org.label-schema.description='A simple script for full recon'
@@ -40,8 +36,8 @@ ARG SHODAN_API_KEY
4036
ARG LANG
4137
ARG LANGUAGE
4238

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"
4541

4642
ENV COLLAB_SERVER=$COLLAB_SERVER
4743
ENV XSS_SERVER=$XSS_SERVER
@@ -72,15 +68,11 @@ set -x
7268
###>> Backup .bashrc <<###
7369
cp /root/.bashrc /root/original.bashrc
7470

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-
7971
###>> System Configuration <<###
8072
apt clean all
8173
apt update
8274
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
8476

8577
###>> Congifure Locales <<###
8678
apt install -y --no-install-recommends locales
@@ -133,19 +125,29 @@ COPY notify.conf /root/.config/notify/notify.conf
133125
###>> Configure Axiom Provider <<###
134126
RUN <<eot
135127
###>> 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+
138133
ssh-keygen -b 2048 -t rsa -f /root/.ssh/axiom_rsa -q -N ""
139134
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
140142
eot
141143

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
144146
RUN axiom-account personal
145-
RUN az group delete --name axiom --yes --no-wait
147+
# RUN az group delete --name axiom --yes --no-wait
146148

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
149151
RUN axiom-build reconftw || :
150152

151153
## Issue 271

reconftw.sh

-2
Original file line numberDiff line numberDiff line change
@@ -2762,8 +2762,6 @@ function webprobe_full() {
27622762
# Update webs_all.txt
27632763
cat webs/webs.txt webs/webs_uncommon_ports.txt 2>/dev/null | anew -q webs/webs_all.txt
27642764

2765-
end_func "Results are saved in $domain/webs/webs_uncommon_ports.txt" "${FUNCNAME[0]}"
2766-
27672765
# Send to proxy if conditions met
27682766
if [[ $PROXY == true ]] && [[ -n $proxy_url ]] && [[ $(wc -l <webs/webs_uncommon_ports.txt) -le $DEEP_LIMIT2 ]]; then
27692767
notification "Sending websites with uncommon ports to proxy" "info"

0 commit comments

Comments
 (0)