fix - bug if response_1 is a str

This commit is contained in:
c4v4r0n
2025-02-06 20:47:01 -03:00
parent c7d97358b0
commit 6f87dccd17

View File

@@ -130,6 +130,8 @@ def initialize(request, wordlist, single_url=False):
else:
fuzz = "z" + random_str(6)
response_1 = requester(request, {fuzz[:-1]: fuzz[::-1][:-1]})
if(isinstance(response_1, str)):
return 'skipped'
mem.var['healthy_url'] = response_1.status_code not in (400, 413, 418, 429, 503)
if not mem.var['healthy_url']:
print('%s Target returned HTTP %i, this may cause problems.' % (bad, response_1.status_code))