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
Shell bug-bountybugbountybugbounty-tooldnshackingnucleiosintpenetration-testingpentestpentest-toolpentestingreconreconnaissancescannersecuritysecurity-toolssubdomainsubdomain-enumerationvulnerabilities
Improved LFI
six2deze4915481d82d
diff --git a/install.sh b/install.shindex 905b910..5f71976 100755--- a/install.sh+++ b/install.sh@@ -201,6 +201,7 @@ eval wget -O resolvers.txt https://raw.githubusercontent.com/BBerastegui/fresh-deval wget -O permutations_list.txt https://gist.githubusercontent.com/six2dez/ffc2b14d283e8f8eff6ac83e20a3c4b4/raw/137bb6b60c616552c705e93a345c06cec3a2cb1f/permutations_list.txt $DEBUG_STDeval wget -O ssrf.py https://gist.githubusercontent.com/h4ms1k/adcc340495d418fcd72ec727a116fea2/raw/ea0774de5e27f9bc855207b175249edae2e9ccef/asyncio_ssrf.py $DEBUG_STDeval wget -O fuzz_wordlist.txt https://raw.githubusercontent.com/six2dez/OneListForAll/main/onelistforallmicro.txt $DEBUG_STD+eval wget -O lfi_wordlist.txt https://gist.githubusercontent.com/detonxx/a885ce7dd64a7139cb6f5b6860499ba8/raw/f91e76e3f8b1649f389d4fea9c44f360a5b76890/LFI-payloads.txt $DEBUG_STDeval wget -nc -O ~/.config/notify/notify.conf https://gist.githubusercontent.com/six2dez/23a996bca189a11e88251367e6583053/raw/a66c4d8cf47a3bc95f5e9ba84773428662ea760c/notify_sample.confsed -i 's/^miscellaneous/#miscellaneous/' ~/nuclei-templates/.nuclei-ignorediff --git a/reconftw.sh b/reconftw.shindex bd0db29..d2cfa1b 100755--- a/reconftw.sh+++ b/reconftw.sh@@ -67,6 +67,7 @@ start(){fifuzz_wordlist=$tools/fuzz_wordlist.txt+ lfi_wordlist=$tools/lfi_wordlist.txtcd $dirprintf "\n"printf "${bred} Target: ${domain}\n\n"@@ -764,7 +765,7 @@ fuzz(){for sub in $(cat ${domain}_probed.txt); doprintf "${yellow}\n\n Running: Fuzzing in ${sub}${reset}\n"sub_out=$(echo $sub | sed -e 's|^[^/]*//||' -e 's|/.*$||')- ffuf -mc all -fc 404 -ac -sf -s -H "User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0" -w $fuzz_wordlist -maxtime 900 -u $sub/FUZZ -or -o $dir/fuzzing/${sub_out}.tmp $DEBUG_STD+ eval ffuf -mc all -fc 404 -ac -sf -s -H "User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0" -w $fuzz_wordlist -maxtime 900 -u $sub/FUZZ -or -o $dir/fuzzing/${sub_out}.tmp $DEBUG_STDcat $dir/fuzzing/${sub_out}.tmp | jq '[.results[]|{status: .status, length: .length, url: .url}]' | grep -oP "status\":\s(\d{3})|length\":\s(\d{1,7})|url\":\s\"(http[s]?:\/\/.*?)\"" | paste -d' ' - - - | awk '{print $2" "$4" "$6}' | sed 's/\"//g' | anew -q $dir/fuzzing/${sub_out}.txteval rm $dir/fuzzing/${sub_out}.tmp $DEBUG_ERRORdone@@ -945,7 +946,10 @@ lfi(){printf "${bgreen}#######################################################################\n"printf "${bblue} LFI checks ${reset}\n"start=`date +%s`- cat gf/${domain}_lfi.txt | qsreplace "/etc/passwd" | xargs -I% -P 25 sh -c 'curl -s "%" 2>&1 | grep -q "root:x" && echo "VULN! %"' | anew -q ${domain}_lfi.txt && touch $called_fn_dir/.${FUNCNAME[0]}+ for url in $(cat gf/${domain}_lfi.txt); do+ eval ffuf -v -mc 200 -H "User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0" -w $lfi_wordlist -u $url -mr "root:" $DEBUG_STD | grep "URL" | sed 's/| URL | //' | anew -q ${domain}_lfi.txt+ done+ touch $called_fn_dir/.${FUNCNAME[0]}end=`date +%s`getElapsedTime $start $endprintf "${bblue}\n LFI Finished in ${runtime}${reset}\n"