MythicAgents / poseidon

Poseidon is a Golang agent targeting Linux and macOS
Other
118 stars 32 forks source link

'shell' command output truncates the output #51

Closed timukas closed 11 months ago

timukas commented 11 months ago

Hi,

Latest poseidon (default build) payload truncates 'shell' command output. E.g. "shell dmesg" shows only 1034 lines in output window. Running 'dmesg | wc -l' in terminal shows 2056 lines. Running 'shell dmesg' next time, shows 1371 lines.

Similar with 'shell ps auxf', poseidon output in Mythic shows less lines than same command in terminal.

And amount of lines shown in Mythic output is every time random, but always smaller than actual number of output in terminal.

Seems like a bug?

its-a-feature commented 11 months ago

I can reproduce. Thank you for catching this! Working on a fix

its-a-feature commented 11 months ago

Just pushed a fix for this in version 2.0.14 (it also should have affected the run command, but both should be fixed)

timukas commented 11 months ago

Checked with latest version - now output is not truncated.

Kudos for fixing it!