Unverified Commit 8b4f1fd1 authored by Baptiste MOINE's avatar Baptiste MOINE
Browse files

Fix startup issue + Add screen for update management

parent 1e9210a6
......@@ -26,6 +26,9 @@ RUN echo "deb http://http.kali.org/kali kali-rolling main contrib non-free\ndeb-
RUN git clone https://github.com/PowerShellEmpire/Empire.git /root/empire && \
bash -c "cd /root/empire/setup && ./install.sh"
# Running tools.
RUN apt-get -fy install screen
# Set workdir.
WORKDIR /root/empire
......
......@@ -50,16 +50,18 @@ docker-compose exec empire bash
Reset databases (and certs):
```bash
screen -S empire -L -Logfile /root/empire/data/empire.log
./setup/reset.sh
exit
y
```
## Usage ##
## Configuration ##
Start a new empire:
```bash
pkill empire
./empire
```
......@@ -69,12 +71,19 @@ Setup listener:
```bash
listeners
uselistener http
set Host http://vps.bmoine.fr:8080
set Host http://vps2.bmoine.fr:8080
set Port 8080
execute
launcher powershell
```
Detach from screen using `CTRL`+`A``D`.
Escape from container:
```bash
exit
y
```
......@@ -86,11 +95,26 @@ docker-compose up -d
```
Follow logs:
Display logs:
```bash
docker-compose logs -f
```
Attach to the container:
```bash
docker-compose exec empire bash
```
Attach to the screen:
```bash
screen -r empire
```
Voilà!
#!/bin/bash
./empire
screen -S empire -L -Logfile /root/empire/data/empire.log -dm bash -c "cd /root/empire/; /root/empire/empire"
tail -f /root/empire/data/empire.log
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment