summaryrefslogtreecommitdiff
path: root/roles/individual-apps
diff options
context:
space:
mode:
Diffstat (limited to 'roles/individual-apps')
-rw-r--r--roles/individual-apps/README.md9
-rw-r--r--roles/individual-apps/defaults/main.yml2
-rw-r--r--roles/individual-apps/handlers/main.yml2
-rw-r--r--roles/individual-apps/meta/main.yml52
-rw-r--r--roles/individual-apps/tasks/main.yml106
-rw-r--r--roles/individual-apps/tests/inventory2
-rw-r--r--roles/individual-apps/tests/test.yml5
-rw-r--r--roles/individual-apps/vars/main.yml3
8 files changed, 181 insertions, 0 deletions
diff --git a/roles/individual-apps/README.md b/roles/individual-apps/README.md
new file mode 100644
index 0000000..5880d2b
--- /dev/null
+++ b/roles/individual-apps/README.md
@@ -0,0 +1,9 @@
+Individual Apps
+=========
+
+This role will install individual packages that are _not_ tied to the package management system, IE apt. This also applies to git repositories and the like, as well as one-off compilation and build instructions, such as JumboJohn and Kerbrute.
+
+Role Variables
+--------------
+
+Just using a link to the compiled ysoserial .jar file.
diff --git a/roles/individual-apps/defaults/main.yml b/roles/individual-apps/defaults/main.yml
new file mode 100644
index 0000000..ebfe4e0
--- /dev/null
+++ b/roles/individual-apps/defaults/main.yml
@@ -0,0 +1,2 @@
+---
+# defaults file for individual-apps
diff --git a/roles/individual-apps/handlers/main.yml b/roles/individual-apps/handlers/main.yml
new file mode 100644
index 0000000..3c771dd
--- /dev/null
+++ b/roles/individual-apps/handlers/main.yml
@@ -0,0 +1,2 @@
+---
+# handlers file for individual-apps
diff --git a/roles/individual-apps/meta/main.yml b/roles/individual-apps/meta/main.yml
new file mode 100644
index 0000000..c572acc
--- /dev/null
+++ b/roles/individual-apps/meta/main.yml
@@ -0,0 +1,52 @@
+galaxy_info:
+ author: your name
+ description: your role description
+ company: your company (optional)
+
+ # If the issue tracker for your role is not on github, uncomment the
+ # next line and provide a value
+ # issue_tracker_url: http://example.com/issue/tracker
+
+ # Choose a valid license ID from https://spdx.org - some suggested licenses:
+ # - BSD-3-Clause (default)
+ # - MIT
+ # - GPL-2.0-or-later
+ # - GPL-3.0-only
+ # - Apache-2.0
+ # - CC-BY-4.0
+ license: license (GPL-2.0-or-later, MIT, etc)
+
+ min_ansible_version: 2.1
+
+ # If this a Container Enabled role, provide the minimum Ansible Container version.
+ # min_ansible_container_version:
+
+ #
+ # Provide a list of supported platforms, and for each platform a list of versions.
+ # If you don't wish to enumerate all versions for a particular platform, use 'all'.
+ # To view available platforms and versions (or releases), visit:
+ # https://galaxy.ansible.com/api/v1/platforms/
+ #
+ # platforms:
+ # - name: Fedora
+ # versions:
+ # - all
+ # - 25
+ # - name: SomePlatform
+ # versions:
+ # - all
+ # - 1.0
+ # - 7
+ # - 99.99
+
+ galaxy_tags: []
+ # List tags for your role here, one per line. A tag is a keyword that describes
+ # and categorizes the role. Users find roles by searching for tags. Be sure to
+ # remove the '[]' above, if you add tags to this list.
+ #
+ # NOTE: A tag is limited to a single word comprised of alphanumeric characters.
+ # Maximum 20 tags per role.
+
+dependencies: []
+ # List your role dependencies here, one per line. Be sure to remove the '[]' above,
+ # if you add dependencies to this list.
diff --git a/roles/individual-apps/tasks/main.yml b/roles/individual-apps/tasks/main.yml
new file mode 100644
index 0000000..7b1b3d6
--- /dev/null
+++ b/roles/individual-apps/tasks/main.yml
@@ -0,0 +1,106 @@
+---
+# tasks file for individual-apps
+- name: Install pwntools
+ ansible.builtin.pip:
+ name: git+https://github.com/Gallopsled/pwntools.git@dev
+
+- name: Clone Invoke-Obfuscation (•_•) ( •_•)>⌐■-■ (⌐■_■)
+ ansible.builtin.git:
+ repo: 'https://github.com/danielbohannon/Invoke-Obfuscation'
+ dest: /opt/Invoke-Obfuscation
+
+- name: Clone JumboJohn
+ ansible.builtin.git:
+ repo: 'https://github.com/magnumripper/JohnTheRipper'
+ dest: /opt/JohnTheRipper
+
+- name: Compiling JumboJohn, hold onto yer butts...
+ ansible.builtin.command: chdir=/opt/JohnTheRipper/src {{ item }}
+ with_items:
+ - ./configure
+ - make
+ - make install
+
+- name: Install trufflehog
+ ansible.builtin.pip:
+ name: trufflehog
+
+- name: Install LDAPDomainDump
+ ansible.builtin.pip:
+ name: ldapdomaindump
+
+- name: Clone Nishang
+ ansible.builtin.git:
+ repo: 'https://github.com/samratashok/nishang'
+ dest: /opt/nishang
+
+- name: Clone Chisel
+ ansible.builtin.git:
+ repo: 'https://github.com/jpillora/chisel'
+ dest: /opt/chisel
+
+- name: Clone LinEnum
+ ansible.builtin.git:
+ repo: 'https://github.com/rebootuser/LinEnum'
+ dest: /opt/LinEnum
+
+- name: Clone PowerSploit
+ ansible.builtin.git:
+ repo: 'https://github.com/PowerShellMafia/PowerSploit'
+ dest: /opt/PowerSploit
+
+- name: Clone Impacket
+ ansible.builtin.git:
+ repo: 'https://github.com/SecureAuthCorp/impacket'
+ dest: /opt/impacket
+
+- name: Installing Impacket
+ ansible.builtin.shell: "python3 /opt/impacket/setup.py build && python3 /opt/impacket/setup.py install"
+ args:
+ chdir: /opt/impacket
+
+- name: Clone Bloodhound.py
+ ansible.builtin.git:
+ repo: 'https://github.com/fox-it/BloodHound.py.git'
+ dest: /opt/BloodHound.py
+
+- name: Clone PyFuscation
+ ansible.builtin.git:
+ repo: 'https://github.com/CBHue/PyFuscation.git'
+ dest: /opt/PyFuscation
+
+- name: Clone Gef
+ ansible.builtin.git:
+ repo: 'https://github.com/hugsy/gef.git'
+ dest: /opt/gef
+
+- name: Clone Static Binaries
+ ansible.builtin.git:
+ repo: 'https://github.com/andrew-d/static-binaries'
+ dest: /opt/static-binaries
+
+- name: Clone Ysoserial
+ ansible.builtin.git:
+ repo: 'https://github.com/frohoff/ysoserial'
+ dest: /opt/ysoserial
+
+- name: Clone Kerbrute
+ ansible.builtin.git:
+ repo: 'https://github.com/ropnop/kerbrute.git'
+ dest: /opt/kerbrute
+
+- name: Building Kerbrute...
+ ansible.builtin.command: chdir=/opt/kerbrute make linux
+
+- name: Downloading Ysoserial JAR file
+ ansible.builtin.get_url:
+ url: "{{ ysoserial_jar }}"
+ dest: /opt/ysoserial/ysoserial-all.jar
+ mode: '0644'
+
+- name: Get Evil-WinRM via gem installer
+ community.general.gem:
+ name: evil-winrm
+ norc: yes
+ state: latest
+ user_install: no
diff --git a/roles/individual-apps/tests/inventory b/roles/individual-apps/tests/inventory
new file mode 100644
index 0000000..878877b
--- /dev/null
+++ b/roles/individual-apps/tests/inventory
@@ -0,0 +1,2 @@
+localhost
+
diff --git a/roles/individual-apps/tests/test.yml b/roles/individual-apps/tests/test.yml
new file mode 100644
index 0000000..9626dd6
--- /dev/null
+++ b/roles/individual-apps/tests/test.yml
@@ -0,0 +1,5 @@
+---
+- hosts: localhost
+ remote_user: root
+ roles:
+ - individual-apps
diff --git a/roles/individual-apps/vars/main.yml b/roles/individual-apps/vars/main.yml
new file mode 100644
index 0000000..c21af81
--- /dev/null
+++ b/roles/individual-apps/vars/main.yml
@@ -0,0 +1,3 @@
+---
+# vars file for individual-apps
+ysoserial_jar: "https://github.com/frohoff/ysoserial/releases/latest/download/ysoserial-all.jar"