Upgrading your shell

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.

  1. This command first imports the pty module from python.
  2. It then runs the spawn function
  3. 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