Skip to content

plur1bu5/kali-build

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kali-build

An Ansible-based automation tool for spinning up a fully configured Kali Linux environment — inspired by IppSec's parrot-build and adapted for Kali.

Designed to get a fresh VM from zero to ready as fast as possible. Run it once on a new VM and you're good to go.


What It Does

Tools Installed

  • APT packagesjq, pipx, flameshot, exiftool, rsyslog, curl, Docker CE
  • GitHub releases — Chisel (Linux + Windows), LinPEAS/WinPEAS, Chainsaw, BloodHound
  • GitHub repos — SharpCollection, SecLists
  • Python (pipx) — Impacket, NetExec, Certipy-AD, BloodHound.py (CE)
  • Ruby gems — Evil-WinRM and its full dependency chain
  • Kerbrute — via go install
  • BloodHound CE — Docker Compose deployment on port 8088

System Configuration

  • Terminal — Custom bash prompt with VPN/IP awareness (HTB 10.x detection), color aliases, sensible history settings
  • Tmux — Pre-configured .tmux.conf
  • Firefox — Policy-based configuration via policies.json
  • Burp Suite — Auto-downloads CA cert, installs extras (Jython, Montoya API), applies community config template
  • Logging — UFW with SYN logging, auditd with custom rules, Laurel for structured JSON audit logs
  • VS Code — Installed via Ansible role with extensions: Python, PHP Tools, GitHub Copilot, Snyk, Code Spell Checker

Requirements

  • Kali Linux (rolling)
  • A regular user with sudo access (do not run as root)
  • go installed if you want Kerbrute
  • Internet access

Quick Start

sudo apt update && sudo apt install ansible git -y
git clone https://github.com/pluribus/kali-build.git
cd kali-build
ansible-galaxy install -r requirements.yml
ansible-playbook main.yml --ask-become-pass

Safe Mode (won't upgrade packages, won't touch sudoers, checks for existing Docker)

bash install-safe.sh

Tools Only (skips terminal/browser/logging config)

ansible-playbook main-tools-only.yml --ask-become-pass

Customization

Adding Tools

APT packagesroles/install-tools/tasks/apt-stuff.yml

GitHub releases → add to the loop in roles/install-tools/tasks/github-repos.yml:

- { repo: "owner/repo", regex: "_linux_amd64", location: "/opt/mytool" }

pipx toolsroles/install-tools/tasks/python-tools.yml

Laurel versionroles/configure-logging/defaults/main.yml:

laurel_version: "v0.5.3"

Sudoers (NOPASSWD)

The sudoers task is commented out by default for safety. To enable passwordless sudo, uncomment the task in roles/configure-system/tasks/configure-sudoers.yml.


File Layout

kali-build/
├── main.yml                   # Full build playbook
├── main-tools-only.yml        # Tools only (no UI config)
├── install.sh                 # Bootstrap script
├── install-safe.sh            # Safe bootstrap (non-destructive)
├── requirements.yml           # Ansible Galaxy requirements
└── roles/
    ├── install-tools/         # APT, pip, gem, GitHub downloads
    ├── configure-tmux/        # Tmux config
    ├── customize-terminal/    # Bash prompt, aliases, .bashrc
    ├── customize-browser/     # Firefox policies, Burp Suite setup
    ├── configure-logging/     # UFW, auditd, Laurel
    └── configure-system/      # Sudoers (optional)

Notes

  • BloodHound CE is deployed via Docker on port 8088 (moved from default 8080 to avoid conflicts). Initial credentials are saved to /opt/bloodhound/server/initial-password.txt after first run.
  • The GitHub download script (githubdownload.py) is unauthenticated — GitHub's rate limit is 60 requests/hour. If downloads fail, wait and re-run.
  • Burp Suite extras (Jython, Montoya) are downloaded with checksums — update these in roles/customize-browser/vars/main.yml when new versions release.

Credits

Original configuration by IppSec. This repo adapts his work for Kali Linux with additional tooling and safe-mode options.


License

MIT

About

Ansible playbook to automate a Kali Linux pentest environment setup.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors