这是indexloc提供的服务,不要输入任何密码
Skip to content

Character code errors in multi-byte character environments #148

@n-etupirka

Description

@n-etupirka

In Japan, multi-byte characters are used.
If the output of a command executed by the shell command contains multi-byte characters, an error will result.

Prerequisite

  • I have read the README
  • I have search the opened & closed issues
  • I have search the WIKI and its FAQ page

Environment Data

  • Merlin Server Version: 2.0.0
  • Merlin Server Build: e80c47a
  • Merlin Client Version: 1.1.0
  • Merlin Client Build: 5f64e840194b220b4c49ad0560dd7128f51dc0fa
  • Merlin Agent Version: 2.0.0
  • Merlin Agent Build: 8a421ca159aab4667e7f332c9ad157820faeeed7
  • Server Operating System: Ubuntu 22.04.3
  • Victim Operating System: Windows 11

Expected Behavior

The output of the command is displayed on the server.

Actual Behavior

An error is displayed.

[!] 2023-11-30T07:31:11Z there was an error receiving a message from the server stream: rpc error: code = Internal desc = grpc: error while marshaling: string field contains invalid UTF-8

Steps to Reproduce Behavior

1. PS C:\> .\merlinAgent-Windows-x64-Debug.exe -proto http -psk ***** -sleep 5s -url http://*.*.*.*:80 -v
2. Merlin>> interact <AGENT GUID>
3. Merlin>> shell whoami //success (only in English)
4. Merlin>> shell whoami /priv //error (Japanese is included)

Misc Information

  • Server Language: English
  • Victim Language: Japanese

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions