mykali - Ansible based Kali customization
Ansible based automation for a new Kali!
I have been wanting to update automation scripts to deploy customized pentesting environment to a new Kali OS. I have been using bash scripts to deploy and update the configurations, but I start to see my scripts complex and hard to maintain. Therefore, I decided to update the automation with ansible tool.
For those who do not know ansible, Ansible is an agentless automation tool that deploys your configurations and scripts to your desired environment. You basically create a yml file and organize your tasks with ‘roles’. The tasks will be executed based on the order of the roles you defined.
What I have done so far
Here is my project for customizing kali envioronment - https://github.com/iptracej/mykali
I have used Ansible to deploy my customized config files, my preferred applications, useful github repos, and some scripts to fine-tune the Kali machine. Here is a list of the roles defined to automate the deployment.
- Deploy tmux configuration
- Deploy emacs configuration
- Deploy VS code configuration
- Install applications
- sudo based
- gem based
- wget based
- go based
- pip and pipx based
- Download usefull github repos
- Configure kali core environment
- Configure docker
- TBD - Browse extentions and Burpsuite
- TBD - Fish shell with plugins
Installation Instruction
First of all, fire up a new Kali machine and ensure you are connected to the Internet.
Go to the https://github.com/iptracej/mykali site and type the following commands.
1
2
3
4
5
6
7
8
9
10
11
12
13
# update all at the beginning
sudo apt update
# install pip3
sudo apt install python3-pip
# install ansible
pip3 install ansible
# install mykali
git clone https://github.com/iptracej/mykali
cd mykali
ansible-playbook main.yml --ask-become-pass # supply your sudo password
That’s it.
Future work
I will update the mykali automation to include the following topics:
- browser extensions
- burpsuite configurations
- Fish shell and their plugins
I hope you like the project and start customizing your onw version.
Special thanks
I really like Gethub copilot and Chat GPT integration. Without having the two combinations, I do not think that I can accomplish writing all of scripts in a short amount of time.
Happy Kali hacking!