commixproject / commix

Automated All-in-One OS Command Injection Exploitation Tool.
https://commixproject.com
Other
4.62k stars 818 forks source link

Bug Report: Unhandled exception "ValueError: unknown url type: 'a'" (#50b01f49) #925

Closed commixreporter closed 5 months ago

commixreporter commented 5 months ago
Commix version: 4.0-dev#59
Python version: 3.12.3
Operating system: posix
Command line: commix.py --url=************************************** --data=***** 
Traceback (most recent call last):
  File \"commix.py", line 36, in <module>
    main()
  File \"commix.py", line 31, in main
    import src.core.main
  File \"main.py", line 895, in <module>
    main(filename, url, http_request_method)
  File \"main.py", line 551, in main
    controller.do_check(url, http_request_method, filename)
  File \"controller.py", line 766, in do_check
    perform_checks(url, http_request_method, filename)
  File \"controller.py", line 732, in perform_checks
    data_checks(url, http_request_method, filename, timesec)
  File \"controller.py", line 652, in data_checks
    if post_request(url, http_request_method, filename, timesec) is None:
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File \"controller.py", line 636, in post_request
    injection_proccess(url, check_parameter, http_request_method, filename, timesec)
  File \"controller.py", line 365, in injection_proccess
    filebased_command_injection_technique(url, timesec, filename, http_request_method, url_time_response)
  File \"controller.py", line 246, in filebased_command_injection_technique
    if fb_handler.exploitation(url, timesec, filename, http_request_method, url_time_response, injection_type, technique) != False:
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File \"fb_handler.py", line 507, in exploitation
    if fb_injection_handler(url, timesec, filename, http_request_method, url_time_response, injection_type, technique) == False:
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File \"fb_handler.py", line 285, in fb_injection_handler
    request = _urllib.request.Request(output)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File \"request.py", line 318, in __init__
    self.full_url = url
    ^^^^^^^^^^^^^
  File \"request.py", line 344, in full_url
    self._parse()
  File \"request.py", line 373, in _parse
    raise ValueError("unknown url type: %r" % self.full_url)
ValueError: unknown url type: 'a'
stasinopoulos commented 5 months ago

Similar with https://github.com/commixproject/commix/issues/920

github-actions[bot] commented 2 months ago

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

This action has been performed automatically by a bot.