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

Fix robots wordlists

six2dez47998a2462bd
diff --git a/reconftw.sh b/reconftw.sh
index c833609..451543f 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -1032,8 +1032,12 @@ function wordlist_gen(){
}
function wordlist_gen_roboxtractor(){
- if { [ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]; } && [ "$ROBOTSWORDLIST" = true ];
- cat webs/webs.txt | roboxtractor -m 1 -wb | anew -q webs/robots_wordlist.txt
+ if { [ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]; } && [ "$ROBOTSWORDLIST" = true ]; then
+ start_func "Robots wordlist generation"
+ if [ -s "webs/webs.txt" ]; then
+ cat webs/webs.txt | roboxtractor -m 1 -wb | anew -q webs/robots_wordlist.txt
+ fi
+ end_func "Results are saved in $domain/webs/robots_wordlist.txt" ${FUNCNAME[0]}
else
printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"
fi
diff --git a/reconftw_axiom.sh b/reconftw_axiom.sh
index 2d3480c..efe4ba2 100755
--- a/reconftw_axiom.sh
+++ b/reconftw_axiom.sh
@@ -1052,8 +1052,12 @@ function wordlist_gen(){
}
function wordlist_gen_roboxtractor(){
- if { [ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]; } && [ "$ROBOTSWORDLIST" = true ];
- cat webs/webs.txt | roboxtractor -m 1 -wb | anew -q webs/robots_wordlist.txt
+ if { [ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]; } && [ "$ROBOTSWORDLIST" = true ]; then
+ start_func "Robots wordlist generation"
+ if [ -s "webs/webs.txt" ]; then
+ cat webs/webs.txt | roboxtractor -m 1 -wb | anew -q webs/robots_wordlist.txt
+ fi
+ end_func "Results are saved in $domain/webs/robots_wordlist.txt" ${FUNCNAME[0]}
else
printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"
fi