{"id":17125275,"url":"https://github.com/baltpeter/bios-info","last_synced_at":"2025-03-24T03:32:11.891Z","repository":{"id":183404787,"uuid":"658382197","full_name":"baltpeter/bios-info","owner":"baltpeter","description":"Library for extracting data from UEFI BIOS dumps.","archived":false,"fork":false,"pushed_at":"2023-06-25T22:30:06.000Z","size":80,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-16T01:29:29.600Z","etag":null,"topics":["bios","bios-dump","uefi","windows-product-key"],"latest_commit_sha":null,"homepage":"https://cyberchef.bn.al/#recipe=Extract_Windows_product_keys_from_BIOS_dump()","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/baltpeter.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-06-25T15:25:23.000Z","updated_at":"2023-06-25T22:40:31.000Z","dependencies_parsed_at":"2023-07-24T10:52:57.318Z","dependency_job_id":null,"html_url":"https://github.com/baltpeter/bios-info","commit_stats":null,"previous_names":["baltpeter/bios-info"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baltpeter%2Fbios-info","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baltpeter%2Fbios-info/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baltpeter%2Fbios-info/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baltpeter%2Fbios-info/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/baltpeter","download_url":"https://codeload.github.com/baltpeter/bios-info/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245204813,"owners_count":20577412,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bios","bios-dump","uefi","windows-product-key"],"created_at":"2024-10-14T18:44:35.986Z","updated_at":"2025-03-24T03:32:11.874Z","avatar_url":"https://github.com/baltpeter.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bios-info\n\n\u003e Library for extracting data from UEFI BIOS dumps (currently only the Windows product key).\n\n`bios-info` is a TypeScript library to extract data from UEFI BIOS dumps.\n\nCurrently, `bios-info` provides a single function (`findWindowsProductKeys()`) that can extract Windows 8+ product key from a BIOS dump. Whereas for previous Windows versions, the Windows product key on OEM systems was provided on a COA sticker, since Windows 8, it is typically stored in the [MSDM ACPI table in the BIOS/UEFI](https://dellwindowsreinstallationguide.com/the-oem-product-key-and-oem-system-locked-preinstallation/). It does so based on a [specific marker](https://vlab.su/viewtopic.php?f=35\u0026t=30952) ([`010000000000000001000000000000001d000000`](https://www.alisaler.com/find-windows-key-from-bios-bin-file/)) that should indicate where the product key is stored in the BIOS. As a fallback, it also uses a regular expression to find anything that looks like a product key in the dump.\n\nYou can use this online through my [CyberChef instance](https://cyberchef.bn.al/#recipe=Extract_Windows_product_keys_from_BIOS_dump()).\n\n## Installation\n\nYou can install bios-info using yarn or npm:\n\n```sh\nyarn add bios-info\n# or `npm i bios-info`\n```\n\n## API reference\n\nA full API reference can be found in the [`docs` folder](/docs/README.md).\n\n## Example usage\n\nHere is an example of how to use this library in TypeScript:\n\n```ts\nimport { readFile } from 'fs/promises';\nimport { findWindowsProductKeys } from 'bios-info';\n\n(async () =\u003e {\n    const biosBuffer = await readFile('bios.bin');\n    const keys = findWindowsProductKeys(biosBuffer);\n\n    console.log(keys);\n    // [ '3V66T-NKG7Y-8B7W4-X2WWD-8QK9K' ]\n})();\n```\n\n## License\n\nThis code is licensed under the MIT license, see the [`LICENSE`](LICENSE) file for details.\n\nIssues and pull requests are welcome! Please be aware that by contributing, you agree for your work to be licensed under an MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaltpeter%2Fbios-info","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaltpeter%2Fbios-info","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaltpeter%2Fbios-info/lists"}