brew install –cask utm
use the vulnerable version we downloaded via ipsw to set up the vm
enabling ssh:
System Settings → Privacy & Security → Full Disk Access → Terminal
sudo systemsetup -setremotelogin on
getting some tools:
run the script
disabling sip:
sudo csrutil disable sudo reboot
building the trigger:
clang -framework Foundation -framework ImageIO
-framework AppKit -framework CoreGraphics
-g -O0
-o trigger trigger.m
loading the binary:
pwndbg-lldb ./trigger command source imageio.lldb run test.psd
breakpoint setting mini tutorial:
ghidra:
in lldb:
sources:
https://www.virusbulletin.com/uploads/pdf/conference/vb2022/papers/VB2022-Exploit-archaeology-a-forensic-history-of-in-the-wild-NSO-Group-exploits.pdf