{"id":13539288,"url":"https://github.com/a2nkf/macos-kernel-exploit","last_synced_at":"2025-04-02T06:30:42.358Z","repository":{"id":217486366,"uuid":"209122833","full_name":"A2nkF/macOS-Kernel-Exploit","owner":"A2nkF","description":"macOS Kernel Exploit for CVE-2019-8781. ","archived":false,"fork":false,"pushed_at":"2019-10-15T17:05:38.000Z","size":27,"stargazers_count":292,"open_issues_count":0,"forks_count":43,"subscribers_count":16,"default_branch":"master","last_synced_at":"2024-11-03T04:32:23.306Z","etag":null,"topics":["exploit","kernel-exploit","macos"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/A2nkF.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2019-09-17T17:59:26.000Z","updated_at":"2024-08-12T19:53:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"319075d4-7fe0-456d-92b1-8caecfdc9746","html_url":"https://github.com/A2nkF/macOS-Kernel-Exploit","commit_stats":null,"previous_names":["a2nkf/macos-kernel-exploit"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/A2nkF%2FmacOS-Kernel-Exploit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/A2nkF%2FmacOS-Kernel-Exploit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/A2nkF%2FmacOS-Kernel-Exploit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/A2nkF%2FmacOS-Kernel-Exploit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/A2nkF","download_url":"https://codeload.github.com/A2nkF/macOS-Kernel-Exploit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246767598,"owners_count":20830518,"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":["exploit","kernel-exploit","macos"],"created_at":"2024-08-01T09:01:22.909Z","updated_at":"2025-04-02T06:30:41.838Z","avatar_url":"https://github.com/A2nkF.png","language":"C","readme":"# macOS-Kernel-Exploit\n\n## DISCLAIMER\nYou need to know the KASLR slide to use the exploit. Also SMAP needs to be disabled which means that it's not exploitable on Macs after 2015. These limitations make the exploit pretty much unusable for in-the-wild exploitation but still helpful for\nsecurity researchers in a controlled lab environment.\n\nThis exploit is intended for security research purposes only.\n\n## General\nmacOS Kernel Exploit for CVE-2019-8781 ~~(currently a 0day. \nI'll add the CVE# once it is published ;) )~~. \n\nThanks to @LinusHenze for this cool bug and his support ;P.\n\n## Writeup\n\nProbably coming soon.\nIf you want to try and exploit it yourself, here are a few things to get you started:\n\n- VM: Download the macOS installer from the appstore and drag the `.app` file into VMWare's `NEW VM` window\n- Kernel Debugging setup: http://ddeville.me/2015/08/using-the-vmware-fusion-gdb-stub-for-kernel-debugging-with-lldb\n- Have a look at the _kernel_trap function\n\n\n## Build\n\nI recommend setting the bootargs to: `debug=0x44 kcsuffix=development -v `\n\n:warning: **Note**: SMAP needs to be disabled on macs after 2015 (`-pmap_smap_disable`)\n\nYou will need XCODE \u003c= 9.4.1 to build the exploit. (It needs to be 32bit)\nDownloading Xcode 9.4.1 Commandline Tools should be enough ;)\nDownload: https://developer.apple.com/download/more/\n\n```\nmake\n```\n\n## Execution\n\n```\n./exploit \u003cKASLR slide\u003e\n```\n\nTested on macOS Mojave: `Darwin Kernel-Mac.local 18.7.0 Darwin Kernel Version 18.7.0: Thu Jun 20 18:42:21 PDT 2019; root:xnu-4903.270.47~4/DEVELOPMENT_X86_64 x86_64`\n\n**Demo**:\n\n[![asciicast](https://asciinema.org/a/gtOLsNfxPSwcOOYKUwcH0JFJd.png)](https://asciinema.org/a/gtOLsNfxPSwcOOYKUwcH0JFJd)\n","funding_links":[],"categories":["\u003ca id=\"683b645c2162a1fce5f24ac2abfa1973\"\u003e\u003c/a\u003e漏洞\u0026\u0026漏洞管理\u0026\u0026漏洞发现/挖掘\u0026\u0026漏洞开发\u0026\u0026漏洞利用\u0026\u0026Fuzzing"],"sub_categories":["\u003ca id=\"f799ff186643edfcf7ac1e94f08ba018\"\u003e\u003c/a\u003e知名漏洞\u0026\u0026CVE\u0026\u0026特定产品"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa2nkf%2Fmacos-kernel-exploit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa2nkf%2Fmacos-kernel-exploit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa2nkf%2Fmacos-kernel-exploit/lists"}