Skip to content

Commit c1fc2c8

Browse files
authored
Merge pull request #960 from six2dez/dev
Dev
2 parents eef6e34 + ff6f6f8 commit c1fc2c8

File tree

5 files changed

+332
-299
lines changed

5 files changed

+332
-299
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

README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ So, what are you waiting for? Go! Go! Go! :boom:
8181
- [GitHub sponsorship](#github-sponsorship)
8282
- [Thanks :pray:](#thanks-pray)
8383
- [Disclaimer](#disclaimer)
84+
- [Star History](#star-history)
8485

8586
---
8687

@@ -482,6 +483,7 @@ reset='\033[0m'
482483
- You can create your own axiom's fleet before running reconFTW or let reconFTW to create and destroy it automatically just modifying reconftw.cfg file.
483484

484485
# Faraday Support :computer:
486+
485487
- For Faraday community support, you need to install Faraday by yourself, authenticate in faraday-cli and set the workspace both in the config file and in the faraday-cli.
486488

487489
# Sample video
@@ -497,8 +499,7 @@ reset='\033[0m'
497499
- Microsoft 365 and Azure tenant mapper ([msftrecon](https://github.com/Arcanum-Sec/msftrecon))
498500
- Metadata finder ([MetaFinder](https://github.com/Josue87/MetaFinder))
499501
- API leaks search ([porch-pirate](https://github.com/MandConsultingGroup/porch-pirate) and [SwaggerSpy](https://github.com/UndeadSec/SwaggerSpy))
500-
- Google Dorks ([dorks_hunter](https://github.com/six2dez/dorks_hunter))
501-
- Github Dorks ([gitdorks_go](https://github.com/damit5/gitdorks_go))
502+
- Google Dorks ([dorks_hunter](https://github.com/six2dez/dorks_hunter) and [xnldorker](https://github.com/xnl-h4ck3r/xnldorker))
502503
- GitHub org's repos analysis ([enumerepo](https://github.com/trickest/enumerepo), [trufflehog](https://github.com/trufflesecurity/trufflehog) and [gitleaks](https://github.com/gitleaks/gitleaks))
503504
- 3rd parties misconfigurations([misconfig-mapper](https://github.com/intigriti/misconfig-mapper))
504505
- Spoofable domains ([spoofcheck](https://github.com/MattKeeley/Spoofy))
@@ -678,4 +679,4 @@ The material contained in this repository is licensed under MIT.
678679

679680
## Star History
680681

681-
![](images/six2dez_reconftw-stars-history.png)
682+
[![Star History Chart](https://api.star-history.com/svg?repos=six2dez/reconftw&type=Date)](https://www.star-history.com/#six2dez/reconftw&Date)

install.sh

+29-4
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ declare -A gotools=(
8383
["jsluice"]="go install -v github.com/BishopFox/jsluice/cmd/jsluice@latest"
8484
["urlfinder"]="go install -v github.com/projectdiscovery/urlfinder/cmd/urlfinder@latest"
8585
["cent"]="go install -v github.com/xm1k3/cent@latest"
86-
["misconfig-mapper"]="go install -v github.com/intigriti/misconfig-mapper/cmd/misconfig-mapper@latest"
86+
["csprecon"]="go install github.com/edoardottt/csprecon/cmd/csprecon@latest"
87+
["VhostFinder"]="go install -v github.com/wdahlenburg/VhostFinder@latest"
8788
)
8889

8990
# Declare pipx tools and their paths
@@ -95,15 +96,18 @@ declare -A pipxtools=(
9596
["urless"]="xnl-h4ck3r/urless"
9697
["ghauri"]="r0oth3x49/ghauri"
9798
["xnLinkFinder"]="xnl-h4ck3r/xnLinkFinder"
99+
["xnldorker"]="xnl-h4ck3r/xnldorker"
98100
["porch-pirate"]="MandConsultingGroup/porch-pirate"
99101
["p1radup"]="iambouali/p1radup"
102+
["subwiz"]="hadriansecurity/subwiz"
100103
)
101104

102105
# Declare repositories and their paths
103106
declare -A repos=(
104107
["dorks_hunter"]="six2dez/dorks_hunter"
105108
["gf"]="tomnomnom/gf"
106109
["Gf-Patterns"]="1ndianl33t/Gf-Patterns"
110+
["sus_params"]="g0ldencybersec/sus_params"
107111
["Corsy"]="s0md3v/Corsy"
108112
["CMSeeK"]="Tuhinshubhra/CMSeeK"
109113
["fav-up"]="pielco11/fav-up"
@@ -124,10 +128,13 @@ declare -A repos=(
124128
["SwaggerSpy"]="UndeadSec/SwaggerSpy"
125129
["LeakSearch"]="JoelGMSec/LeakSearch"
126130
["ffufPostprocessing"]="Damian89/ffufPostprocessing"
131+
["misconfig-mapper"]="intigriti/misconfig-mapper"
127132
["Spoofy"]="MattKeeley/Spoofy"
128133
["msftrecon"]="Arcanum-Sec/msftrecon"
134+
["Scopify"]="Arcanum-Sec/Scopify"
129135
["metagoofil"]="opsdisk/metagoofil"
130136
["EmailHarvester"]="maldevel/EmailHarvester"
137+
["reconftw_ai"]="six2dez/reconftw_ai"
131138
)
132139

133140
# Function to display the banner
@@ -177,7 +184,7 @@ function install_tools() {
177184
fi
178185
done
179186

180-
echo -e "\n${bblue}Running: Installing pipx tools (${#pipxtools[@]})${reset}\n"
187+
echo -e "\n${bblue}Running: Installing pipx tools (${#repos[@]})${reset}\n"
181188

182189
local pipx_step=0
183190
local failed_pipx_tools=()
@@ -264,6 +271,9 @@ function install_tools() {
264271
fi
265272
source venv/bin/activate
266273
eval "pip3 install --upgrade -r requirements.txt $DEBUG_STD" &>/dev/null
274+
if [ "$repo" = "dorks_hunter" ]; then
275+
pip install xnldorker &>/dev/null
276+
fi
267277
deactivate
268278
fi
269279

@@ -286,6 +296,14 @@ function install_tools() {
286296
go build -o ffufPostprocessing main.go &>/dev/null
287297
chmod +x ./ffufPostprocessing
288298
;;
299+
"misconfig-mapper")
300+
git reset --hard origin/main &>/dev/null
301+
git pull &>/dev/null
302+
go mod tidy &>/dev/null
303+
go build -o misconfig-mapper &>/dev/null
304+
chmod +x ./misconfig-mapper &>/dev/null
305+
cp misconfig-mapper $HOME/go/bin/ &>/dev/null
306+
;;
289307
"trufflehog")
290308
go install &>/dev/null
291309
;;
@@ -296,6 +314,12 @@ function install_tools() {
296314
cp -r examples ${HOME}/.gf &>/dev/null
297315
elif [[ $repo == "Gf-Patterns" ]]; then
298316
cp ./*.json ${HOME}/.gf &>/dev/null
317+
elif [[ $repo == "sus_params" ]]; then
318+
for f in ./gf-patterns/*.json; do
319+
base=$(basename "$f")
320+
dest="${HOME}/.gf/$base"
321+
cat "$f" | anew -q "$dest" >/dev/null
322+
done
299323
fi
300324

301325
# Return to the main directory
@@ -312,8 +336,8 @@ function install_tools() {
312336
subfinder &>/dev/null
313337
subfinder &>/dev/null
314338
mkdir -p ${NUCLEI_TEMPLATES_PATH} &>/dev/null
315-
cent init -f &>/dev/null
316-
cent -p ${NUCLEI_TEMPLATES_PATH} &>/dev/null
339+
#cent init -f &>/dev/null
340+
#cent -p ${NUCLEI_TEMPLATES_PATH} &>/dev/null
317341

318342
# Handle failed installations
319343
if [[ ${#failed_tools[@]} -ne 0 ]]; then
@@ -600,6 +624,7 @@ function initial_setup() {
600624
["ssti_wordlist"]="https://gist.githubusercontent.com/six2dez/ab5277b11da7369bf4e9db72b49ad3c1/raw ${ssti_wordlist}"
601625
["headers_inject"]="https://gist.github.com/six2dez/d62ab8f8ffd28e1c206d401081d977ae/raw ${tools}/headers_inject.txt"
602626
["axiom_config"]="https://gist.githubusercontent.com/six2dez/6e2d9f4932fd38d84610eb851014b26e/raw ${tools}/axiom_config.sh"
627+
["jsluice_patterns"]="https://gist.githubusercontent.com/six2dez/2aafa8dc2b682bb0081684e71900e747/raw ${tools}/jsluice_patterns.json"
603628
)
604629

605630
for key in "${!downloads[@]}"; do

reconftw.cfg

+6
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ SUBANALYTICS=true # Google Analytics search
6868
SUBBRUTE=true # DNS bruteforcing
6969
SUBSCRAPING=true # Subdomains extraction from web crawling
7070
SUBPERMUTE=true # DNS permutations
71+
SUBIAPERMUTE=true # Permutations by IA analysis
7172
SUBREGEXPERMUTE=true # Permutations by regex analysis
7273
PERMUTATIONS_OPTION=gotator # The alternative is "ripgen" (faster, not deeper)
7374
GOTATOR_FLAGS=" -depth 1 -numbers 3 -mindup -adv -md" # Flags for gotator
@@ -224,6 +225,11 @@ FARADAY_USER="faraday" # Faraday user
224225
FARADAY_PASS="FARADAY_PASSWORD" # Faraday password
225226
FARADAY_WORKSPACE="reconftw" # Faraday workspace
226227

228+
# AI
229+
AI_MODEL="llama3:8b" # Model to use
230+
AI_REPORT_TYPE="md" # Report type to use (md, txt)
231+
AI_REPORT_PROFILE="bughunter" # Report profile to use (executive, brief, or bughunter)
232+
227233
# TERM COLORS
228234
bred='\033[1;31m'
229235
bblue='\033[1;34m'

0 commit comments

Comments
 (0)