Skip to content

reconFTW is a tool designed to perform automated recon on a target domain by running the best set of tools to perform scanning and finding out vulnerabilities

Output definition, better installation, github-subs

six2dez3567f98cfba7
diff --git a/install.sh b/install.sh
index 76fa2fc..c547bba 100755
--- a/install.sh
+++ b/install.sh
@@ -174,15 +174,18 @@ eval git clone --depth 1 https://github.com/drwetter/testssl.sh.git $dir/testssl
for repo in "${!repos[@]}"; do
eval git clone https://github.com/${repos[$repo]} $dir/$repo $DEBUG_STD
cd $dir/$repo
+ if [ -n "$(git status --porcelain | egrep -v '^\?\?')" ]; then
+ install_again=true
+ fi
eval git pull $DEBUG_STD
- if [ -s "setup.py" ]; then
+ if [ -s "setup.py" ] && [ "${install_again}" = true ]; then
eval $SUDO python3 setup.py install $DEBUG_STD
fi
- if [ "massdns" = "$repo" ]; then
+ if [ "massdns" = "$repo" ] && [ "${install_again}" = true ]; then
eval make $DEBUG_STD && strip -s bin/massdns && eval $SUDO cp bin/massdns /usr/bin/ $DEBUG_ERROR
- elif [ "gf" = "$repo" ]; then
+ elif [ "gf" = "$repo" ] && [ "${install_again}" = true ]; then
eval cp -r examples ~/.gf $DEBUG_ERROR
- elif [ "Gf-Patterns" = "$repo" ]; then
+ elif [ "Gf-Patterns" = "$repo" ] && [ "${install_again}" = true ]; then
eval mv *.json ~/.gf $DEBUG_ERROR
fi
cd $dir
diff --git a/reconftw.cfg b/reconftw.cfg
index db1ef8d..81a57b6 100644
--- a/reconftw.cfg
+++ b/reconftw.cfg
@@ -15,9 +15,9 @@ reset='\033[0m'
# General values
tools=~/Tools
NPROC=$(nproc || echo -n 1)
-output=${dir}/Recon/${domain}
SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
profile_shell=".$(basename $(echo $SHELL))rc"
+#dir_output=/custom/output/path
# Golang Vars (Comment or change on your own)
export GOROOT=/usr/local/go
diff --git a/reconftw.sh b/reconftw.sh
index ca4da34..b143ccf 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -292,7 +292,7 @@ function sub_passive(){
eval crobat -s $domain $DEBUG_ERROR | anew -q .tmp/crobat_psub.txt
if [ -s "${GITHUB_TOKENS}" ];then
if [ "$DEEP" = true ] ; then
- eval github-subdomains -d $domain -k -raw -t $GITHUB_TOKENS | anew -q .tmp/github_subdomains_psub.txt
+ eval github-subdomains -d $domain -raw -t $GITHUB_TOKENS | anew -q .tmp/github_subdomains_psub.txt
else
eval github-subdomains -d $domain -k -q -raw -t $GITHUB_TOKENS | anew -q .tmp/github_subdomains_psub.txt
fi
@@ -1371,29 +1371,9 @@ function passive(){
function all(){
start
- domain_info
- emails
- google_dorks
- github_dorks
- metadata
- subdomains_full
- subtakeover
- zonetransfer
- webprobe_full
- screenshot
- favicon
- portscan
- waf_checks
- nuclei_check
- cms_scanner
- fuzz
+ recon
4xxbypass
cors
- params
- urlchecks
- wordlist_gen
- url_gf
- jschecks
open_redirect
ssrf_checks
crlf_checks
@@ -1408,7 +1388,6 @@ function all(){
}
function recon(){
- start
domain_info
emails
google_dorks
@@ -1425,13 +1404,11 @@ function recon(){
nuclei_check
cms_scanner
fuzz
- 4xxbypass
params
urlchecks
wordlist_gen
url_gf
jschecks
- end
}
function multi_recon(){
@@ -1490,7 +1467,6 @@ function multi_recon(){
cd $dir
cms_scanner
fuzz
- 4xxbypass
params
urlchecks
wordlist_gen
@@ -1613,10 +1589,14 @@ while getopts ":hd:-:l:m:x:i:varspxwo:" opt; do
if [ -n "$list" ]
then
for domain in $(cat $list); do
+ start
recon
+ end
done
else
+ start
recon
+ end
fi
exit
;;