su: Must be run from a terminal
A simple way to get around this is to use a scripting language to spawn a pty:
echo "import pty; pty.spawn('/bin/bash')"> /tmp/shell.py
python /tmp/shell.py
This results in a standard terminal where you can run any binary.
f3n3s7ra
This is a python shell dude
ReplyDelete