For those of us that choose had the hazard to play only about amongst it, docker is pretty awesome. While primarily designed amongst evolution / deployment / continuous integration inwards mind, it is likewise pretty awesome for criminal offense related tasks.
I choose seat together a docker laid upward for PowerShell Empire. You tin see the dockerfile together with such from GitHub or only clitoris the picture straight from Docker Hub. I holler upward on configuring automated builds to ensure that a fresh together with fully updated version tin hold upward pulled downward regularly
Grab from GitHub
Grab from Docker Hub
inside docker networking.
I choose seat together a docker laid upward for PowerShell Empire. You tin see the dockerfile together with such from GitHub or only clitoris the picture straight from Docker Hub. I holler upward on configuring automated builds to ensure that a fresh together with fully updated version tin hold upward pulled downward regularly
Grab from GitHub
Grab from Docker Hub
Usage & Considerations
In lodge to laid upward the docker container yourself, you lot volition demand to clone this repository:git clone https://github.com/attactics/PowerShellEmpireDockerOnce you lot choose the repository cloned you lot volition demand to laid upward the picture from inside the cloned directory:
cd PowerShellEmpireDocker docker laid upward -t PowerShellEmpire .Once the picture has been built, a container tin hold upward created together with ran. For example:
docker run -it --name PowerShellEmpireDocker -p [HOST_IP]:[HOST_PORT]: \ [CONTAINER_PORT] -v /tmp:/tmp PowerShellEmpireTaking a hold off at the run command:
- -it instructs docker to allow us interact amongst the container (input & output)
- -p instructs docker to forwards communication received on the host IP on port 8080 to the container on port 8080. This tin hold upward modified every bit desired, withal it is of import to specify the host interface you lot holler upward stagers to communicate with.
- -v practise a book linking the host /tmp directory to the containers /tmp directory. This exists to conveniently write stager output files to the host for use. By default, PowerShell Empire writes generated stager files to /tmp. The host place is arbitrary.
Important Note
Bear inwards heed that when configuring listeners you lot must specify the IP address of the _host_ interface you lot holler upward to have connections on. PowerShell Empire volition bind a listener to 0.0.0.0, every bit such fifty-fifty if you lot specify an IP that does non be inside the container, it volition bind without issue. Specifying the host interface when configuring the listener ensures that the stager is built amongst this same host interface, allowing it to connect dorsum to the host every bit opposed to a local network interface that existsinside docker networking.
I'm lazy!
If the higher upward laid upward procedure consists of to a greater extent than keys than you lot tin convey yourself to type, the pre-built picture tin hold upward establish on docker hub. I holler upward to update them regulary. You tin clitoris the picture to your local device past times executing the nextdocker clitoris attactics/powershellempire