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

Some fixes

six2dez8c98239b08e7
diff --git a/install.sh b/install.sh
index 5e851e2..e1ce667 100755
--- a/install.sh
+++ b/install.sh
@@ -28,15 +28,15 @@ printf "${bgreen} reconftw installer script (apt/rpm/pacman compatible)${reset}\
install_apt(){
(eval $SUDO apt install chromium-browser -y $DEBUG_STD | eval $SUDO apt install chromium -y $DEBUG_STD)
- eval $SUDO apt install python3 python3-pip ruby git libpcap-dev wget python-dev python3-dev build-essential xvfb libssl-dev libffi-dev libxml2-dev libxslt1-dev zlib1g-dev nmap jq -y $DEBUG_STD
+ eval $SUDO apt install python3 python3-pip ruby git libpcap-dev wget python-dev python3-dev dnsutils build-essential xvfb libssl-dev libffi-dev libxml2-dev libxslt1-dev zlib1g-dev nmap jq -y $DEBUG_STD
}
install_yum(){
- eval $SUDO yum install python3 python3-pip ruby git libpcap-devel chromium wget openssl-devel python3-devel libxslt-devel libffi-devel xorg-x11-server-Xvfb libxml2-devel nmap zlib-devel jq -y $DEBUG_STD
+ eval $SUDO yum install python3 python3-pip ruby git libpcap-devel chromium wget openssl-devel bind-utils python3-devel libxslt-devel libffi-devel xorg-x11-server-Xvfb libxml2-devel nmap zlib-devel jq -y $DEBUG_STD
}
install_pacman(){
- eval $SUDO pacman -Sy install python python-pip ruby git libpcap nmap chromium wget jq xorg-server-xvfb -y $DEBUG_STD
+ eval $SUDO pacman -Sy install python python-pip dnsutils ruby git libpcap nmap chromium wget jq xorg-server-xvfb -y $DEBUG_STD
}
#installing latest Golang version
diff --git a/reconftw.sh b/reconftw.sh
index 920758c..7e69d77 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -602,8 +602,7 @@ jschecks(){
cat ${domain}_jsfile_links.txt | httpx -follow-redirects -silent -threads 100 -status-code | grep "[200]" | cut -d ' ' -f1 | anew -q ${domain}_js_livelinks.txt
printf "${yellow} Running : Gathering endpoints 3/5${reset}\n"
interlace -tL ${domain}_js_livelinks.txt -threads 10 -c "python3 $tools/LinkFinder/linkfinder.py -d -i _target_ -o cli >> ${domain}_js_endpoints.txt" &>/dev/null
-
- sed -i '/^Running against/d; /^Invalid input/d; /^$/d' ${domain}_js_endpoints.txt
+ eval sed -i '/^Running against/d; /^Invalid input/d; /^$/d' ${domain}_js_endpoints.txt $DEBUG_ERROR
printf "${yellow} Running : Gathering secrets 4/5${reset}\n"
cat ${domain}_js_livelinks.txt | nuclei -silent -t ~/nuclei-templates/exposed-tokens/ -o ${domain}_js_secrets.txt
printf "${yellow} Running : Building wordlist 5/5${reset}\n"
@@ -625,10 +624,12 @@ params(){
printf "${bblue} Parameter Discovery ${reset}\n"
start=`date +%s`
printf "${yellow}\n\n Running : Finding params with paramspider${reset}\n"
- interlace -tL ${domain}_probed.txt -threads 10 -c "python3 $tools/ParamSpider/paramspider.py -d _target_ -l high -q --exclude jpg,jpeg,gif,css,tif,tiff,png,ttf,woff,woff2,ico,js" &>/dev/null
- find output/ -name '*.txt' -exec cat {} \; | anew -q ${domain}_param.txt
+ cat ${domain}_probed.txt | sed -r "s/https?:\/\///" | anew -q ${domain}_probed_nohttp.txt
+ interlace -tL ${domain}_probed_nohttp.txt -threads 10 -c "python3 $tools/ParamSpider/paramspider.py -d _target_ -l high -q --exclude jpg,jpeg,gif,css,tif,tiff,png,ttf,woff,woff2,ico,js" &>/dev/null
+ eval find output/ -name '*.txt' -exec cat {} \; | anew -q ${domain}_param.txt $DEBUG_ERROR
sed '/^FUZZ/d' -i ${domain}_param.txt
eval rm -rf output/ $DEBUG_ERROR
+ eval rm ${domain}_probed_nohttp.txt $DEBUG_ERROR
printf "${yellow}\n\n Running : Checking ${domain} with Arjun${reset}\n"
eval python3 $tools/Arjun/arjun.py -i ${domain}_param.txt -t 20 -o ${domain}_arjun.json $DEBUG_STD && touch $called_fn_dir/.${FUNCNAME[0]}
end=`date +%s`
@@ -739,7 +740,7 @@ fuzz(){
for sub in $(cat ${domain}_probed.txt); do
printf "${yellow}\n\n Running: Fuzzing in ${sub}${reset}\n"
sub_out=$(echo $sub | sed -e 's|^[^/]*//||' -e 's|/.*$||')
- ffuf -mc all -ac -sf -w $fuzz_wordlist -maxtime 900 -u $sub/FUZZ -or -o $dir/fuzzing/${sub_out}.tmp $DEBUG_STD
+ ffuf -mc all -ac -sf -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
cat $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}.txt
eval rm ${sub_out}.tmp $DEBUG_ERROR
done