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(02): CR-02 register_secret for slack_auth before curl in sendToNotify

six2dez5b738c56dc8b
diff --git a/modules/core.sh b/modules/core.sh
index 5e33e5d..3bfcfcd 100644
--- a/modules/core.sh
+++ b/modules/core.sh
@@ -1410,6 +1410,7 @@ function sendToNotify {
run_command curl -v -i -H "Accept: application/json" -H "Content-Type: multipart/form-data" -X POST -F 'payload_json={"username": "test", "content": "hello"}' -F "file1=@${1}" "${discord_url}" 2>>"$LOGFILE" >/dev/null
fi
if [[ -n "${slack_channel}" ]] && [[ -n "${slack_auth}" ]]; then
+ register_secret "${slack_auth}"
notification "Sending ${domain} data over Slack" info
run_command curl -F "file=@${1}" -F "initial_comment=reconftw zip file" -F "channels=${slack_channel}" -H "Authorization: Bearer ${slack_auth}" https://slack.com/api/files.upload 2>>"$LOGFILE" >/dev/null
fi