From 329a4be35685fe23b13d42d9f20e69fc3509dc2c Mon Sep 17 00:00:00 2001 From: trevorbryant Date: Tue, 15 Oct 2019 12:01:31 -0400 Subject: [PATCH 1/3] s/libcompress-raw-lzma-perl/dos2unix/ --- ignition_key.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ignition_key.sh b/ignition_key.sh index 75dcd92..a640220 100755 --- a/ignition_key.sh +++ b/ignition_key.sh @@ -269,4 +269,4 @@ BLUE "Installing the thing that 7z2john.pl needs..." sudo apt install libcompress-raw-lzma-perl BLUE "Installing dos2unix..." -sudo apt install libcompress-raw-lzma-perl +sudo apt install dos2unix From d9df81401036efe925c85bbde687580d82dbc799 Mon Sep 17 00:00:00 2001 From: trevorbryant Date: Tue, 15 Oct 2019 13:33:03 -0400 Subject: [PATCH 2/3] initial playbook --- README.md | 39 +++++++++++-- ignition_key.yml | 145 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 180 insertions(+), 4 deletions(-) create mode 100644 ignition_key.yml diff --git a/README.md b/README.md index bd0e5f2..ca3c20e 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,42 @@ # Ignition Key - - > John Hammond | January 23rd, 2018 ------------ - I have had the idea to write something like this for a long time, but never got around to it. Today I ended up reinstalling my Ubuntu image so I could have more space on my harddrive, but I needed all my tools back. I figured I would put together this script now. -All the code is in the [ignition_key.sh](ignition_key.sh) script. \ No newline at end of file +All the code is in the [ignition_key.sh](ignition_key.sh) script. + +## Ansible install +Using the Ansible Playbook option to install. Follow the instructions before. + +### Testing +This has been tested on disco 19.04. + +#### Dependencies +Packages to be installed prior to running the playbooks. + +Add `127.0.0.1` to `etc/ansible/hosts` file. + +```bash +$ apt update +$ apt -y install python-apt ansible +``` + +#### Examples +Perform a dry run: + +```bash +$ sudo ansible-playbook ignition_key.yml --check +``` + +List tasks or tags: +```bash +$ sudo ansible-playbook ignition_key.yml --list-tasks +``` + +Install or skip specific tasks: +```bash +$ sudo ansible-playbook ignition_key.yml --tags "remove-home-dir,apt-tools" +$ sudo ansible-playbook ignition_key.yml --skip-tags "remove-home-dir,apt-tools"" +``` diff --git a/ignition_key.yml b/ignition_key.yml new file mode 100644 index 0000000..2749e47 --- /dev/null +++ b/ignition_key.yml @@ -0,0 +1,145 @@ +- name: remove-home-dir + hosts: localhost + connection: local + become: true + ignore_errors: true + tasks: + - name: remove directories + file: + path: "{{ item }}" + state: absent + with_items: + - ~/Desktop + - ~/Documents + - ~/Downloads + - ~/Music + - ~/Pictures + - ~/Public + - ~/Templates + - ~/Videos + tags: + - remove-home-dir + +- name: apt-tools + hosts: localhost + connection: local + become: true + ignore_errors: true + vars: + packages: + - apt-transport-https + - git + - simplescreenrecorder + - terminator + - taskwarrior + - python-pip + - guake + - openvpn + - nmap + - docker.io + - curl + - pinta + - exiftool + - sqlitebrowser + - wireshark + - idle + - xclip + - binwalk + - tesseract-ocr + - foremost + - bsdgames + - hexedit + - golang-go + - sqlite + - nikto + - zbar-tools + - qrencode + - pdfcrack + - virtualbox-qt + - vagrant + - fcrackzip + - unrar + - steghide + - ffmpeg + - gimp + - cmake + - mplayer + - sshpass + - tcpflow + - libcompress-raw-lzma-perl + - dos2unix + - atom + tasks: + - name: install apt-tools + apt: + name: "{{ item }}" + state: latest + update_cache: true + loop: "{{ packages }}" + tags: + - apt-tools + +- name: pip-tools + hosts: localhost + connection: local + become: true + ignore_errors: true + vars: + packages: + - flask + - flask-login + - colorama + - passlib + - pwntools + - netifaces + - iptools + - pyopenssl + - pydispatch + - scapy + tasks: + - name: install pip-tools + pip: + name: "{{ item }}" + state: latest + extra_args: --upgrade + loop: "{{ packages }}" + tags: + - pip-tools + +- name: sublime-text + hosts: localhost + connection: local + become: true + ignore_errors: true + tasks: + - name: add pgp key + apt_key: + url: https://download.sublimetext.com/sublimehq-pub.gpg + state: present + - name: add repository + apt_repository: + repo: 'deb https://download.sublimetext.com/ apt/stable/' + state: present + filename: sublime-text.list + update_cache: yes + - name: install sublime-text + apt: + name: sublime-text + state: present + update_cache: true + tags: + - sublime-text + +- name: vnc-server + hosts: localhost + connection: local + become: true + ignore_errors: true + tasks: + - name: install vnc-server from deb + apt: + deb: https://www.realvnc.com/download/file/vnc.files/VNC-Server-6.6.0-Linux-x64.deb + tags: + - vnc-server + + From 986a8c2a035cd481f3962dcf007e75dcf32401c8 Mon Sep 17 00:00:00 2001 From: trevorbryant Date: Tue, 15 Oct 2019 13:40:00 -0400 Subject: [PATCH 3/3] initial playbook --- ignition_key.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/ignition_key.yml b/ignition_key.yml index 2749e47..489fc48 100644 --- a/ignition_key.yml +++ b/ignition_key.yml @@ -142,4 +142,16 @@ tags: - vnc-server - +- name: stegsolve + hosts: localhost + connection: localhost + become: true + ignore_errors: true + tasks: + - name: download stegsolve + get_url: + url: http://www.caesum.com/handbook/Stegsolve.jar + dest: /root/stegsolve.jar + mode: +x + tags: + - stegsolve