r/Hacking_Tutorials • • 22h ago

Question Exploiting a misconfigured NFS share in an Ubuntu lab - what enumeration commands work best?

I'm going through a local vulnerable Ubuntu lab where an NFS share is exposed with no_root_squash and I'm looking for the cleanest way to escalate from a low-priv user. I've already run showmount -e and mounted it read-write, but I'm hitting permission issues when trying to drop a SUID binary or edit /etc/passwd.

What specific mount options or post-mount steps do most people use in these setups to get a root shell without pulling external tools? Any common gotchas with UID mapping or export restrictions I should check first?

1 Upvotes

0 comments sorted by