mirror of
https://github.com/cliffe/SecGen.git
synced 2026-02-21 11:18:06 +00:00
test_scenario: tmp update
This commit is contained in:
@@ -7,68 +7,24 @@
|
||||
<system_name>testing</system_name>
|
||||
<base platform="linux" distro="Debian 7.8" type="server"/>
|
||||
|
||||
<!--<vulnerability module_path=".*dirtycow.*"/>-->
|
||||
<vulnerability module_path=".*suid_root_bash.*"/>
|
||||
|
||||
<input into_datastore="IP_addresses">
|
||||
<value>172.16.0.14</value>
|
||||
<value>172.17.0.0</value>
|
||||
</input>
|
||||
|
||||
<network type="private_network">
|
||||
<vulnerability module_path=".*wordpress_3x.*">
|
||||
<input into="https">
|
||||
<value>true</value>
|
||||
</input>
|
||||
<input into="IP_address">
|
||||
<datastore access="0">IP_addresses</datastore>
|
||||
</input>
|
||||
</vulnerability>
|
||||
|
||||
<network type="private_network">
|
||||
<input into="IP_address">
|
||||
<datastore access="0">IP_addresses</datastore>
|
||||
</input>
|
||||
</network>
|
||||
</system>
|
||||
|
||||
<!--<system>-->
|
||||
<!--<system_name>wordpress_2x_wheezy</system_name>-->
|
||||
<!--<base platform="linux" distro="Debian 7.8" type="server"/>-->
|
||||
|
||||
<!--<input into_datastore="IP_addresses">-->
|
||||
<!--<value>172.16.0.5</value>-->
|
||||
<!--<value>172.16.0.6</value>-->
|
||||
<!--<value>172.16.0.7</value>-->
|
||||
<!--</input>-->
|
||||
|
||||
<!--<vulnerability module_path=".*wordpress_2x.*">-->
|
||||
<!--<input into="IP_address">-->
|
||||
<!--<datastore access="1">IP_addresses</datastore>-->
|
||||
<!--</input>-->
|
||||
<!--</vulnerability>-->
|
||||
|
||||
<!--<network type="private_network">-->
|
||||
<!--<input into="IP_address">-->
|
||||
<!--<datastore access="1">IP_addresses</datastore>-->
|
||||
<!--</input>-->
|
||||
<!--</network>-->
|
||||
<!--</system>-->
|
||||
|
||||
|
||||
<!--<system>-->
|
||||
<!--<system_name>wordpress_3x_stretch</system_name>-->
|
||||
<!--<base platform="linux" distro="Debian 9" type="server"/>-->
|
||||
<!---->
|
||||
<!--<vulnerability module_path=".*wordpress_3x.*"/>-->
|
||||
<!---->
|
||||
<!--<network type="private_network">-->
|
||||
<!--<input into="IP_address">-->
|
||||
<!--<datastore access="next">IP_addresses</datastore>-->
|
||||
<!--</input>-->
|
||||
<!--</network>-->
|
||||
<!--</system>-->
|
||||
|
||||
<!--<system>-->
|
||||
<!--<system_name>wordpress_4x_stretch</system_name>-->
|
||||
<!--<base platform="linux" distro="Debian 9" type="server"/>-->
|
||||
|
||||
<!--<vulnerability module_path=".*wordpress_4x.*"/>-->
|
||||
|
||||
<!--<network type="private_network">-->
|
||||
<!--<input into="IP_address">-->
|
||||
<!--<datastore access="next">IP_addresses</datastore>-->
|
||||
<!--</input>-->
|
||||
<!--</network>-->
|
||||
<!--</system>-->
|
||||
|
||||
</scenario>
|
||||
|
||||
@@ -172,11 +172,11 @@ def build_vms(scenario, project_dir, options)
|
||||
end
|
||||
else # TODO: elsif vagrant_output[:exception].type == ProcessHelper::TimeoutError >destroy individually broken vms as above?
|
||||
Print.err 'Vagrant up timeout, destroying VMs and retrying...'
|
||||
GemExec.exe('vagrant', project_dir, 'destroy -f')
|
||||
# GemExec.exe('vagrant', project_dir, 'destroy -f')
|
||||
end
|
||||
else
|
||||
Print.err 'Error provisioning VMs, destroying VMs and exiting SecGen.'
|
||||
GemExec.exe('vagrant', project_dir, 'destroy -f')
|
||||
# GemExec.exe('vagrant', project_dir, 'destroy -f')
|
||||
exit 1
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user