the-useless-one / pywerview

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

[get-netcomputer] Add flag to query only computers for which the user can read LAPS passwords #49

Closed SAERXCIT closed 2 years ago

SAERXCIT commented 2 years ago

Salut Yannick,

This PR adds the --laps-passwords flag to the get-netcomputer command, to return only the machines for which the user can read LAPS passwords.

Example use:

$ pywerview get-netcomputer -w DOMAIN.LOCAL -u privileged-user -p 'P@ssw0rd' -t 10.0.0.1 --laps-passwords
dnshostname:   SERVER.DOMAIN.LOCAL
ms-mcs-admpwd: )13vN/Y3o0nkI1qw[B72

dnshostname:   WORKSTATION.DOMAIN.LOCAL
ms-mcs-admpwd: DO4%}Vp;QC%.00W;(yR-

Cheers!

ThePirateWhoSmellsOfSunflowers commented 2 years ago

Salut,

I pushed your PR to develop branch. See you in the next changelog Thanks

:sunflower: