Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 35 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
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""
```
2 changes: 1 addition & 1 deletion ignition_key.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
157 changes: 157 additions & 0 deletions ignition_key.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
- 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

- 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