6 - Shells & Payloads

A shell is a program that allows the user to interact with the operating system by typing commands and viewing text responses (such as Bash, Zsh, cmd, or PowerShell)

Payloads: How We Get Shells

A payload is code designed to exploit a vulnerability. In this context, it is used to gain access to a victim machine and establish a remote shell.
  • Bind Shell on Linux: Sets up a shell where the victim opens a port and you connect to it.
  • Reverse Shell on Windows: Sets up a shell where the victim connects to your attacker machine

Deploying a Web Shell

  • Identify common web applications and their programming languages.
  • Example: WordPress (PHP), Django (Python).
  • Use the reconnaissance results to:
  • Upload a payload that executes on the server and gives you access to the system from the browser

In This Module