Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Protocol NFS #366

Merged
merged 60 commits into from
Oct 3, 2024
Merged

New Protocol NFS #366

merged 60 commits into from
Oct 3, 2024

Conversation

termanix
Copy link
Contributor

@termanix termanix commented Jul 8, 2024

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

image

image

And also including UID brute force for if anonymously authentication fail.

image

termanix and others added 17 commits June 4, 2024 10:04
Signed-off-by: termanix <50464194+termanix@users.noreply.github.com>
Added NFS

Signed-off-by: termanix <50464194+termanix@users.noreply.github.com>
Signed-off-by: termanix <50464194+termanix@users.noreply.github.com>
UID Brute Force added (To Do, Brute number will be taken by user)
disconnection debug bug fixed

To Do Kerberos Auth

Signed-off-by: termanix <50464194+termanix@users.noreply.github.com>
Bruteforce-UID added.

Kerberos auth left.

Signed-off-by: termanix <50464194+termanix@users.noreply.github.com>
@mpgn
Copy link
Collaborator

mpgn commented Jul 8, 2024

Crazy !!! 🎉🎉🎉

Signed-off-by: termanix <50464194+termanix@users.noreply.github.com>
@Zamanry
Copy link

Zamanry commented Jul 8, 2024

Hell yeah! I’ve been wanting something like this for a while!!!

Signed-off-by: termanix <50464194+termanix@users.noreply.github.com>
@NeffIsBack NeffIsBack added the enhancement New feature or request label Jul 8, 2024
Copy link
Contributor Author

@termanix termanix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to keep consistency with SMB's --rid-brute

image

@NeffIsBack
Copy link
Contributor

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:
image

NeffIsBack and others added 4 commits September 29, 2024 18:55
Signed-off-by: termanix <50464194+termanix@users.noreply.github.com>
Signed-off-by: termanix <50464194+termanix@users.noreply.github.com>
@termanix
Copy link
Contributor Author

termanix commented Sep 30, 2024

Download and upload files added.
image

To Do:

 - When uploaded a file, we cant read it. 
 - There are a few bugs on Windows while get-file, put-file

image

termanix and others added 5 commits September 30, 2024 23:00
Signed-off-by: termanix <50464194+termanix@users.noreply.github.com>
Signed-off-by: termanix <50464194+termanix@users.noreply.github.com>
@NeffIsBack
Copy link
Contributor

--get-file and --put-file are working as well 🚀
Escept for windows
image

Signed-off-by: termanix <50464194+termanix@users.noreply.github.com>
@termanix
Copy link
Contributor Author

termanix commented Oct 1, 2024

To Do: Only left puf-file bug fixes for windows and linux.

@NeffIsBack
Copy link
Contributor

Up&Download are working now against Linux&Windows. Also found the solution for setting file permissions 🎉 Default is 777 for now
image
image
image

@NeffIsBack
Copy link
Contributor

@termanix if you can verify the behaviour on your side we should be good to go 🚀

Signed-off-by: termanix <50464194+termanix@users.noreply.github.com>
Signed-off-by: termanix <50464194+termanix@users.noreply.github.com>
@termanix
Copy link
Contributor Author

termanix commented Oct 2, 2024

@NeffIsBack On my side everything is fine now! It can be merge after your last review. 🚀

@NeffIsBack
Copy link
Contributor

LGTM:
image

Copy link
Contributor

@NeffIsBack NeffIsBack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything tested, we should be good 🚀

@mpgn
Copy link
Collaborator

mpgn commented Oct 3, 2024

Excellent work from both of you @NeffIsBack @termanix ! 🎉

@NeffIsBack NeffIsBack merged commit 27313a0 into Pennyw0rth:main Oct 3, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants