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.h | |
| parent | 073fe4bf9fca6bf40cef2886d75df832ef4b6fca (diff) | |
initial
Diffstat (limited to 'other/shellkit/x86.h')
| -rw-r--r-- | other/shellkit/x86.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/other/shellkit/x86.h b/other/shellkit/x86.h new file mode 100644 index 0000000..f902a38 --- /dev/null +++ b/other/shellkit/x86.h | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | |||
| 2 | #ifndef X86_H | ||
| 3 | #define X86_H | ||
| 4 | |||
| 5 | #define x86_TERMINATOR "\x78\x56\x34\x12" | ||
| 6 | |||
| 7 | |||
| 8 | /* x86_nop | ||
| 9 | * | ||
| 10 | * generate `dest_len' bytes of nopspace at `dest', which does not contain | ||
| 11 | * any of the characters in `bad', which is `bad_len' bytes long. | ||
| 12 | * | ||
| 13 | * return number of bytes generated | ||
| 14 | */ | ||
| 15 | |||
| 16 | unsigned int | ||
| 17 | x86_nop (unsigned char *dest, unsigned int dest_len, | ||
| 18 | unsigned char *bad, int bad_len); | ||
| 19 | |||
| 20 | #endif | ||
| 21 | |||
