[BETA] ADD Outputs in False Positive Case Testing Script

For testing REGEX Changes and detection of False Positives REF: #277
This commit is contained in:
Mitchell Krog 2019-07-01 10:17:09 +02:00
parent c183fbca99
commit 1445a8a9cd
No known key found for this signature in database
GPG key ID: C243C388553EDE5D

View file

@ -106,6 +106,7 @@ do
echo "${bold}${green}PASSED - ${red}${mustmatch} was ${bold}${red}BLOCKED" echo "${bold}${green}PASSED - ${red}${mustmatch} was ${bold}${red}BLOCKED"
else else
echo "${bold}${red}FAILED - ${red}${mustmatch} was ${bold}${red}NOT BLOCKED" echo "${bold}${red}FAILED - ${red}${mustmatch} was ${bold}${red}NOT BLOCKED"
curl -A "${mustmatch}" http://localhost:9000 2>&1
#exit 1 #exit 1
fi fi
done done
@ -120,6 +121,7 @@ do
#exit 1 #exit 1
else else
echo "${bold}${green}PASSED (FALSE POSITIVE NOT DETECTED) - ${bold}${red}${mustnotmatch}" echo "${bold}${green}PASSED (FALSE POSITIVE NOT DETECTED) - ${bold}${red}${mustnotmatch}"
curl -A "${mustnotmatch}" http://localhost:9000 2>&1
fi fi
done done
} }