Next in line is the post exploitation of macOS using Empire. There are some cool modules for OS X, and to see their magic, let's first get our stager ready. For stager creation, we can either choose the default launcher multi/launcher or the OSX launcher osx/launcher. The only difference between these two launchers is their available options. Unlike multi launcher, OSX launcher doesn't have proxy and obfuscation support. Let's execute the following command in order to use OSX launcher:
usestager osx/launcher info
Let's add the listener using the set Listener Empire command:
A Python one-liner command will be generated, and once this one-liner is executed on the target server, we'll get the agent connection:
Now let's confirm the agent:
Now that we have the agent, let's interact with the agent and execute...