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 "UnicodeEncodeError: 'gbk' codec can't encode character '\u0579' in position 25: illegal multibyte sequence" (#c8270b10) #883

Closed commixreporter closed 11 months ago

commixreporter commented 11 months ago
Commix version: 3.9-dev#24
Python version: 3.10.10
Operating system: nt
Command line: commix.py -u ************************************ 
Traceback (most recent call last):
  File "commix.py", line 35, in <module>
    main()
  File "commix.py", line 30, in main
    import src.core.main
  File "main.py", line 834, in <module>
    main(filename, url)
  File "main.py", line 533, in main
    controller.do_check(url, http_request_method, filename)
  File "controller.py", line 760, in do_check
    perform_checks(url, http_request_method, filename)
  File "controller.py", line 690, in perform_checks
    get_request(url, http_request_method, filename, timesec)
  File "controller.py", line 575, in get_request
    injection_proccess(url, check_parameter, http_request_method, filename, timesec)
  File "controller.py", line 365, in injection_proccess
    classic_command_injection_technique(url, timesec, filename, http_request_method)
  File "controller.py", line 209, in classic_command_injection_technique
    if cb_handler.exploitation(url, timesec, filename, http_request_method, injection_type, technique) != False:
  File "cb_handler.py", line 425, in exploitation
    if cb_injection_handler(url, timesec, filename, http_request_method, injection_type, technique) == False:
  File "cb_handler.py", line 383, in cb_injection_handler
    logs.executed_command(filename, cmd, shell)
  File "logs.py", line 177, in executed_command
    output_file.write(re.compile(re.compile(settings.ANSI_COLOR_REMOVAL)).sub("",settings.INFO_SIGN) + "Execution output: " +  output + "\n")
UnicodeEncodeError: 'gbk' codec can't encode character '\u0579' in position 25: illegal multibyte sequence
stasinopoulos commented 11 months ago

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

github-actions[bot] commented 8 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related issues.