Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Path: blob/master/documentation/modules/post/linux/gather/ansible.md
Views: 16117
Vulnerable Application
This module will grab ansible information including hosts, ping status, and the configuration file.
Docker-compose Install
Use the ansible lab files located here.
Before bringing up the docker-compose
instance, you'll want to generate an SSH key: ssh-keygen -t rsa -N "" -f secrets/id_rsa
Of note, only 1 of the 3 alpine hosts will be successful due to the port conflict. This is fine though.
Verification Steps
Install the application
Start msfconsole
Get an initial shell on the box
Do:
use post/linux/gather/ansible
Do:
set session [#]
Do:
run
You should get information about the ansible install and host.
Options
ANSIBLE
Location of ansible executable if not in a standard location. This is added to a list of default locations which includes /usr/local/bin/ansible
. Defaults to ``
ANSIBLEINVENTORY
Location of ansible-inventory executable if not in a standard location. This is added to a list of default locations which includes /usr/local/bin/ansible-inventory
. Defaults to ``
ANSIBLECFG
Location of ansible-inventory executable if not in a standard location. This is added to a list of default locations which includes /etc/ansible/ansible.cfg
. Defaults to ``
HOSTS
Which Ansible host (groups) to target. Defaults to all
Scenarios
Docker compose as mentioned above
Get initial access to the system