Closed opensesamedoors closed 1 year ago
You reported this in #199, is this still an issue in the latest release?
/dev/shm/
is no longer used since this commit.
According to your screenshot you are not using the latest version. Can you try with the latest version and see if it works? I did a quick test and no bugs were found.
Which IDE do you use to debug the tmux GUI,now I just use function PRINTF
I don't use an IDE, I'm a vim user. And I believe this bug is already fixed, the root cause of this issue is the self deletion feature and it has been addressed.
Sorry,it works on ubuntu but still reports error on windows.
I can confirm this for Windows platform, thanks for reporting. I will push a fix soon.
This is weird enough, looks like conhost.exe
is invisible to agent process, with or without admin privilege.
SSH shell session fails because currently I use conhost.exe
to invoke the shells.
Further testing shows that conhost.exe
is missing for 32 bit agent, if you build it with amd64
option it will pop up shell just fine.
And currently ConPTY buffer size can't be auto resized correctly, the shell is barely usable.
Thanks, I will try to implement this solution in future releases.
Matching the console buffer size between C2 and agent side is quite tricky for Windows. There's a mode.com
utility that works like stty
under Linux, but running it can only change the console buffer of the calling process, and the shell process is a child process thus unaffected.
The ideal way is to execute mode /con:cols=x lines=y
command in the shell in real time. Currently the solution I can think of is to implement a go routine that runs in background (along with the elvsh
shell, so they live in the same process) and reads buffer size from a environment variable (WIDTH=x
) then resizes its console buffer (with mode.com
or term
package from Go).