goLAPS: Retrieve LAPS passwords from a domain
goLAPS
Retrieve LAPS passwords from a domain. The tools is inspired in pyLAPS. This project was just a personal excuse to learn Golang.

Capabilities
- It can get all LAPS passwords from a domain controler using the “get” command
- It can set the target computer LAPS password using the “set” command
- For now, it only works with simple binding on LDAP and LDAPS protocols
- You can provide a filter (-f, –filter) to retrieve computers in the domain that follow a specific patter on their samAccountName
Use
Get LAPS passwords
[pastacode lang=”markup” manual=”.%2Fgolaps%20get%20-h%0A%0A%20%20%20%20________%20%20________%20%20___%20%20%20%20%20%20%20________%20%20________%20%20________%20%20%20%20%20%20%0A%20%20%20%20%7C%5C%20%20%20____%5C%7C%5C%20%20%20__%20%20%5C%7C%5C%20%20%5C%20%20%20%20%20%7C%5C%20%20%20__%20%20%5C%7C%5C%20%20%20__%20%20%5C%7C%5C%20%20%20____%5C%20%20%20%20%20%0A%20%20%20%20%5C%20%5C%20%20%5C___%7C%5C%20%5C%20%20%5C%7C%5C%20%20%5C%20%5C%20%20%5C%20%20%20%20%5C%20%5C%20%20%5C%7C%5C%20%20%5C%20%5C%20%20%5C%7C%5C%20%20%5C%20%5C%20%20%5C___%7C_%20%20%20%20%0A%20%20%20%20%20%5C%20%5C%20%20%5C%20%20__%5C%20%5C%20%20%5C%5C%5C%20%20%5C%20%5C%20%20%5C%20%20%20%20%5C%20%5C%20%20%20__%20%20%5C%20%5C%20%20%20____%5C%20%5C_____%20%20%5C%20%20%20%0A%20%20%20%20%20%20%5C%20%5C%20%20%5C%7C%5C%20%20%5C%20%5C%20%20%5C%5C%5C%20%20%5C%20%5C%20%20%5C____%5C%20%5C%20%20%5C%20%5C%20%20%5C%20%5C%20%20%5C___%7C%5C%7C____%7C%5C%20%20%5C%20%20%0A%20%20%20%20%20%20%20%5C%20%5C_______%5C%20%5C_______%5C%20%5C_______%5C%20%5C__%5C%20%5C__%5C%20%5C__%5C%20%20%20%20%20____%5C_%5C%20%20%5C%20%0A%20%20%20%20%20%20%20%20%5C%7C_______%7C%5C%7C_______%7C%5C%7C_______%7C%5C%7C__%7C%5C%7C__%7C%5C%7C__%7C%20%20%20%20%7C%5C_________%5C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5C%7C_________%7C%0A%20%20%20%20Retrieve%20LAPS%20passwords%20from%20a%20domain%20controler%0A%20%20%20%20(author%3A%20%40felmoltor)%0A%20%20%20%20Inspired%20by%20pyLAPS%20(https%3A%2F%2Fgithub.com%2Fp0dalirius%2FpyLAPS)%20%20%20%20%20%20%20%20%20%20%20%20%0A%0Ausage%3A%20golaps%20get%20%5B-h%7C–help%5D%20-D%7C–dc%20%22%3Cvalue%3E%22%20-u%7C–username%20%22%3Cvalue%3E%22%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20-p%7C–password%20%22%3Cvalue%3E%22%20-d%7C–domain%20%22%3Cvalue%3E%22%20%5B-f%7C–filter%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22%3Cvalue%3E%22%5D%20%5B-o%7C–out%20%22%3Cvalue%3E%22%5D%0A%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0A%0AArguments%3A%0A%0A%20%20-h%20%20–help%20%20%20%20%20%20Print%20help%20information%0A%20%20-D%20%20–dc%20%20%20%20%20%20%20%20%3CIP%7CFQDN%3E%20of%20the%20Domain%20Controller%20to%20query.%0A%20%20-u%20%20–username%20%20Username%20to%20authenticate%20with.%0A%20%20-p%20%20–password%20%20Password%20to%20authenticate%20with.%0A%20%20-d%20%20–domain%20%20%20%20Domain%20of%20the%20user%20authenticating.%0A%20%20-f%20%20–filter%20%20%20%20Substring%20of%20the%20computer%20name%20(samAccountName)%20to%20search%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20for.%0A%20%20-o%20%20–out%20%20%20%20%20%20%20File%20name%20of%20the%20csv%20file%20to%20write%20the%20results.” message=”” highlight=”” provider=”manual”/]
Set LAPS password
[pastacode lang=”markup” manual=”.%2Fgolaps%20set%20-h%0Ausage%3A%20golaps%20set%20%5B-h%7C–help%5D%20%5B-D%7C–dc%20%22%3Cvalue%3E%22%5D%20%5B-u%7C–username%20%22%3Cvalue%3E%22%5D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5B-p%7C–password%20%22%3Cvalue%3E%22%5D%20%5B-d%7C–domain%20%22%3Cvalue%3E%22%5D%20%5B-t%7C–target%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22%3Cvalue%3E%22%5D%20%5B-P%7C–lapspass%20%22%3Cvalue%3E%22%5D%0AArguments%3A%0A%0A%20%20-h%20%20–help%20%20%20%20%20%20Print%20help%20information%0A%20%20-D%20%20–dc%20%20%20%20%20%20%20%20%3CIP%7CFQDN%3E%20of%20the%20Domain%20Controller%20to%20target.%0A%20%20-u%20%20–username%20%20Username%20to%20authenticate%20with.%0A%20%20-p%20%20–password%20%20Password%20to%20authenticate%20with.%0A%20%20-d%20%20–domain%20%20%20%20Domain%20of%20the%20user%20authenticating.%0A%20%20-t%20%20–target%20%20%20%20FQDN%20of%20the%20computer%20to%20set%20the%20LAPS%20password.%0A%20%20-P%20%20–lapspass%20%20Password%20to%20set.” message=”” highlight=”” provider=”manual”/]
Download
Support Our Threat Intelligence
If you find our technology report and cybersecurity news helpful, consider supporting our work.