SYSTEM_MANUAL_RITE:
    - REVERT
    - START_VM
    - CALL: VM_PUSH_AGENT
    - INSTALL_AGENT
    - RELOG

    #- BUILD: [ pull, exploit, melt ]
    #- BUILD: [ pull, windows, melt ]
    #- RELOG
    - BUILD: [ scout, windows, silent ]

TEST_CHECK_DATE:
    - REVERT
    - START_VM
    - SLEEP: [10,30]
    - PUSH: [ assets/get_date_of_dir.py ]
    - EXECUTE_VM: [ /avtest/assets/get_date_of_dir.py, [], 40, True, True ]

SYSTEM_FUNCTIONAL_RITE:
    - VM: [ funie, funch, funff ]
    - REVERT
    - SLEEP: [5, 60]

    - START_VM
    - CALL: VM_PUSH_AGENT
    - START_AGENT: 172.20.20.122
    - SET:
        backend: 192.168.100.201
        frontend: 192.168.100.204

    - UNINSTALL
    - PUSH: [ AVAgent/assets/facebook.bat ]
    - BUILD: [ pull, windows_elite, silent ]
    - EXECUTE_VM: [ /AVTest/build/windows_elite/agent.exe, [], 40, True, True ]
    - SLEEP: 60

    - EXECUTE_VM: [ /AVTest/AVAgent/assets/facebook.bat, [], 40, True, True ]
    - SLEEP: 120
    - CALL: SET_MAIL
    - REPORT:
        - VM_FUNCTIONAL_EV: ['Functional testing', 'Device']
        - VM_FUNCTIONAL_CHAT_FB: ['Functional testing', 'Social Chat']
        - VM_FUNCTIONAL_ADDRESSBOOK_FB: ['Functional testing', 'Social Addressbook']
        - VM_FUNCTIONAL_EXPLOIT_NOBUILD: ['Functional testing', 'Exploit No Build', INVERT]


SYSTEM_FUNCTIONAL_MANUAL:
    - VM: [ funie, funch, funff ]
    - REVERT
    - SLEEP: [5, 60]

    - START_VM
    - CALL: VM_PUSH_AGENT
    - START_AGENT: 172.20.20.122
    - SET:
        backend: 192.168.100.201
        frontend: 192.168.100.204

    - UNINSTALL
    - PUSH: [ AVAgent/assets/facebook.bat ]
    - BUILD: [ pull, windows_elite, silent ]
    - EXECUTE_VM: [ /AVTest/build/windows_elite/agent.exe, [], 40, True, True ]

SYSTEM_FUNCTIONAL_SOLDIER_RITE:
    - VM: [ funie, funch, funff ]
    - REVERT
    - SLEEP: [5, 60]

    - START_VM
    - CALL: VM_PUSH_AGENT
    - START_AGENT: 172.20.20.122
    - SET:
        backend: 192.168.100.201
        frontend: 192.168.100.204

    - UNINSTALL
    - PUSH: [ AVAgent/assets/facebook.bat ]
    - BUILD: [ pull, windows_soldier, silent ]
    - EXECUTE_VM: [ /AVTest/build/windows-soldier/agent.exe, [], 40, True, True ]
    - SLEEP: 60

    - EXECUTE_VM: [ /AVTest/AVAgent/assets/facebook.bat, [], 40, True, True ]
    - SLEEP: 120
    - CALL: SET_MAIL
    - REPORT:
        - VM_FUNCTIONAL_EV: ['Functional testing', 'Device Soldier']
        - VM_FUNCTIONAL_CHAT_FB: ['Functional testing', 'Social Chat Soldier']
        - VM_FUNCTIONAL_ADDRESSBOOK_FB: ['Functional testing', 'Social Addressbook Soldier']

SYSTEM_FUNCTIONAL_SKYPE_RITE:
    - VM: [ funie ]
    - REVERT

    - START_VM
    - CALL: VM_PUSH_AGENT
    - START_AGENT: 172.20.20.122
    - SET:
        backend: 192.168.100.201
        frontend: 192.168.100.204

    - UNINSTALL
    - PUSH: [ AVAgent/assets/skype.bat ]
    - BUILD: [ pull, windows_elite, silent ]
    - EXECUTE_VM: [ /AVTest/build/windows_elite/agent.exe, [], 40, True, True ]
    - SLEEP: 60

    - EXECUTE_VM: [ /AVTest/AVAgent/assets/skype.bat, [], 40, True, True ]
    - SLEEP: 300
    - CALL: SET_MAIL

    - REPORT:
        - VM_FUNCTIONAL_EV_SKYPE: ['Functional testing', 'Skype Chat']


VM_SOLDIER_ACHILLE:
    - BUILD: [ scout, windows, silent ]
    - SLEEP: [60, 90]
    - LIST_DIR: STARTUP_EXE
    - RELOG

    - ON_ERROR: CONTINUE
    - CROP: True

    - BUILD: [ soldier_fast, windows, silent ]
    - LIST_DIR: STARTUP_EXE

    - CROP: False
    - ON_ERROR: SKIP


SYSTEM_FUNCTIONAL_ACHILLE:
    - VM_ALL
    - INTERNET: False

    - CALL: INIT_DISPATCH
    - SET:
        backend: 172.20.20.119
        frontend: 172.20.20.119

    - SET_SERVER:
        mail_recipients: [zeno@hackingteam.com, seppia@hackingteam.com, m.losito@hackingteam.com]

    - REPORT:
        - VM_SOLDIER_ACHILLE: ['AV Invisibility Experimental', 'Soldier']

    - CALL: VM_GET_LOG
    - CALL: END_DISPATCH

SYSTEM_SOLDIER_ACHILLE:
    - VM_ALL
    - INTERNET: False

    - CALL: INIT_DISPATCH
    - SET:
        backend: 172.20.20.119
        frontend: 172.20.20.119

    - SET_SERVER:
        mail_recipients: [zeno@hackingteam.com, seppia@hackingteam.com, m.losito@hackingteam.com]

    - REPORT:
        - VM_SOLDIER_ACHILLE: ['AV Invisibility Experimental', 'Soldier']

    - CALL: VM_GET_LOG
    - CALL: END_DISPATCH
