From 868f96c759b6650d88ff9f4fbc5c048302134248 Mon Sep 17 00:00:00 2001 From: Sebastien Blot Date: Wed, 20 Sep 2017 10:11:01 +0200 Subject: Initial import --- src/tests/deny_writable_execution_simulation.phpt | 45 +++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 src/tests/deny_writable_execution_simulation.phpt (limited to 'src/tests/deny_writable_execution_simulation.phpt') diff --git a/src/tests/deny_writable_execution_simulation.phpt b/src/tests/deny_writable_execution_simulation.phpt new file mode 100644 index 0000000..3278be8 --- /dev/null +++ b/src/tests/deny_writable_execution_simulation.phpt @@ -0,0 +1,45 @@ +--TEST-- +Readonly execution attempt (simulation mode) +--SKIPIF-- + +--INI-- +sp.configuration_file={PWD}/config/config_disable_writable_simulation.ini +--FILE-- + +--EXPECTF-- +[snuffleupagus][0.0.0.0][readonly_exec][notice] Attempted execution of a writable file (%a/writable_file.txt). +Code execution within a writable file. +Code execution within a non-writable file. +--CLEAN-- + \ No newline at end of file -- cgit v1.3