Giter Site home page Giter Site logo

capev2-playbooks's Introduction

capev2-playbooks

This repository contains a few ansible roles and playbook to assist with deploying CAPEv2 and it's dependencies on Ubuntu 20.04 (may work on other versions as well) and is based of doomdraven's cape2.sh install script.

Setup

Install git

sudo apt install git -y

and clone this repo

git clone https://github.com/Daritos/capev2-playbooks.git
cd capev2-playbooks

Install ansible

Install dependencies

sudo apt -y install curl python3 python3-dev apt-transport-https ca-certificates software-properties-common

Add the Ansible repository NOTE! Skip if on Ubuntu 20.04

sudo apt-add-repository --yes --update ppa:ansible/ansible

Install Ansible

sudo apt update
sudo apt install -y ansible

Run the playbook

Create your ansible inventory file

nano ./inventory

Insert the following and adjust according to your needs

{
    "cape_host": {
        "hosts": {
            "127.0.0.1": null
        },
        "vars" : {
            "ansible_python_interpreter": "/usr/bin/python3",
            "cape_user": "cape",
            "cape_db_user": "cape",
            "cape_db_password": "changeme",
            "cape_ip": "127.0.0.1",
            "cape_vm_subnet_ip": "192.168.100.1",
            "cape_vm_subnet_interface": "virbr1",
            "cape_nr_processor": 4,
            "cape_machinery": "kvm",
            "cape_tor_dnsport": 5353
            "cape_tor_enabled": "yes",
            "cape_tor_interface": "virbr1",
            "cape_tor_proxyport": 9040,
            "tor_listening_ip": "127.0.0.1",
            "cert_common_name": "localhost",
            "external_fqdn": "example.tld",
        }
    }
}

Launch the playbook

ansible-playbook --connection=local --inventory inventory --limit 127.0.0.1 capev2_deploy.yml

Misc

List of additional available variables used with the playbook

{
    "ansible_python_interpreter": "/usr/bin/python3",
    "elastic_version": "7.10.0",
    "npcap_version": "1.00",
    "DOCKER_COMPOSE_VERSION": "1.27.4",
    "NODEJS_VERSION": 14,
    "cape_user": "cape",
    "cape_db_user": "cape",
    "cape_db_password": "changeme",
    "cape_ip": "127.0.0.1",
    "cape_vm_subnet_ip": "192.168.100.1",
    "cape_vm_subnet_interface": "virbr1",
    "cape_nr_processor": 4,
    "cape_machinery": "kvm",
    "cape_tor_dnsport": 5353
    "cape_tor_enabled": "yes",
    "cape_tor_interface": "virbr1",
    "cape_tor_proxyport": 9040,
    "tor_listening_ip": "127.0.0.1",
    "cert_common_name": "localhost",
    "external_fqdn": "localhost",
    "inetsim_enabled": "yes",
    "inetsim_ip": "192.168.100.2",
    "inetsim_dns_port": 53,
    "inetsim_interface": "virbr1",
    "misp_enabled": "no",
    "misp_url": "https://localhost",
    "misp_apikey": "REPLACE_ME",
    "misp_auto_publish": "no",
    "misp_min_malscore": 0,
    "misp_enrich_cape_report": "no",
    "misp_distribution": 0,
    "misp_report_threat_level_id": 2,
    "misp_report_analysis_state": 2,
    "misp_send_ioc": "no",
    "misp_include_network_ioc": "yes",
    "misp_include_ids_ioc": "yes",
    "misp_include_dropedfiles_ioc": "yes",
    "misp_include_registry_ioc": "no",
    "misp_include_mutexes_ioc": "no",
    "proxmox_ip": "192.168.1.10",
    "proxmox_user": "cape_user@pve",
    "proxmox_password": "changeme",
    "proxmox_active_vms": "cape-win10-1",
    "proxmox_vms": [
        {
            "name": "cape-win7-1",
            "platform": "windows",
            "ip": "192.168.100.10",
            "snapshot": "clean",
            "tags": "64x"
        },
        {
            "name": "cape-win10-1",
            "platform": "windows",
            "ip": "192.168.100.11",
            "snapshot": "clean",
            "tags": "64x"
        }
    ]
}

capev2-playbooks's People

Contributors

daritos avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

capev2-playbooks's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.