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
Simplify notification
Sébastien GAUTRIASac83b3ae9572
diff --git a/reconftw.sh b/reconftw.shindex df6c30d..f3ecd9f 100755--- a/reconftw.sh+++ b/reconftw.sh@@ -2646,6 +2646,12 @@ function remove_big_files() {function notification() {if [[ -n $1 ]] && [[ -n $2 ]]; then++ if [[ $NOTIFICATION == true ]]; then+ NOTIFY="notify -silent"+ else+ NOTIFY="true"+ fiif [[ -z $3 ]]; thencurrent_date=$(date +'%Y-%m-%dT%H:%M:%S%z')else@@ -2861,8 +2867,7 @@ function axiom_launch() {fiNUMOFNODES=$(timeout 30 axiom-ls | grep -c "$AXIOM_FLEET_NAME" || true)- echo "[$(date +"%Y-%m-%dT%H:%M:%S%z")] Axiom fleet $AXIOM_FLEET_NAME launched w/ $NUMOFNODES instances" | $NOTIFY- end_func "Axiom fleet $AXIOM_FLEET_NAME launched w/ $NUMOFNODES instances" info+ end_func "Axiom fleet $AXIOM_FLEET_NAME launched $NUMOFNODES instances" infofifi}@@ -2876,7 +2881,6 @@ function axiom_shutdown() {fieval axiom-rm -f "$AXIOM_FLEET_NAME*" || trueaxiom-ls | grep "$AXIOM_FLEET_NAME" || true- echo "[$(date +'%Y-%m-%dT%H:%M:%S%z')] Axiom fleet $AXIOM_FLEET_NAME shutdown" | $NOTIFYnotification "Axiom fleet $AXIOM_FLEET_NAME shutdown" infofi}@@ -2898,12 +2902,6 @@ function start() {global_start=$(date +%s)- if [[ $NOTIFICATION == true ]]; then- NOTIFY="notify -silent"- else- NOTIFY=""- fi-printf "\n${bgreen}#######################################################################${reset}"notification "Recon succesfully started on ${domain}" good $(date +'%Y-%m-%dT%H:%M:%S%z')[ "$SOFT_NOTIFICATION" = true ] && echo "$(date +'%Y-%m-%dT%H:%M:%S%z') Recon succesfully started on ${domain}" | notify -silent@@ -3001,7 +2999,7 @@ function end() {[ "$SOFT_NOTIFICATION" = true ] && echo "[$(date +'%Y-%m-%dT%H:%M:%S%z')] Finished Recon on: ${domain} under ${finaldir} in: ${runtime}" | notify -silentprintf "${bgreen}#######################################################################${reset}\n"#Separator for more clear messges in telegram_Bot- echo "[$(date +'%Y-%m-%dT%H:%M:%S%z')] ****** Stay safe 🦠 and secure 🔐 ******" | $NOTIFY+ notification echo "[$(date +'%Y-%m-%dT%H:%M:%S%z')] ****** Stay safe 🦠 and secure 🔐 ******" info}@@ -3093,12 +3091,6 @@ function multi_osint() {global_start=$(date +%s)- if [[ $NOTIFICATION == true ]]; then- NOTIFY="notify -silent"- else- NOTIFY=""- fi-#[[ -n "$domain" ]] && ipcidr_target $domainif [[ -s $list ]]; then@@ -3210,12 +3202,6 @@ function multi_recon() {global_start=$(date +%s)- if [[ $NOTIFICATION == true ]]; then- NOTIFY="notify -silent"- else- NOTIFY=""- fi-#[[ -n "$domain" ]] && ipcidr_target $domainif [[ -s $list ]]; then@@ -3420,12 +3406,6 @@ function multi_custom() {global_start=$(date +%s)- if [[ $NOTIFICATION == true ]]; then- NOTIFY="notify -silent"- else- NOTIFY=""- fi-if [[ -s $list ]]; thensed -i 's/\r$//' $listtargets=$(cat $list)