#223·Arjun

Arjun often crashes on a list of URLs

Author: Xitro01Created Dec 12, 2024Updated Sep 8, 2025

Somehow Arjun crashes quite often with the following error:

[*] Probing the target for stability
Traceback (most recent call last):
  File "/home/kali/.local/bin/arjun", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/kali/.local/lib/python3.12/site-packages/arjun/__main__.py", line 204, in main
    these_params = initialize(request, wordlist, single_url=is_single)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/kali/.local/lib/python3.12/site-packages/arjun/__main__.py", line 133, in initialize
    mem.var['healthy_url'] = response_1.status_code not in (400, 413, 418, 429, 503)
                             ^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'status_code'

I'm using the following command: arjun -i gospider_deduped.txt -t 10 --disable-redirects -oT arjun.txt

The file contained 435 lines. Running Arjun version: v2.2.7

Any idea?

EDIT: Another crash. Same same but different:

Traceback (most recent call last):
  File "/home/kali/.local/bin/arjun", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/kali/.local/lib/python3.12/site-packages/arjun/__main__.py", line 204, in main
    these_params = initialize(request, wordlist, single_url=is_single)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/kali/.local/lib/python3.12/site-packages/arjun/__main__.py", line 135, in initialize
    print('%s Target returned HTTP %i, this may cause problems.' % (bad, request.status_code))
                                                                         ^^^^^^^^^^^^^^^^^^^
AttributeError: 'dict' object has no attribute 'status_code'

EDIT2: The second error message has been solved in a newer version of Arjun.