Arjun icon indicating copy to clipboard operation
Arjun copied to clipboard

Arjun often crashes on a list of URLs

Open Xitro01 opened this issue 1 year ago • 3 comments

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.

Xitro01 avatar Dec 12 '24 22:12 Xitro01

The second error I got seems related to: https://github.com/s0md3v/Arjun/issues/218 The first one seems to be a different cause.

Xitro01 avatar Dec 13 '24 08:12 Xitro01

225 seems to fix this

Xitro01 avatar Feb 18 '25 14:02 Xitro01

Encountering the same issue on 2.2.7:

[*] Scanning 0/1: http://trade.ripio.com:8443

[*] Probing the target for stability

Traceback (most recent call last):

File "/root/.local/bin/arjun", line 7, in <module>

sys.exit(main())

^^^^^^

File "/root/.local/share/pipx/venvs/arjun/lib/python3.12/site-packages/arjun/__main__.py", line 204, in main

these_params = initialize(request, wordlist, single_url=is_single)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/root/.local/share/pipx/venvs/arjun/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'[ERR] Command failed with return code 1

Last stdout lines:

^^^^^^^^^^^^^^^^^^^

AttributeError: 'dict' object has no attribute 'status_code'

Can you release a new version on PyPI with the above-mentioned fix ?

ocervell avatar Sep 08 '25 09:09 ocervell