December 2017
Intermediate to advanced
364 pages
7h 30m
English
The following code is the Ansible playbook snippet to set up AutoNessus and configure it to use Nessus using credentials. This playbook will allow the setup of the autoNessus tool in the path and we can use it as a simple system tool:
- name: installing python-pip apt: name: python-pip update_cache: yes state: present- name: install python requests pip: name: requests- name: setting up autonessus get_url: url: "https://github.com/redteamsecurity/AutoNessus/raw/master/autoNessus.py" dest: /usr/bin/autoNessus mode: 0755 - name: updating the credentials replace: path: /usr/bin/autoNessus regexp: "{{ item.src }}" replace: "{{ item.dst }}" backup: yes no_log: True with_items: - { src: "token = ''", dst: "token = '{{ nessus_user_token ...Read now
Unlock full access