summaryrefslogtreecommitdiff
path: root/roles/individual-apps
diff options
context:
space:
mode:
authorDan Fedele <dan.fedele@gmail.com>2023-06-12 16:48:51 -0400
committerDan Fedele <dan.fedele@gmail.com>2023-06-12 16:48:51 -0400
commitc012b2026d4908e8533e6d3c3d8b89d36b11f168 (patch)
treeed7472598234db7fd30ab022a611f450e60c4599 /roles/individual-apps
parente8ca7beece3fd8b80d76857d7c6f687d83209918 (diff)
Now using ansible roles. also removed linpeass
Diffstat (limited to 'roles/individual-apps')
-rw-r--r--roles/individual-apps/README.md38
-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, 210 insertions, 0 deletions
diff --git a/roles/individual-apps/README.md b/roles/individual-apps/README.md
new file mode 100644
index 0000000..225dd44
--- /dev/null
+++ b/roles/individual-apps/README.md
@@ -0,0 +1,38 @@
+Role Name
+=========
+
+A brief description of the role goes here.
+
+Requirements
+------------
+
+Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required.
+
+Role Variables
+--------------
+
+A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well.
+
+Dependencies
+------------
+
+A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles.
+
+Example Playbook
+----------------
+
+Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
+
+ - hosts: servers
+ roles:
+ - { role: username.rolename, x: 42 }
+
+License
+-------
+
+BSD
+
+Author Information
+------------------
+
+An optional section for the role authors to include contact information, or a website (HTML is not allowed).
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"