Skip to content
This repository has been archived by the owner on Jan 22, 2024. It is now read-only.

getting the output of an executed command that exits right away via a channel is inconsistent #136

Open
bcook-r7 opened this issue Mar 14, 2015 · 1 comment

Comments

@bcook-r7
Copy link
Contributor

With Windows meterpreter, this command should show output like so:

meterpreter > execute -i -H -f cmd -a "/c hostname"
Process 3412 created.
Channel 22 created.
windows-8-vm
meterpreter >

But usually, it seems the channel closes before the output appears, probably due to the channel closing and the channel data not being processed in the same order every time. You're more likely to just see this:

meterpreter > execute -i -H -f cmd -a "/c hostname"
Process 1360 created.
Channel 24 created.
meterpreter >

Running a 'slower' command like ping works reasonably well, somewhat reaffirming this is a race.

@Meatballs1
Copy link
Contributor

Yes have noticed this, normally works second time around!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants