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
Fix results upload to external service
six2dez9346c5bbe879
diff --git a/reconftw.sh b/reconftw.shindex ce2e5f1..940603a 100755--- a/reconftw.sh+++ b/reconftw.sh@@ -5113,6 +5113,7 @@ function transfer {echo "No arguments specified.\nUsage:\n transfer <file|directory>\n ... | transfer <file_name>" >&2return 1fi+if tty -s; thenfile="$1"file_name=$(basename "$file")@@ -5120,15 +5121,10 @@ function transfer {echo "$file: No such file or directory" >&2return 1fi- if [[ -d $file ]]; then- file_name="$file_name.zip"- (cd "$file" && zip -r -q - .) | curl --progress-bar --upload-file "-" "https://oshi.at/${file_name}" | tee /dev/null- else- cat "$file" | curl --progress-bar --upload-file "-" "https://oshi.at/${file_name}" | tee /dev/null- fi+ tar -czvf /tmp/$file_name $file > /dev/null 2>&1 && curl -s https://bashupload.com/$file.tgz --data-binary @/tmp/$file_name | grep wgetelsefile_name=$1- curl --progress-bar --upload-file "-" "https://oshi.at/${file_name}" | tee /dev/null+ tar -czvf /tmp/$file_name $file > /dev/null 2>&1 && curl -s https://bashupload.com/$file.tgz --data-binary @/tmp/$file_name | grep wgetfi}@@ -5140,7 +5136,7 @@ function sendToNotify {NOTIFY_CONFIG=~/.config/notify/provider-config.yamlfiif [[ -n "$(find "${1}" -prune -size +8000000c)" ]]; then- printf '%s is larger than 8MB, sending over oshi.at\n' "${1}"+ printf '%s is larger than 8MB, sending over external service\n' "${1}"transfer "${1}" | notify -silentreturn 0fi