aboutsummaryrefslogblamecommitdiffstats
path: root/run-shellcode.sh
blob: 5ffcf3994209f5a300d7e07e6dbd27ef7d5fcc2e (plain) (tree)
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