commixproject / commix

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

Bug Report: Unhandled exception "ValueError: unknown url type: 'n'" (#5ccfb313) #951

Closed commixreporter closed 2 months ago

commixreporter commented 2 months ago
Commix version: 4.0-dev#90
Python version: 3.11.9
Operating system: posix
Command line: commix.py -u ************************************* -1
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 904, in <module>
    main(filename, url, http_request_method)
  File \"main.py", line 560, in main
    controller.do_check(url, http_request_method, filename)
  File \"controller.py", line 736, in do_check
    perform_checks(url, http_request_method, filename)
  File \"controller.py", line 701, in perform_checks
    data_checks(url, http_request_method, filename, timesec)
  File \"controller.py", line 607, in data_checks
    if get_request(url, http_request_method, filename, timesec) is None:
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File \"controller.py", line 569, in get_request
    do_injection(found_url, settings.HTTPMETHOD.GET, header_name, url, http_request_method, filename, timesec)
  File \"controller.py", line 528, in do_injection
    injection_proccess(url, check_parameter, http_request_method, filename, timesec)
  File \"controller.py", line 371, in injection_proccess
    filebased_command_injection_technique(url, timesec, filename, http_request_method, url_time_response)
  File \"controller.py", line 250, 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 33, in exploitation
    return fb_injection_handler(url, timesec, filename, http_request_method, url_time_response, injection_type, technique)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File \"fb_handler.py", line 26, in fb_injection_handler
    return handler.do_results_based_proccess(url, timesec, filename, http_request_method, injection_type, technique)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File \"handler.py", line 577, in do_results_based_proccess
    response = checks.get_response(output)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File \"checks.py", line 117, in get_response
    request = _urllib.request.Request(output)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File \"request.py", line 322, in __init__
    self.full_url = url
    ^^^^^^^^^^^^^
  File \"request.py", line 348, in full_url
    self._parse()
  File \"request.py", line 377, in _parse
    raise ValueError("unknown url type: %r" % self.full_url)
ValueError: unknown url type: 'n'
stasinopoulos commented 2 months ago

Fixed https://github.com/commixproject/commix/commit/edf7dcee22f8447b38f89118d0f75ecdc9370bcb

github-actions[bot] commented 1 month 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.