diff options
| author | Root THC | 2026-02-24 12:42:47 +0000 |
|---|---|---|
| committer | Root THC | 2026-02-24 12:42:47 +0000 |
| commit | c9cbeced5b3f2bdd7407e29c0811e65954132540 (patch) | |
| tree | aefc355416b561111819de159ccbd86c3004cf88 /other/shellkit/x86_noptest.c | |
| parent | 073fe4bf9fca6bf40cef2886d75df832ef4b6fca (diff) | |
initial
Diffstat (limited to 'other/shellkit/x86_noptest.c')
| -rw-r--r-- | other/shellkit/x86_noptest.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/other/shellkit/x86_noptest.c b/other/shellkit/x86_noptest.c new file mode 100644 index 0000000..3c68ce0 --- /dev/null +++ b/other/shellkit/x86_noptest.c | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | |||
| 2 | #include <stdio.h> | ||
| 3 | #include <stdlib.h> | ||
| 4 | #include "shellcode.h" | ||
| 5 | #include "x86_bsd.h" | ||
| 6 | |||
| 7 | |||
| 8 | typedef void (* func_ptr)(void); | ||
| 9 | |||
| 10 | int | ||
| 11 | main (int argc, char *argv[]) | ||
| 12 | { | ||
| 13 | func_ptr fp; | ||
| 14 | unsigned char nopspace[20480]; | ||
| 15 | |||
| 16 | x86_nop (nopspace, sizeof (nopspace), "\x25\x0d\x0a\x00", 4); | ||
| 17 | nopspace[sizeof (nopspace) - 1] = '\xcc'; | ||
| 18 | |||
| 19 | fp = (func_ptr) nopspace; | ||
| 20 | fp (); | ||
| 21 | |||
| 22 | exit (EXIT_SUCCESS); | ||
| 23 | } | ||
| 24 | |||
| 25 | |||
