kpcyrd / boxxy-rs

Linkable sandbox explorer
https://docs.rs/boxxy/
GNU Lesser General Public License v3.0
75 stars 7 forks source link

Redirect stdio of exec #19

Open kpcyrd opened 6 years ago

kpcyrd commented 6 years ago

If you have replaced the regular interface ({rev,ipc}shell), the stdio of processes started with exec is still attached to the original process, so you can't get the output when starting processes.

You can work around this by with ncat:

exec ncat -c sh\ -i\ 2>&1 -U /run/foo123.sock

This shouldn't be needed though.

kpcyrd commented 6 years ago

This was resolved for ipcshell, the problem remains for revshell.