Skip to content

Commit

Permalink
Soft notification
Browse files Browse the repository at this point in the history
  • Loading branch information
six2dez committed Jun 9, 2021
1 parent 4150182 commit 1ccd844
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
3 changes: 2 additions & 1 deletion reconftw.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ BYPASSER4XX=true
COMM_INJ=true

# Extra features
NOTIFICATION=false
NOTIFICATION=false # Notification for every function
SOFT_NOTIFICATION=false # Only for start/end
DEEP=false
DEEP_LIMIT=1000
DIFF=false
Expand Down
10 changes: 6 additions & 4 deletions reconftw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1463,8 +1463,10 @@ function start(){
else
NOTIFY=""
fi

echo "Recon succesfully started on $domain" | $NOTIFY
printf "\n${bgreen}#######################################################################${reset}"
notification "Recon succesfully started on ${domain}" good
[ "$SOFT_NOTIFICATION" = true ] && echo "Recon succesfully started on ${domain}" | notify -silent
printf "${bgreen}#######################################################################${reset}\n"
tools_installed

[[ -n "$domain" ]] && ipcidr_target $domain
Expand Down Expand Up @@ -1539,8 +1541,8 @@ function end(){
global_end=$(date +%s)
getElapsedTime $global_start $global_end
printf "${bgreen}#######################################################################${reset}\n"
text="${bred} Finished Recon on: ${domain} under ${finaldir} in: ${runtime} ${reset}\n"
printf "${text}" && printf "${text}" | $NOTIFY
notification "Finished Recon on: ${domain} under ${finaldir} in: ${runtime}" good
[ "$SOFT_NOTIFICATION" = true ] && echo "Finished Recon on: ${domain} under ${finaldir} in: ${runtime}" | notify -silent
printf "${bgreen}#######################################################################${reset}\n"
#Seperator for more clear messges in telegram_Bot
echo "****** Stay safe 🦠 and secure 🔐 ******" | $NOTIFY
Expand Down
10 changes: 6 additions & 4 deletions reconftw_axiom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1557,8 +1557,10 @@ function start(){
else
NOTIFY=""
fi

echo "Recon succesfully started on $domain" | $NOTIFY
printf "\n${bgreen}#######################################################################${reset}"
notification "Recon succesfully started on ${domain}" good
[ "$SOFT_NOTIFICATION" = true ] && echo "Recon succesfully started on ${domain}" | notify -silent
printf "${bgreen}#######################################################################${reset}\n"
tools_installed

[[ -n "$domain" ]] && ipcidr_target $domain
Expand Down Expand Up @@ -1637,8 +1639,8 @@ function end(){
global_end=$(date +%s)
getElapsedTime $global_start $global_end
printf "${bgreen}#######################################################################${reset}\n"
text="${bred} Finished Recon on: ${domain} under ${finaldir} in: ${runtime} ${reset}\n"
printf "${text}" && printf "${text}" | $NOTIFY
notification "Finished Recon on: ${domain} under ${finaldir} in: ${runtime}" good
[ "$SOFT_NOTIFICATION" = true ] && echo "Finished Recon on: ${domain} under ${finaldir} in: ${runtime}" | notify -silent
printf "${bgreen}#######################################################################${reset}\n"
#Seperator for more clear messges in telegram_Bot
echo "****** Stay safe 🦠 and secure 🔐 ******" | $NOTIFY
Expand Down

0 comments on commit 1ccd844

Please sign in to comment.