Merge pull request #225 from c4v4r0n/master

fix - bug if response_1 is a str
This commit is contained in:
Somdev Sangwan
2025-02-20 16:22:16 +05:30
committed by GitHub

View File

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