aboutsummaryrefslogtreecommitdiffstats
path: root/run-shellcode.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-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