> ## Documentation Index
> Fetch the complete documentation index at: https://paulkadali.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Cheatsheet/Notes

> These are condensed notes from the INE course and other blogs and articles.

## Subnet Guide

<img src="https://mintcdn.com/paulkadali/W6ZEAEwGYgKrXkXF/images/subnet.avif?fit=max&auto=format&n=W6ZEAEwGYgKrXkXF&q=85&s=bdb86d61b2b6c8d1c68e4315ebcb7f35" alt="Subnet Avi" width="768" height="389" data-path="images/subnet.avif" />

<img src="https://mintcdn.com/paulkadali/W6ZEAEwGYgKrXkXF/images/table.png?fit=max&auto=format&n=W6ZEAEwGYgKrXkXF&q=85&s=139b55e34812e715736af5d585cc6240" alt="Table Pn" width="789" height="464" data-path="images/table.png" />

## Routing

<Check>
  This part is pretty important😉
</Check>

```bash theme={null}
ip route add 172.10.1.0/24 via 10.10.10.10(VPN Gateway)
```

If you don't know what the VPN gateway is then try it with every host that is up in the network.

If you want external sources for routing/pivoting, you can look at this one I found somewhere in the depths of Reddit (Don't ask me why Shaq is on it).

<Card title="Explore Hidden Networks With Double Pivoting" icon="chart-network" href="https://pentest.blog/explore-hidden-networks-with-double-pivoting/" cta="Check it out" />

## Interactive Shells

```bash theme={null}
bash -i
python -c 'import pty; pty.spawn("/bin/sh")'
echo os.system('/bin/bash')
/bin/sh -i
perl -e 'exec "/bin/sh";'
perl: exec "/bin/sh";
ruby: exec "/bin/sh"
lua: os.execute('/bin/sh')
```

## Recommended Shells

| Server        | Web Shell |
| ------------- | --------- |
| Windows       | ASP       |
| Apache TomCat | JSP       |
| Apache        | PHP       |

### Reverse Shells

[Pentest Monkey Cheatsheet](https://pentestmonkey.net/cheat-sheet/shells/reverse-shell-cheat-sheet)

## Hacktricks

If you're stuck at vulnerability assessment or don't know how to tackle something you can check here for some kind of push.

<Card title="Hacktricks" icon="book" href="book.hacktricks.wiki" cta="book.hacktricks.wiki" />
