# Linux

> Linux attack reference covering enumeration, privesc via SUID and sudo, shell upgrades, lateral movement via SSH, persistence through cron and systemd, and data exfiltration techniques

- **URL:** https://hackindex.io/platforms/linux
- **Type:** Platform
- **Tags:** linux, privilege-escalation, enumeration, post-exploitation, bash, cli
- **Published:** 2026-01-19
- **Updated:** 2026-07-15

Linux is the dominant operating system for servers, containers, cloud infrastructure, and embedded devices. In pentesting, it appears both as the attacker platform (Kali, Parrot) and as the target host running web applications, databases, and network services. Understanding Linux internals is essential for nearly every engagement.

Linux privilege escalation targets misconfigurations in sudo rules, SUID/SGID binaries, cron jobs, writable paths, kernel exploits, and capabilities. Post-exploitation focuses on credential harvesting from configuration files, SSH keys, bash history, and memory. Persistence techniques include SSH authorized keys, cron backdoors, systemd services, and shared library injection.

This section covers Linux-specific techniques: local enumeration of users, processes, network connections, and installed software, privilege escalation through sudo abuse, kernel exploits, and service misconfigurations, lateral movement via SSH key reuse and credential pivoting, and post-exploitation actions like data staging and log cleanup. Core tooling includes LinPEAS, pspy, GTFOBins, and Linux Exploit Suggester.

## Phases

- [Privilege Escalation](https://hackindex.io/platforms/linux/privilege-escalation.md): Linux privesc guides covering SUID, sudo, cron, kernel CVEs, and more (25 guides)
- [Post-Exploitation](https://hackindex.io/platforms/linux/post-exploitation.md): Linux post-exploitation guides for exfil, persistence, and creds (6 guides)
- [Exploitation](https://hackindex.io/platforms/linux/exploitation.md): TTY upgrades and reverse shell one-liners for Linux (2 guides)
- [Enumeration](https://hackindex.io/platforms/linux/enumeration.md): Guides for enumerating users, system, network, services, and jobs on Linux (7 guides)
- [Lateral Movement](https://hackindex.io/platforms/linux/lateral-movement.md): SSH tunneling, port forwarding, and credential reuse for pivoting (2 guides)
- [Data Exfiltration](https://hackindex.io/platforms/linux/data-exfiltration.md): Find, stage, compress, and transfer data from Linux systems (3 guides)
- [Persistence](https://hackindex.io/platforms/linux/persistence.md): Cron, SSH keys, web shells, backdoors, systemd, and profile persistence (6 guides)
