https://github.com/vandycknick/pentest-playbooks
Collection of playbooks to configure my pentest VMs (Offsec, HTB, ...)
https://github.com/vandycknick/pentest-playbooks
Last synced: 3 months ago
JSON representation
Collection of playbooks to configure my pentest VMs (Offsec, HTB, ...)
- Host: GitHub
- URL: https://github.com/vandycknick/pentest-playbooks
- Owner: vandycknick
- Created: 2023-11-27T13:49:44.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-21T22:28:30.000Z (over 1 year ago)
- Last Synced: 2025-01-24T05:12:04.586Z (4 months ago)
- Language: Jinja
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pentest Playbooks
Before getting instarted install ansible dependencies with ansible galaxy:
```sh
ansible-galaxy install -r requirements.yml --force
```## Creating the base base-image
Run the `build.yml` playbook.
```sh
ansible-playbook build.yml
```## Configure a VM
Run the `main.yml` playbook.
```sh
ansible-playbook main.yml --ask-vault-pass --ask-become-pass
```## Manage VM lifecycle
Starting the vm
```sh
virsh start hack-the-box
```Stop the vm
```sh
virsh shutdown hack-the-box
```Open VM window
```sh
virt-viewer hack-the-box -a -w
```## Todo
- Allow having multiple backing stores base-image -> pentest-base -> htb or base-image -> pentest-base -> oscp