All Rooms

What the Shell?

easy45 mintryhackme

This room covers everything you need to know about shells — the fundamental mechanism for maintaining access to a compromised target. You'll learn the difference between reverse and bind shells, how to catch and send shells with netcat and socat (including encrypted socat shells), how to stabilize a raw shell into a full interactive TTY, how to generate payloads with msfvenom (staged vs stageless), and how to use Metasploit's multi/handler. Both Linux and Windows practice boxes are included for hands-on work.

Skills You Will Learn

reverse-shellsbind-shellsnetcatsocatmsfvenomshell-stabilizationwebshells

Prerequisites

Walkthrough Phases

1

Shell Types: Reverse vs Bind

Understand the two fundamental shell architectures and when each is used

2

Netcat: The Swiss Army Knife of Shells

Use netcat to catch reverse shells and connect to bind shells

3

Shell Stabilization: Getting a Proper TTY

Upgrade a raw shell to a fully interactive TTY

4

Socat: Better Shells, Encrypted Channels

Use socat for superior shells and learn encrypted shell technique

5

Common Shell Payloads

Learn the mkfifo bash shell and explore the full payload cheatsheet

6

Msfvenom: Payload Generation

Generate staged and stageless payloads for Windows and Linux targets

7

Multi/Handler: Catching Meterpreter Shells

Configure and use Metasploit's multi/handler to catch staged payloads

8

Practice: Linux and Windows Targets

Apply all techniques hands-on against the provided practice machines

34 questions to answer

alienrecon start thm-introtoshells

Don't have AlienRecon? Get started here