diff options
Diffstat (limited to 'sliver-c2')
| -rw-r--r-- | sliver-c2/handlers/main.yaml | 2 | ||||
| -rw-r--r-- | sliver-c2/tasks/sliver_configure.yaml | 9 | ||||
| -rw-r--r-- | sliver-c2/templates/sliver.service.j2 | 1 | 
3 files changed, 6 insertions, 6 deletions
| diff --git a/sliver-c2/handlers/main.yaml b/sliver-c2/handlers/main.yaml index a6c8d49..0987034 100644 --- a/sliver-c2/handlers/main.yaml +++ b/sliver-c2/handlers/main.yaml @@ -4,7 +4,7 @@  - name: reload fail2ban    command: fail2ban-client reload -- name: reload systemd daemon +- name: reload systemd    command: systemctl daemon-reload    when: ansible_facts['service_mgr'] == 'systemd' diff --git a/sliver-c2/tasks/sliver_configure.yaml b/sliver-c2/tasks/sliver_configure.yaml index 68d2ba4..bf4797e 100644 --- a/sliver-c2/tasks/sliver_configure.yaml +++ b/sliver-c2/tasks/sliver_configure.yaml @@ -1,6 +1,6 @@  - name: ensure .sliver config directory exists    file: -    path: /root/.sliver/configs +    path: "{{ install_path }}/.sliver/configs"      state: directory      owner: root      group: root @@ -9,7 +9,7 @@  - name: deploy custom server.json config    template:      src: server.json.j2 -    dest: /root/.sliver/configs/server.json +    dest: "{{ install_path }}/.sliver/configs/server.json"      owner: root      group: root      mode: '0600' @@ -17,7 +17,7 @@  - name: ensure sliver client config directory exists    file: -    path: /root/.sliver-client/configs +    path: "{{ install_path }}/.sliver-client/configs"      state: directory      owner: root      group: root @@ -27,8 +27,7 @@    loop: "{{ sliver_operators }}"    loop_control:      loop_var: operator -  command: > -    /opt/sliver/sliver-server operator --name {{ operator }} --lhost {{ sliver_server }} --save /root/.sliver-client/configs +  command: /opt/sliver/sliver-server operator --name {{ operator }} --lhost {{ sliver_server }} --save /root/.sliver-client/configs    notify: sliver systemd handler  - name: fix permissions for .sliver-client directory diff --git a/sliver-c2/templates/sliver.service.j2 b/sliver-c2/templates/sliver.service.j2 index 11cc2bd..c45687d 100644 --- a/sliver-c2/templates/sliver.service.j2 +++ b/sliver-c2/templates/sliver.service.j2 @@ -8,6 +8,7 @@ Type=simple  Restart=on-failure  RestartSec=3  User=root +Environment=SLIVER_ROOT_DIR={{ install_path }}/.sliver  ExecStart={{ install_path }}/sliver-server daemon  [Install] |