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

Domain info, config to cfg && fixes

six2dez2156b6cfbd57
diff --git a/install.sh b/install.sh
index d2eced5..403d131 100755
--- a/install.sh
+++ b/install.sh
@@ -134,7 +134,7 @@ printf "${bgreen} 20%% done${reset}\n\n"
eval go get -v github.com/tomnomnom/unfurl $DEBUG_STD
eval git clone https://github.com/projectdiscovery/nuclei-templates ~/nuclei-templates $DEBUG_STD
eval git clone https://github.com/eslam3kl/crtfinder $dir/crtfinder $DEBUG_STD
-eval https://github.com/davidtavarez/pwndb $dir/pwndb $DEBUG_STD
+eval git clone https://github.com/davidtavarez/pwndb $dir/pwndb $DEBUG_STD
eval nuclei -update-templates $DEBUG_STD
eval git clone --depth 1 https://github.com/sqlmapproject/sqlmap.git $dir/sqlmap $DEBUG_STD
eval GO111MODULE=on go get -v github.com/projectdiscovery/httpx/cmd/httpx $DEBUG_STD
diff --git a/reconftw.config b/reconftw.cfg
similarity index 98%
rename from reconftw.config
rename to reconftw.cfg
index 59a3696..687d181 100644
--- a/reconftw.config
+++ b/reconftw.cfg
@@ -36,10 +36,11 @@ findomain_fb_token=XXXXXXXXXXXXXXXXX
DEBUG_STD="&>/dev/null"
DEBUG_ERROR="2>/dev/null"
-# Steps
+# Osint
DORKS=true
METADATA=true
EMAILS=true
+DOMAIN_INFO=true
# Subdomains
SUBCRT=true
diff --git a/reconftw.sh b/reconftw.sh
index 94f9b4c..3caff33 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -241,7 +241,49 @@ function emails(){
}
function domain_info(){
- lynx -dump https://domainbigdata.com/${domain} | tail -n +19 > osint/domain_info.txt
+ if ([ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]) && [ "$DOMAIN_INFO" = true ]
+ then
+ printf "${bgreen}#######################################################################\n"
+ printf "${bblue} Domain info search ${reset}\n"
+ start=`date +%s`
+
+ lynx -dump https://domainbigdata.com/${domain} | tail -n +19 > osint/domain_info_general.txt
+
+ cat osint/domain_info_general.txt | grep '/nj/' | tr -s ' ' ',' | cut -d ',' -f3 > .tmp/domain_registrant_name.txt
+ cat osint/domain_info_general.txt | grep '/mj/' | tr -s ' ' ',' | cut -d ',' -f3 > .tmp/domain_registrant_email.txt
+ cat osint/domain_info_general.txt | grep -E "\b([0-9]{1,3}\.){3}[0-9]{1,3}\b" | grep "https://domainbigdata.com" | tr -s ' ' ',' | cut -d ',' -f3 > .tmp/domain_registrant_ip.txt
+
+ sed -i -n '/Copyright/q;p' osint/domain_info_general.txt
+
+ if [ -s ".tmp/domain_registrant_name.txt" ]
+ then
+ for line in $(cat .tmp/domain_registrant_name.txt); do
+ lynx -dump $line | tail -n +18 | sed -n '/]domainbigdata.com/q;p' >> osint/domain_info_name.txt && echo -e "\n\n#######################################################################\n\n" >> osint/domain_info_name.txt
+ done
+ fi
+
+ if [ -s ".tmp/domain_registrant_email.txt" ]
+ then
+ for sub in $(cat .tmp/domain_registrant_email.txt); do
+ lynx -dump $line | tail -n +18 | sed -n '/]domainbigdata.com/q;p' >> osint/domain_info_email.txt && echo -e "\n\n#######################################################################\n\n" >> osint/domain_info_email.txt
+ done
+ fi
+
+ if [ -s ".tmp/domain_registrant_ip.txt" ]
+ then
+ for sub in $(cat .tmp/domain_registrant_ip.txt); do
+ lynx -dump $line | tail -n +18 | sed -n '/]domainbigdata.com/q;p' >> osint/domain_info_ip.txt && echo -e "\n\n#######################################################################\n\n" >> osint/domain_info_ip.txt
+ done
+ fi
+ touch $called_fn_dir/.${FUNCNAME[0]}
+ end=`date +%s`
+ getElapsedTime $start $end
+ printf "${bblue}\n Domain Info Search Finished in ${runtime}${reset}\n"
+ printf "${bblue} Results are saved in osint folder ${reset}\n"
+ printf "${bgreen}#######################################################################\n"
+ else
+ printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"
+ fi
}
@@ -1287,6 +1329,7 @@ function osint(){
then
for domain in $(cat $list); do
start
+ domain_info
google_dorks
github_dorks
metadata
@@ -1295,6 +1338,7 @@ function osint(){
done
else
start
+ domain_info
google_dorks
github_dorks
metadata
@@ -1308,6 +1352,7 @@ function all(){
then
for domain in $(cat $list); do
start
+ domain_info
google_dorks
subdomains_full
subtakeover
@@ -1338,6 +1383,7 @@ function all(){
done
else
start
+ domain_info
google_dorks
subdomains_full
subtakeover
@@ -1373,6 +1419,7 @@ function recon(){
then
for domain in $(cat $list); do
start
+ domain_info
google_dorks
github_dorks
metadata
@@ -1396,6 +1443,7 @@ function recon(){
done
else
start
+ domain_info
google_dorks
github_dorks
metadata
@@ -1555,6 +1603,7 @@ while getopts ":hd:-:l:x:vairsxwgto:" opt; do
;;
g ) start
PORTSCAN_ACTIVE=false
+ domain_info
google_dorks
subdomains_full
subtakeover