Commit 9f0117f

bryfry <bryon@fryer.io>
2017-04-22 11:54:35
update master
1 parent ff93050
Changed files (1)
main.yml
@@ -1,16 +1,19 @@
 ---
-- hosts: oscp2
+- hosts: OSCp
   gather_facts: False
   tasks: 
   - raw: sudo apt install -y python aptitude
 
-- hosts: oscp2
+- hosts: oscp
   tasks:
 
-  - name: create openvpn folder
+  - name: create folders
     file: 
-      path: ~/vpn/ 
+      path: "{{ item }}"
       state: directory
+    with_items:
+    - ~/vpn/
+    - ~/git/
 
   - name: deploy openvpn files
     copy:
@@ -27,7 +30,14 @@
       state: present
     become: True
     with_items:
-    - deb http://downloads.metasploit.com/data/releases/metasploit-framework/apt lucid main
+    # msf framework apt repos, seriously... get your shit together
+    # get it all together, and put it in a backpack all your shit, 
+    # so it's together.  and if you got to take it somewhere, 
+    # take it somewhere, you know, take it to the shit store and sell it, 
+    # or put it in shit museum i dont care what you do, you just got 
+    # to get it together. 
+    # Get you shit together.
+    - deb [trusted=yes] http://downloads.metasploit.com/data/releases/metasploit-framework/apt lucid main
     - ppa:mrazavi/openvas
     - ppa:ricotz/unstable
 
@@ -41,6 +51,7 @@
       update_cache: True
       cache_valid_time: 3600
       upgrade: safe
+      allow_unauthenticated: True # msf framework ಠ_ಠ  
     become: True
 
   - name: apt packages
@@ -56,6 +67,7 @@
     # personal
     - htop
     - vim
+    - bmon
     # oscp requirements
     - openvpn
     - mtr
@@ -67,10 +79,20 @@
     - whois
     - gdb
     - build-essential
+    - libc6-dev-i386
     - mingw-w64
     - wine2.0
-    - openjdk-9-jre-headless
-    - openjdk-9-jdk-headless
+    - openjdk-8-jre-headless
+    - openjdk-8-jdk-headless
+    - atftpd
+    - sqlmap
+    - cewl
+    - john
+    - medusa
+    - hydra
+    - socat
+    - cadaver
+    - smbclient
     # documentation
     - pandoc
     - texlive-xetex
@@ -96,6 +118,7 @@
     - pip
     - pwntools
     - pyinstaller
+    - httplib2 # fimap
 
 
 
@@ -104,6 +127,42 @@
       name: nc
       path: /bin/nc.traditional
     become: True
+  
+  - name: git repos (tools)
+    git: 
+      repo: "{{ item.repo }}"
+      dest: "{{ item.dest }}" 
+    become: True
+    with_items:
+      - {"repo": "https://github.com/byt3bl33d3r/pth-toolkit.git",
+         "dest": "/opt/pth-toolkit"}
+      - {"repo": "https://github.com/maurosoria/dirsearch.git",
+         "dest": "/opt/dirsearch"}
+      - {"repo": "https://github.com/offensive-security/exploit-database.git",
+         "dest": "/opt/exploit-database"}
+      - {"repo": "https://github.com/byt3bl33d3r/pth-toolkit.git",
+         "dest": "/opt/pth-toolkit"}
+      - {"repo": "https://github.com/kurobeats/fimap.git",
+         "dest": "/opt/fimap/"}
+
+  - name: git repos - create symlinks
+    file:
+      state: link
+      src: "{{ item.src }}"
+      dest: "{{ item.dest }}"
+    become: True
+    with_items:
+      - {"dest": "/usr/local/bin/pth-net", "src": "/opt/pth-toolkit/pth-net"}
+      - {"dest": "/usr/local/bin/pth-smbclient", "src": "/opt/pth-toolkit/pth-smbclient"}
+      - {"dest": "/usr/local/bin/pth-rpcclient", "src": "/opt/pth-toolkit/pth-rpcclient"}
+      - {"dest": "/usr/local/bin/pth-smbget", "src": "/opt/pth-toolkit/pth-smbget"}
+      - {"dest": "/usr/local/bin/pth-winexe", "src": "/opt/pth-toolkit/pth-winexe"}
+      - {"dest": "/usr/local/bin/pth-wmic", "src": "/opt/pth-toolkit/pth-wmic"}
+      - {"dest": "/usr/local/bin/pth-wmis", "src": "/opt/pth-toolkit/pth-wmis"}
+      - {"dest": "/usr/local/bin/dirsearch", "src": "/opt/dirsearch/dirsearch.py"}
+      - {"dest": "/usr/local/bin/searchsploit", "src": "/opt/exploit-database/searchsploit"}
+      - {"dest": "/usr/local/bin/fimap", "src": "/opt/fimap/src/fimap.py"}
+
          
   - name: create windows binaries folder
     file: