Skip to content

Commit

Permalink
Added ffuf flag to stop on excessive 403s.
Browse files Browse the repository at this point in the history
  • Loading branch information
bellma101 committed Mar 30, 2019
1 parent 6e268e2 commit f4e998c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions chomp-scan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1360,13 +1360,13 @@ function run_ffuf() {
# Call with domain as $1, wordlist size as $2, and domain list as $3
if [[ $3 == $WORKING_DIR/$ALL_RESOLVED ]]; then
echo -e "$GREEN""[i]$BLUE Running ffuf against all $(wc -l "$3" | awk '{print $1}') unique discovered domains.""$NC";
echo -e "$GREEN""[i]$BLUE Command: ffuf -u $HTTP://$DOMAIN/FUZZ -w $2 -fc 301,302 -k | tee $WORKING_DIR/ffuf.""$NC";
echo -e "$GREEN""[i]$BLUE Command: ffuf -u $HTTP://$DOMAIN/FUZZ -w $2 -sf -fc 301,302 -k | tee $WORKING_DIR/ffuf.""$NC";
# Run ffuf
mkdir "$WORKING_DIR"/ffuf;
COUNT=$(wc -l "$3" | awk '{print $1}')
START=$(date +%s);
while read -r ADOMAIN; do
"$FFUF" -u "$HTTP"://"$ADOMAIN"/FUZZ -w "$2" -fc 301,302 -k -mc 200,201,202,204,307,308,400,401,403,405,500,501,502,503 | tee "$WORKING_DIR"/ffuf/"$ADOMAIN";
"$FFUF" -u "$HTTP"://"$ADOMAIN"/FUZZ -w "$2" -sf -fc 301,302 -k -mc 200,201,202,204,307,308,400,401,403,405,500,501,502,503 | tee "$WORKING_DIR"/ffuf/"$ADOMAIN";
COUNT=$((COUNT - 1));
if [[ "$COUNT" != 0 ]]; then
echo -e "$GREEN""[i]$BLUE $COUNT domain(s) remaining.""$NC";
Expand All @@ -1377,13 +1377,13 @@ function run_ffuf() {
echo -e "$GREEN""[i]$BLUE ffuf took $DIFF seconds to run.""$NC";
else
echo -e "$GREEN""[i]$BLUE Running ffuf against all $(wc -l "$3" | awk '{print $1}') discovered interesting domains.""$NC";
echo -e "$GREEN""[i]$BLUE Command: ffuf -u $HTTP://$DOMAIN/FUZZ -w $2 -fc 301,302 -k | tee $WORKING_DIR/ffuf.""$NC";
echo -e "$GREEN""[i]$BLUE Command: ffuf -u $HTTP://$DOMAIN/FUZZ -w $2 -sf -fc 301,302 -k | tee $WORKING_DIR/ffuf.""$NC";
# Run ffuf
mkdir "$WORKING_DIR"/ffuf;
COUNT=$(wc -l "$3" | awk '{print $1}')
START=$(date +%s);
while read -r ADOMAIN; do
"$FFUF" -u "$HTTP"://"$ADOMAIN"/FUZZ -w "$2" -fc 301,302 -k -mc 200,201,202,204,307,308,400,401,403,405,500,501,502,503 | tee "$WORKING_DIR"/ffuf/"$ADOMAIN";
"$FFUF" -u "$HTTP"://"$ADOMAIN"/FUZZ -w "$2" -sf -fc 301,302 -k -mc 200,201,202,204,307,308,400,401,403,405,500,501,502,503 | tee "$WORKING_DIR"/ffuf/"$ADOMAIN";
COUNT=$((COUNT - 1));
if [[ "$COUNT" != 0 ]]; then
echo -e "$GREEN""[i]$BLUE $COUNT domain(s) remaining.""$NC";
Expand Down

0 comments on commit f4e998c

Please sign in to comment.