the-useless-one / pywerview

A (partial) Python rewriting of PowerSploit's PowerView
GNU General Public License v3.0
908 stars 113 forks source link

Get net-localgroup fix #22

Closed byt3bl33d3r closed 7 years ago

byt3bl33d3r commented 7 years ago

Hey mate,

get-netlocalgroup was exiting when not provided a DC. Added some error handling and made some changes in the _create_ldap_connection function and get_netlocalgroup.

Cheers

byt3bl33d3r commented 7 years ago

Oh on a side note, PowerView does not work on PS on linux mainly due to PS remoting not having been implemented by microsoft from linux to windows. So Pywerview is still very much relevant ;).

the-useless-one commented 7 years ago

Hey @byt3bl33d3r !

Thanks for the PR. Indeed, it was a problem if you wanted to enumerate local groups with local credentials (and not domain credentials). It's not a case I'm used to, because during internal penetration tests, we usually have found domain credentials.

I just did some modifications to your PR:

I also plan to modify authentication in pywerview, so as to better support NULL session enumeration, local credential authentication, and Kerberos authentication.

Thanks for testing PowerView in Linux, good to know that pywerview is still relevant :wink:

Thank you for your contribution! Cheers,

Y