Concepts / Exploitation and privilege escalation

Exploitation and privilege escalation

Getting a foothold

Also called initial access, the first shell

Turning reconnaissance of a target into the first shell on it, by picking the one opening worth attacking and using the move it calls for.

Confirmed beats clever
Confirmed beats clever

Recon finds several openings. A login that works is a sure way in; a vulnerable version is only a lead until an exploit is confirmed.

A foothold is the first session on a target, usually as an ordinary user, not root. Reconnaissance turns up three kinds of opening: a known-vulnerable version (only a lead until an exploit is confirmed), a [[default-credentials|default or stolen credential]] (a confirmed way in: just log in), and a misconfiguration, which often hands over one of the other two. Take the confirmed opening first; keep an unconfirmed exploit as a fallback.

See it on real machines

Read next

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab