Files
atomic-red-team/Mac/Persistence/Re-opened_Applications.md
T
Michael Haag 3c84c659f5 Mac Persistence
Added many mac persistence items and updated readme
2018-01-09 09:07:41 -07:00

27 lines
570 B
Markdown

# Re-Opened Applications
MITRE ATT&CK Technique: [T1164](https://attack.mitre.org/wiki/Technique/T1164)
### Plist method
create a custom plist:
~/Library/Preferences/com.apple.loginwindow.plist
or
~/Library/Preferences/ByHost/com.apple.loginwindow.*.plist
### Mac Defaults
Create:
sudo defaults write com.apple.loginwindow LoginHook /path/to/script
Delete:
sudo defaults delete com.apple.loginwindow LoginHook
[Reference](https://developer.apple.com/library/content/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CustomLogin.html)