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 send2zip notify

six2dezf6dea46326e3
diff --git a/reconftw.cfg b/reconftw.cfg
index 04bf473..b11057b 100644
--- a/reconftw.cfg
+++ b/reconftw.cfg
@@ -17,7 +17,7 @@ export GOPATH=$HOME/go
export PATH=$GOPATH/bin:$GOROOT/bin:$HOME/.local/bin:$PATH
# Tools config files
-#NOTIFY_CONFIG=~/.config/notify/notify.conf # No need to define
+#NOTIFY_CONFIG=~/.config/notify/provider-config.yaml # No need to define
#SUBFINDER_CONFIG=~/.config/subfinder/config.yaml # No need to define
AMASS_CONFIG=~/.config/amass/config.ini
GITHUB_TOKENS=${tools}/.github_tokens
diff --git a/reconftw.sh b/reconftw.sh
index 5b04e7e..56a70b3 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -1738,17 +1738,17 @@ function sendToNotify {
printf "\n${yellow} no file provided to send ${reset}\n"
else
if [[ -z "$NOTIFY_CONFIG" ]]; then
- NOTIFY_CONFIG=~/.config/notify/notify.conf
+ NOTIFY_CONFIG=~/.config/notify/provider-config.yaml
fi
- if grep -q '^ telegram\|^telegram' $NOTIFY_CONFIG ; then
+ if grep -q '^ telegram\|^telegram\|^ telegram' $NOTIFY_CONFIG ; then
notification "Sending ${domain} data over Telegram" info
- telegram_chat_id=$(cat ${NOTIFY_CONFIG} | grep '^ telegram_chat_id\|^telegram_chat_id' | xargs | cut -d' ' -f2)
- telegram_key=$(cat ${NOTIFY_CONFIG} | grep '^ telegram_apikey\|^telegram_apikey' | xargs | cut -d' ' -f2 )
+ telegram_chat_id=$(cat ${NOTIFY_CONFIG} | grep '^ telegram_chat_id\|^telegram_chat_id\|^ telegram_chat_id' | xargs | cut -d' ' -f2)
+ telegram_key=$(cat ${NOTIFY_CONFIG} | grep '^ telegram_apikey\|^telegram_apikey\|^ telegram_apikey' | xargs | cut -d' ' -f2 )
curl -F document=@${1} "https://api.telegram.org/bot${telegram_key}/sendDocument?chat_id=${telegram_chat_id}" &>/dev/null
fi
- if grep -q '^ discord\|^discord' $NOTIFY_CONFIG ; then
+ if grep -q '^ discord\|^discord\|^ discord' $NOTIFY_CONFIG ; then
notification "Sending ${domain} data over Discord" info
- discord_url=$(cat ${NOTIFY_CONFIG} | grep '^ discord_webhook_url\|^discord_webhook_url' | xargs | cut -d' ' -f2)
+ discord_url=$(cat ${NOTIFY_CONFIG} | grep '^ discord_webhook_url\|^discord_webhook_url\|^ discord_webhook_url' | xargs | cut -d' ' -f2)
curl -v -i -H "Accept: application/json" -H "Content-Type: multipart/form-data" -X POST -F file1=@${1} $discord_url &>/dev/null
fi
if [[ -n "$slack_channel" ]] && [[ -n "$slack_auth" ]]; then