Skip to content

Commit

Permalink
Merge pull request #813 from six2dez/dev
Browse files Browse the repository at this point in the history
fix apileaks
  • Loading branch information
six2dez authored Jan 19, 2024
2 parents ad9e153 + c2e48e3 commit 8edd16d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reconftw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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
}
Expand Down

0 comments on commit 8edd16d

Please sign in to comment.