> For the complete documentation index, see [llms.txt](https://nickbhe.gitbook.io/shikata-ga-nai-1/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nickbhe.gitbook.io/shikata-ga-nai-1/linux-foothold/privesc.md).

# Privesc

## Manual Privesc

### Identify myself

* **whoami**
* Linux, **id**: will provide additional info about the user

### Find info about other users

* Linux, **cat /etc/passwd**

### Info about the host

* **hostname**
* Linux, **cat /etc/issue**, **cat /etc/release**, **release -a**

### Running processes

* Linux, **ps** \<Flag> \[for example -xau: all processes, readble]

### Networking Information

* Linux, **ip a**
* Linux, **/sbin/route** \[or **/sbin/routel**]: display routing tables
* Linux, **netstat** \[or **ss**] **-anp**: list connections

### Firewall status and rules

* Linux, try and peek the configuration. For example **grep -Hs iptables /etc/\***

...
