New Protocol NFS
Lately I've been thinking about what NetExec needs in development and I thought seeing NFS shares would also help with development.
It's using RPC and enumerating NFS Shares and if accessible, it finds files recursively.
Together with @Marshall-Hallenbeck, we were able to bring it to its current state (Thank you Marshall for helping). I hope it will be a useful protocol for everyone.
Here it is some screenshots:
My test lab,
192.168.37.130 : Server 2019 Domain Controller 192.168.37.131 : Ubuntu 6.8.0.-31
And also including UID brute force for if anonymously authentication fail.
Crazy !!! 🎉🎉🎉
Hell yeah! I’ve been wanting something like this for a while!!!
Improvements & Fixes:
- Moved source for PyNfsClient to the Pennyw0rth organisation
- Fixed RPC authentication in PyNfsClient
- Added detection for kerberos requirement
- Fixed socket errors when authentication fails
- Merged ipv6 fix from an upstream PR
- Fixed recursion depth when enumerating shares
- Other code improvements
ToDos:
- Fix now spammed output when RID-Bruteforcing
- Fix ugly output
Example screenshot:
Improvements & Fixes:
Moved source for PyNfsClient to the Pennyw0rth organisation
Fixed RPC authentication in PyNfsClient
- Added detection for kerberos requirement
- Fixed socket errors when authentication fails
- Merged ipv6 fix from an upstream PR
Fixed recursion depth when enumerating shares
Other code improvements
ToDos:
- Fix now spammed output when RID-Bruteforcing
- Fix ugly output
Example screenshot:
Now it belongs to netexec format, thank you Neff. I wil work on to dos on my free.
Added ipv6 support to the NfsClient library as well as the protocol:
All flags and output works nice /w Neff
Actually we can query the uid needed for the share lol. Implemented an autodetecting feature that will automatically set the uid matching to the listed repository:
Download and upload files added.
To Do:
- When uploaded a file, we cant read it.
- There are a few bugs on Windows while get-file, put-file
--get-file and --put-file are working as well 🚀
Escept for windows
To Do: Only left puf-file bug fixes for windows and linux.
Up&Download are working now against Linux&Windows. Also found the solution for setting file permissions 🎉 Default is 777 for now
@termanix if you can verify the behaviour on your side we should be good to go 🚀
@NeffIsBack On my side everything is fine now! It can be merge after your last review. 🚀
LGTM:
Excellent work from both of you @NeffIsBack @termanix ! 🎉
