New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added resource file and auto run functionality as in Metasploit #750

merged 16 commits into from Oct 18, 2017


None yet
2 participants

clr2of8 commented Oct 12, 2017

Resource files allow you to put multiple empire commands into a file and have them executed as a script. This is the same functionality provided when using Metasploit resource files. For example, you could automate startup of your "go to" listeners and generate their launchers with this command:

(Empire) > resource /root/listener.rc

Where the file "/root/listener.rc" has the following contents:
uselistener http
set Name http80
set DefaultProfile /admin/login.php,/console/dashboard.asp,/news/today.jsp| Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0;
set Host
set Port 80
set Name http443
set Port 443
usestager multi/launcher
set Listener http80
set Listener http443

You can also specify a resource file on empire startup like this:

./ --resource /root/listener.rc

A new "autorun" command has been added to the agents menu. You pass it a resource file full of commands you want to run on any new agents. For example you could have the following /root/run-my-modules.rc file:

usemodule trollsploit/message
usemodule trollsploit/voicetroll
set VoiceText test one

Type the following commands in Empire to set the autoruns:

autorun /root/run-my-modules.rc powershell

Now any new powershell agents that connect will run the two modules specified in /root/run-my-modules.rc, namely the trollsploit message and voicetroll module. To specify modules to run on agents of other languages (such as python) specify the language like this:


@clr2of8 clr2of8 changed the title from Added resource file functionality as in Metasploit to Added resource file and auto run functionality as in Metasploit Oct 16, 2017


This comment has been minimized.


xorrior commented Oct 18, 2017

Everything looks good and works as it should. Nice work!

@xorrior xorrior merged commit 1cb3e1e into EmpireProject:dev Oct 18, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment