python -c “import pty; pty.spawn(‘/bin/bash’)”
Running this command should allow you to upgrade your shell to be able to run more and better exploits.
- This command first imports the pty module from python.
- It then runs the spawn function
- The argument for the spawn function is the /bin/bash which is the path to bash
This does require python to be installed on the machine. We also need the pty module to run this and bash in the /bin directory