https://github.com/rickmark/loki_remove
https://github.com/rickmark/loki_remove
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rickmark/loki_remove
- Owner: rickmark
- Created: 2017-11-08T05:25:37.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-08T05:32:26.000Z (over 8 years ago)
- Last Synced: 2025-01-29T17:11:31.670Z (over 1 year ago)
- Language: C
- Size: 3.91 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Introduction
With the current state of Apple EFI and SMC version mismatch and Loki malware, an external bootable utility
is required to flash a MacBook to a known good state.
## Methodology
* Create EFI bootable media with two partitions
* ESP including utilities
* FAT32 volume to write logging and data out to
* Download last known EFI and SMC from Apple *.pkg files and extract with `lsbom` etc
* A routine that flashes using the following series of steps
* Reset SMC to base by calling `smcutil.efi -reset 1`
* Flash SMC using `smcutil.efi`
* Reset SMC to update by calling `smcutil.efi -reset 2`
* Flash SMC using `smcutil.efi`
* Reset SMC to application mode by calling `smcutil.efi -reset 3`
* Flash EFI using `efiutil.efi` to the latest version for a given model
## Progress
The current versions of these files can be extracted from the scripts of a current version of macOS installer
The orchestration portion must be written (`main.c`)