Skip to content

Commit d1fb995

Browse files
authored
Merge pull request #225 from c4v4r0n/master
fix - bug if response_1 is a str
2 parents c7d9735 + 6f87dcc commit d1fb995

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arjun/__main__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ def initialize(request, wordlist, single_url=False):
130130
else:
131131
fuzz = "z" + random_str(6)
132132
response_1 = requester(request, {fuzz[:-1]: fuzz[::-1][:-1]})
133+
if(isinstance(response_1, str)):
134+
return 'skipped'
133135
mem.var['healthy_url'] = response_1.status_code not in (400, 413, 418, 429, 503)
134136
if not mem.var['healthy_url']:
135137
print('%s Target returned HTTP %i, this may cause problems.' % (bad, response_1.status_code))

0 commit comments

Comments
 (0)