summaryrefslogtreecommitdiff
path: root/kali.yml
diff options
context:
space:
mode:
authorDan Fedele <dan.fedele@gmail.com>2020-06-03 10:47:10 -0400
committerDan Fedele <dan.fedele@gmail.com>2020-06-03 10:47:10 -0400
commit6fab36c18f09f0899daf44d0aa29910c16da9086 (patch)
tree22bf6242b71ef027e5f90404f642805ca9514aff /kali.yml
parent3167009669573a51798e84ac28232fde99fe65d9 (diff)
Works for all users on OS now
Diffstat (limited to 'kali.yml')
-rw-r--r--kali.yml42
1 files changed, 27 insertions, 15 deletions
diff --git a/kali.yml b/kali.yml
index c93b621..a4c1d5c 100644
--- a/kali.yml
+++ b/kali.yml
@@ -23,6 +23,7 @@
- name: Installing one-off packages from package manager
package:
name:
+ - awk
- terminator
- jxplorer
- seclists
@@ -123,9 +124,6 @@
repo: 'https://github.com/hugsy/gef.git'
dest: /opt/gef
- - name: Initialize Gef
- script: /opt/gef/scripts/gef.sh
-
- name: Get Evil-WinRM via gem installer
gem:
name: evil-winrm
@@ -142,26 +140,40 @@
set mouse=
set ttymouse=
- - name: Copying over bashrc file
+ - name: Getting all interactive users <<hack hack hack>>
+ shell: "awk -F: '{ if (($3 >= 1000 && $3 != 65534) || $3 == 0) print $1}' /etc/passwd"
+ register: user_home
+
+ - name: Initialize Gef for all users
+ shell: "su -c /opt/gef/scripts/gef.sh {{item}}"
+ loop: "{{user_home.stdout_lines}}"
+
+ - name: Copying over bashrc file to all users
copy:
src: /tmp/master-bashrc
- dest: /root/.bashrc
- owner: root
- group: root
+ dest: "~{{item}}/.bashrc"
+ owner: "{{item}}"
+ group: "{{item}}"
+ mode: '0640'
+ loop: "{{user_home.stdout_lines}}"
- - name: Copying over bash functions file
+ - name: Copying over bash functions file for all users
copy:
src: /tmp/master-bash_functions
- dest: /root/.bash_functions
- owner: root
- group: root
+ dest: "~{{item}}/.bash_functions"
+ owner: "{{item}}"
+ group: "{{item}}"
+ mode: '0640'
+ loop: "{{user_home.stdout_lines}}"
- - name: Copying over tmux config
+ - name: Copying over tmux config to all users
copy:
src: /tmp/master-tmux_conf
- dest: /root/.tmux.conf
- owner: root
- group: root
+ dest: "~{{item}}/.tmux.conf"
+ owner: "{{item}}"
+ group: "{{item}}"
+ mode: '0640'
+ loop: "{{user_mode.stdout_lines}}"
- name: Create /srv/smb/ directory for payload population
file: