Structure

AttackMate playbooks must be written in valid YAML-format and require at least a commands section:

commands:
  - type: shell
    cmd: nmap www.vulnerable-system.tld
  - type: shell
    cmd: nikto -host www.vulnerable-system.tld

Usually playbooks also contain a vars section to define reusable placeholders that can be referenced throughout the commands section:

vars:
  TARGET: www.vulnerable-system.tld
  NMAP: /usr/bin/nmap
  NIKTO: /usr/bin/nikto


commands:
  - type: shell
    cmd: $NMAP -T4 $TARGET
  - type: shell
    cmd: $NIKTO -host $TARGET