Solution to su: must be run from a terminal
when working in reverse shell (PHP).
echo "import pty; pty.spawn('/bin/bash')" > /tmp/asdf.py
python /tmp/asdf.py
Solution to su: must be run from a terminal
when working in reverse shell (PHP).
echo "import pty; pty.spawn('/bin/bash')" > /tmp/asdf.py
python /tmp/asdf.py