{"id":15374441,"url":"https://github.com/ivan-sincek/pre-master-secret-key","last_synced_at":"2025-10-16T17:30:19.114Z","repository":{"id":50278996,"uuid":"288272759","full_name":"ivan-sincek/pre-master-secret-key","owner":"ivan-sincek","description":"Set up all you need to capture pre-master secret keys to decrypt SSL in Wireshark.","archived":false,"fork":false,"pushed_at":"2021-12-30T16:55:41.000Z","size":52,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-17T16:21:18.513Z","etag":null,"topics":["batch","decrypt-ssl","decrypt-tls","defensive-security","environment-variables","ethical-hacking","incident-response","offensive-security","secret-keys","security","threat-hunting","wireshark"],"latest_commit_sha":null,"homepage":"","language":"Batchfile","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/ivan-sincek.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}},"created_at":"2020-08-17T19:50:11.000Z","updated_at":"2024-08-12T20:04:50.000Z","dependencies_parsed_at":"2022-08-26T13:40:47.470Z","dependency_job_id":null,"html_url":"https://github.com/ivan-sincek/pre-master-secret-key","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivan-sincek%2Fpre-master-secret-key","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivan-sincek%2Fpre-master-secret-key/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivan-sincek%2Fpre-master-secret-key/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivan-sincek%2Fpre-master-secret-key/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ivan-sincek","download_url":"https://codeload.github.com/ivan-sincek/pre-master-secret-key/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236738684,"owners_count":19196962,"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":["batch","decrypt-ssl","decrypt-tls","defensive-security","environment-variables","ethical-hacking","incident-response","offensive-security","secret-keys","security","threat-hunting","wireshark"],"created_at":"2024-10-01T13:58:47.989Z","updated_at":"2025-10-16T17:30:18.804Z","avatar_url":"https://github.com/ivan-sincek.png","language":"Batchfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pre-Master Secret Key\n\nJust a simple Batch script that will help you set up all you need to capture pre-master secret keys to decrypt SSL in Wireshark.\n\nScript will create SSLKEYLOGFILE environment variable and `ssl-key.log` file on your desktop.\n\nReference point was this [article](https://www.comparitech.com/net-admin/decrypt-ssl-with-wireshark).\n\nTested with Wireshark v3.2.6 (64-bit) on Windows 10 Enterprise OS (64-bit).\n\nMade for educational purposes. I hope it will help!\n\n## How to Run\n\nDouble click on the script or open the Command Prompt from [\\\\src\\\\](https://github.com/ivan-sincek/pre-master-secret-key/tree/master/src) and run the following command:\n\n```fundamental\npre_master_secret_key.bat\n```\n\nOpen Wireshark and go to `Edit -\u003e Preferences -\u003e Protocols -\u003e TLS` and load the path to `ssl-keys.log` into `(Pre-)Master-Secret log filename` input filed.\n\nStart recording network traffic.\n\nIf you suddenly cannot delete the log file even after closing the web browser, it is possible that some other program is still writing in the file, e.g OneDrive, Dropbox, etc.\n\n## Images\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://github.com/ivan-sincek/pre-master-secret-key/blob/master/img/run_create.jpg\" alt=\"Run (Create)\"\u003e\u003c/p\u003e\n\n\u003cp align=\"center\"\u003eFigure 1 - Run (Create)\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://github.com/ivan-sincek/pre-master-secret-key/blob/master/img/run_remove.jpg\" alt=\"Run (Remove)\"\u003e\u003c/p\u003e\n\n\u003cp align=\"center\"\u003eFigure 2 - Run (Remove)\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivan-sincek%2Fpre-master-secret-key","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fivan-sincek%2Fpre-master-secret-key","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivan-sincek%2Fpre-master-secret-key/lists"}