Reverse shell. Extrange characters when pressing ESC, arrow, etc. '^[[A'

rlwrap nc -lvnp 7777 (or whichever port you like)

adds a little bit comfort to your netcat reverse shell.

python … spawn … is great, but if there is no python on client’s machine, upload a static socat binary and establishe a socat shell, google for ropnop socat upgrade if you need more details.