Skip to content

Commit a7cd941

Browse files
committed
fix: fix a simple python bug in heuristic.py
1 parent d1fb995 commit a7cd941

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

arjun/plugins/heuristic.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ def heuristic(raw_response, wordlist):
2323
headers, response = raw_response.headers, raw_response.text
2424
if headers.get('content-type', '').startswith(('application/json', 'text/plain')):
2525
if len(response) < 200:
26-
if ('required' or 'missing' or 'not found' or 'requires') in response.lower() and ('param' or 'parameter' or 'field') in response.lower():
26+
resp = response.lower()
27+
if any(word in resp for word in ['required', 'missing', 'not found', 'requires']) and any(word in resp for word in ['param', 'parameter', 'field']):
28+
2729
if not mem.var['quiet']:
2830
print('%s The endpoint seems to require certain parameters to function. Check the response and use the --include option appropriately for better results.' % info)
2931
words_exist = True

0 commit comments

Comments
 (0)