Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
E

ExtractBitlockerKeys

> 编程语言
Open source

A system administration or post-exploitation script to automatically extract the bitlocker recovery keys from a domain.

400 stars0 likes1 views
WebsiteGitHub

About

A system administration or post-exploitation script to automatically extract the bitlocker recovery keys from a domain.

A system administration or post-exploitation script to automatically extract the bitlocker recovery keys from a domain.

Features

  • Automatically gets the list of all computers from the domain controller's LDAP.
  • Multithreaded connections to extract Bitlocker keys from LDAP.
  • Iterate on LDAP result pages to get every computer of the domain, no matter the size.

[!WARNING] Please do not store this backup in an online SMB share of the domain. You should prefer to print it and store it physically in a locked safe.

  • Export results in JSON with Computer FQDN, Domain, Recovery Key, Volume GUID, Created At and Organizational Units.
  • Export results in XLSX with Computer FQDN, Domain, Recovery Key, Volume GUID, Created At and Organizational Units.
  • Export results in SQLITE3 with Computer FQDN, Domain, Recovery Key, Volume GUID, Created At and Organizational Units.

Demonstration from Linux in Python

To extract Bitlocker recovery keys from all the computers of the domain domain.local you can use this command:

./ExtractBitlockerKeys.py -d 'domain.local' -u 'Administrator' -p 'Podalirius123!' --dc-ip 192.168.1.101

You will get the following output:


Demonstration from Windows in Powershell

To extract Bitlocker recovery keys from all the computers of the domain domain.local you can use this command:

.\ExtractBitlockerKeys.ps1 -dcip 192.168.1.101 -ExportToCSV ./keys.csv -ExportToJSON ./keys.json

You will get the following output:


Usage

…

Contributing

Pull requests are welcome. Feel free to open an issue if you want to add other features.

References

  • https://learn.microsoft.com/en-us/windows/win32/adschema/a-msfve-keypackage
  • https://learn.microsoft.com/en-us/windows/win32/adschema/a-msfve-recoveryguid
  • https://learn.microsoft.com/en-us/windows/win32/adschema/a-msfve-recoverypassword
  • https://learn.microsoft.com/en-us/windows/win32/adschema/a-msfve-volumeguid

Issues· 2 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Pythonactive-directorybitlockerdomainpost-exploitation

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言