How i make pentest to check HTTP sites RESPONSE CODE & SOURCE?

Hello there i trying to make pentest to check HTTP sites RESPONSE CODE & SOURCE

if site is available with a specific string in the SOURCE, it count as Success
if site is available without the specific string in the SOURCE, it count as Failure
if site is unavailable for any reasons, it count as Failure

But the thing is when i put site as GET for checking and make the KEYCHECK for Success and Failure for both RESPONSE CODE & SOURCE and i run the pentesting both ways with proxies or without.

Checking don’t go through normally and it checks 1/4 sites then it stop and start given a lot of Retries

Even if i edited Maxiumum Redirects to 2 or 1 or keept it 8, and even if i selected Ignore Response Errors ON/OFF, returns same result.

Here an example to explain it more and what i want to do.

HTTP Available Site: http://info.cern.ch/
Contain → From here you can: ← in SOURCE
“Count as”: Success

HTTP Available Site: http://antkey.org/
Does not contain → From here you can: ← in SOURCE
“Count as”: Failure

HTTP Unvailable Site: http://amaryllidaceae.e-monocot.org/ [OR] http://mytesthere.info/
Does not contain SOURCE & RESPONSE CODE OR Contain STATUS CODES 503 / 500 / 404 / 403
“Count as”: Failure

So how i make the pentesting work for the above Example without getting unlimited Retries OR stuck after 1/4 checks?

If a website is unavailable the bot will throw an exception and end with the ERROR status, which will retry the website with a different proxy (if available). This means that all bots will be retrying the unavailable website and keep getting ERRORs until they are stuck in a loop and nothing is checked anymore. You can easily mitigate this issue by wrapping the Http Request block in a TRY/CATCH statement like this

TRY
// your http request block here
CATCH
data.STATUS = "FAIL";
return;
END
2 Likes