khast3x / Redcloud

Automated Red Team Infrastructure deployement using Docker
MIT License
1.2k stars 200 forks source link

Non-Interactive Deployment #7

Open heywoodlh opened 5 years ago

heywoodlh commented 5 years ago

First off, thanks for a great project.

I'm working on Ansible playbooks to deploy Redcloud. Is there a way to deploy Redcloud on a remote machine without requiring user interaction? Not using the menu, but rather supplying all the configuration via a config file or arguments to redcloud.py.

My desired workflow is to non-interactively git clone the repository and run python redcloud.py/installing without a dialog.

Anyway, any suggestions would be great!

khast3x commented 5 years ago

Hello, thank you for checking Redcloud out. I have not yet planned when I will be adding new features to Redcloud, but arguments or config fold were part of the potential new feature. Is that what you had in mind? Cheers!

heywoodlh commented 5 years ago

Yep, some way to pass the configuration to RedCloud without requiring user interaction just to get it running would be awesome (arguments or a config file).

Btw, most of my fellow security analysts on my team and myself have been playing with RedCloud over the past few days and we think we'll probably add it to our pen-testing kit. It's a great tool!

khast3x commented 5 years ago

Oh wow what nice feedback to read, thanks! I'll keep this issue opened until I find the time to add this. Cheers!

heywoodlh commented 5 years ago

Hey actually, I just decided to docker-compose build and docker-compose up the RedCloud installation and that worked perfectly fine. Here are the Ansible tasks for it (for the record):

---
- name: git clone https://github.com/khast3x/Redcloud.git /opt/redcloud
  git:
    repo: https://github.com/khast3x/Redcloud.git
    dest: /opt/redcloud
  become: true
- name: mkdir -p /opt/portainer/data
  file:
    path: /opt/portainer/data
    state: directory
  become: true
- name: docker-compose build && docker-compose up in /opt/redcloud
  docker_compose:
    build: yes
    project_src: /opt/redcloud/ 
  become: true

For my purposes running docker-compose is sufficient for what I need so if you want to close this issue you totally can.

khast3x commented 5 years ago

Smart workaround. Glad to know. I'll keep the issue opened, it's on the todo list anyway.
Cheers!