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 apileaks

six2dezc2e48e310173
diff --git a/reconftw.sh b/reconftw.sh
index 0979808..d0e5c9b 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -508,7 +508,7 @@ function apileaks() {
if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $API_LEAKS == true ]] && [[ $OSINT == true ]] && ! [[ $domain =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9] ]]; then
start_func ${FUNCNAME[0]} "Scanning for leaks in APIs public directories"
- porch-pirate -s "$domain" --dump >osint/postman_leaks.txt || {
+ porch-pirate -s "$domain" --dump > osint/postman_leaks.txt 2>>"$LOGFILE" || {
echo "porch-pirate command failed"
exit 1
}
@@ -517,7 +517,7 @@ function apileaks() {
echo "Failed to pushd to ${tools}/SwaggerSpy in ${FUNCNAME[0]} @ line ${LINENO}"
exit 1
}
- python swaggerspy.py -d $domain -o ../osint/swagger_leaks.txt 2>>"$LOGFILE" || {
+ python3 swaggerspy.py -d $domain -o ../osint/swagger_leaks.txt 2>>"$LOGFILE" || {
echo "swaggerspy command failed"
exit 1
}