From b60f421d47a36d56b0f569802a8359685ba04456 Mon Sep 17 00:00:00 2001 From: ts Date: Tue, 5 Feb 2019 17:30:40 +0000 Subject: [PATCH] scenarios/examples/vulnerability_examples/dirtycow.xml --- .../vulnerability_examples/dirtycow.xml | 24 +++++++++++++++++++ scenarios/tests/test_scenario.xml | 4 ++-- secgen.rb | 2 +- 3 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 scenarios/examples/vulnerability_examples/dirtycow.xml diff --git a/scenarios/examples/vulnerability_examples/dirtycow.xml b/scenarios/examples/vulnerability_examples/dirtycow.xml new file mode 100644 index 000000000..aba9df04f --- /dev/null +++ b/scenarios/examples/vulnerability_examples/dirtycow.xml @@ -0,0 +1,24 @@ + + + + + + dirtycow + + + + + + + 172.16.0.12 + + + + + IP_addresses + + + + diff --git a/scenarios/tests/test_scenario.xml b/scenarios/tests/test_scenario.xml index 0368e177e..7d5e7cc5d 100644 --- a/scenarios/tests/test_scenario.xml +++ b/scenarios/tests/test_scenario.xml @@ -5,9 +5,9 @@ xsi:schemaLocation="http://www.github/cliffe/SecGen/scenario"> testing - + - + 172.16.0.12 diff --git a/secgen.rb b/secgen.rb index 9a4d97575..36bf0a8e7 100644 --- a/secgen.rb +++ b/secgen.rb @@ -147,7 +147,7 @@ def build_vms(scenario, project_dir, options) Print.err "Not going to destroy #{vm_not_to_destroy}, since it does not exist" failures_to_destroy.delete_if {|x| x == vm_not_to_destroy} # TODO: not sure if there is a need to remove_uncreated_vms() here too? (I don't think so?) - end + end # TODO: Add another elsif here to check if any tests have failed, edit the output of the tests so that it has a unique string that captures the vm name end failures_to_destroy = failures_to_destroy.uniq