{"id":25442071,"url":"https://github.com/fadouse/browserstealer","last_synced_at":"2026-02-11T05:02:14.221Z","repository":{"id":259222676,"uuid":"877261813","full_name":"Fadouse/BrowserStealer","owner":"Fadouse","description":"Browser Cookie Decryptor is a tool designed for the Windows operating system to decrypt cookies stored by the chromium base browser. ","archived":false,"fork":false,"pushed_at":"2024-10-24T04:19:55.000Z","size":2850,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-15T19:10:04.259Z","etag":null,"topics":["browser","cookies","decryptor","stealer"],"latest_commit_sha":null,"homepage":"","language":"C","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/Fadouse.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-10-23T11:13:58.000Z","updated_at":"2024-11-09T00:32:15.000Z","dependencies_parsed_at":"2024-10-23T16:58:03.460Z","dependency_job_id":"16ad2bd5-642c-470c-ad8b-2de1629cdf74","html_url":"https://github.com/Fadouse/BrowserStealer","commit_stats":null,"previous_names":["fadouse/browserstealer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Fadouse/BrowserStealer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fadouse%2FBrowserStealer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fadouse%2FBrowserStealer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fadouse%2FBrowserStealer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fadouse%2FBrowserStealer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Fadouse","download_url":"https://codeload.github.com/Fadouse/BrowserStealer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fadouse%2FBrowserStealer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29327095,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T03:52:29.695Z","status":"ssl_error","status_checked_at":"2026-02-11T03:52:23.094Z","response_time":97,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["browser","cookies","decryptor","stealer"],"created_at":"2025-02-17T13:16:42.737Z","updated_at":"2026-02-11T05:02:14.205Z","avatar_url":"https://github.com/Fadouse.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Browser Cookie Decryptor\n\nThis project is designed to decrypt cookies stored by the Microsoft Edge browser. It retrieves the encrypted AES key from the `Local State` file, decrypts it using Windows DPAPI, and then uses the decrypted AES key to decrypt the cookies stored in the Edge browser's SQLite database.\n\n## Features\n\n- Terminate the Edge browser process to ensure the database is not locked.\n- Retrieve and decrypt the AES key used by Edge to encrypt cookies.\n- Read and decrypt cookies from the Edge browser's SQLite database.\n- Export decrypted cookies to a JSON file.\n\n## Prerequisites\n\n- Windows operating system\n- Microsoft Edge browser\n- [SQLite3](https://www.sqlite.org/download.html)\n- [nlohmann/json](https://github.com/nlohmann/json) library\n\n## Building\n\n1. Clone the repository:\n    ```sh\n    git clone https://github.com/yourusername/edge-cookie-decryptor.git\n    cd edge-cookie-decryptor\n    ```\n\n2. Open the project in your IDE (e.g., CLion).\n\n3. Ensure you have the required libraries installed and linked:\n    - `sqlite3`\n    - `nlohmann/json`\n\n4. Build the project using your IDE's build tools.\n\n## Usage\n\n1. Ensure the Edge browser is closed. The program will attempt to terminate the Edge process if it is running.\n\n2. Run the executable:\n    ```\n    ./edge-cookie-decryptor.exe\n    ```\n\n3. The program will output the decrypted cookies to a file named `cookies.json`.\n\n## Execution Flow\n\n1. **Terminate Edge Process**: \n   - The program begins by attempting to terminate the Edge browser process using the `KillProcessByName` function. This ensures that the SQLite database containing the cookies is not locked, allowing for read access.\n\n2. **Retrieve Encrypted AES Key**:\n   - The program then calls `getEncryptedAESKey` to retrieve the encrypted AES key from the Edge browser's `Local State` file. The key is base64-encoded, so it is decoded using `base64Decode`.\n\n3. **Decrypt AES Key**:\n   - Once the AES key is decoded, it is decrypted using the Windows DPAPI (`CryptUnprotectData`) through the `decryptAESKey` function. This decrypted AES key is then used to decrypt the cookies.\n\n4. **Locate Edge Browser Cookie Database**:\n   - The program constructs the path to the SQLite database that stores the cookies via the `getEdgeBrowserCookiePath` function.\n\n5. **Decrypt Cookies**:\n   - Using the decrypted AES key, the program reads and decrypts the cookies stored in the SQLite database. The `readAndDecryptCookies` function handles the decryption process, and the `decryptData` function determines the encryption method (AES-GCM or DPAPI) and decrypts the cookie values.\n\n6. **Output to JSON**:\n   - Finally, the decrypted cookies are written to a JSON file named `cookies.json` using the `writeCookiesToJson` function, providing a structured output of the cookies' names, values, domains, paths, creation times, and expiration times.\n\n\n## Code Overview\n\n### `main.cpp`\n\n- **KillProcessByName**: Terminates the Edge browser process.\n- **getUserProfilePath**: Retrieves the user's profile path.\n- **getEdgeBrowserCookiePath**: Constructs the path to the Edge browser's cookie database.\n- **getLocalStatePath**: Constructs the path to the Edge browser's `Local State` file.\n- **getEncryptedAESKey**: Retrieves the encrypted AES key from the `Local State` file.\n- **base64Decode**: Decodes a base64-encoded string.\n- **decryptAESKey**: Decrypts the AES key using Windows DPAPI.\n- **decryptWithAESGCM**: Decrypts data using AES-GCM.\n- **decryptWithDPAPI**: Decrypts data using Windows DPAPI.\n- **decryptData**: Determines the encryption method and decrypts the data.\n- **writeCookiesToJson**: Writes the decrypted cookies to a JSON file.\n- **readAndDecryptCookies**: Reads and decrypts cookies from the SQLite database.\n\n## License\n\nThis project is licensed under the MIT License. See the `LICENSE` file for details.\n\n## Acknowledgements\n\n- [SQLite](https://www.sqlite.org/)\n- [nlohmann/json](https://github.com/nlohmann/json)\n- [Windows API](https://docs.microsoft.com/en-us/windows/win32/apiindex/windows-api-list)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffadouse%2Fbrowserstealer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffadouse%2Fbrowserstealer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffadouse%2Fbrowserstealer/lists"}