diff options
author | toni <matzeton@googlemail.com> | 2014-01-15 17:26:00 +0100 |
---|---|---|
committer | toni <matzeton@googlemail.com> | 2014-01-15 17:26:00 +0100 |
commit | a0c08ee7c9de75e7674eee76df532c5da7adc03a (patch) | |
tree | 176dddb38d42f4a2fa3af57fe359eccfc7cc985b /disable_prot.sh | |
parent | 426b0d1883a4c83ba862ec7b3ffed7154a63d494 (diff) |
simple strcpy() exploit works
Diffstat (limited to 'disable_prot.sh')
-rwxr-xr-x | disable_prot.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/disable_prot.sh b/disable_prot.sh new file mode 100755 index 0000000..16498a3 --- /dev/null +++ b/disable_prot.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +if [ `id -u` -ne 0 ]; then + echo "$0: This program should be run as root" +fi + +sysctl -w kernel.randomize_va_space=0 2>/dev/null +sysctl -w kernel.exec-shield=0 2>/dev/null + |