2 comments on “ثغرة فكيرنل اللينكس تتيح لك الدخول للروت

  1. السلام عليكم

    لماذا لا استطيع ان اقوم بعمل كمايل للثغرة الكمبايلر يخرج لي الكثير من الاخطاء في شيفرة المصدر للمف

    mempodipper.c:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘code’
    mempodipper.c:3:3: error: invalid preprocessing directive #Exploit
    mempodipper.c:4:3: error: invalid preprocessing directive #Date
    mempodipper.c:5:3: error: invalid preprocessing directive #Author
    mempodipper.c:6:3: error: invalid preprocessing directive #Tested
    mempodipper.c:7:3: error: invalid preprocessing directive #Platform
    mempodipper.c:8:3: error: invalid preprocessing directive #Category
    mempodipper.c:9:3: error: invalid preprocessing directive #CVE
    mempodipper.c:27:20: warning: extra tokens at end of #include directive
    In file included from /usr/include/stdio.h:75,
    from mempodipper.c:27:
    /usr/include/libio.h:332: error: expected specifier-qualifier-list before ‘size_t’
    /usr/include/libio.h:364: error: expected declaration specifiers or ‘…’ before ‘size_t’
    /usr/include/libio.h:373: error: expected declaration specifiers or ‘…’ before ‘size_t’
    /usr/include/libio.h:495: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_IO_sgetn’
    In file included from mempodipper.c:27:
    /usr/include/stdio.h:296: error: expected declaration specifiers or ‘…’ before ‘size_t’
    /usr/include/stdio.h:302: error: expected declaration specifiers or ‘…’ before ‘size_t’
    /usr/include/stdio.h:314: error: expected declaration specifiers or ‘…’ before ‘size_t’
    /usr/include/stdio.h:321: error: expected declaration specifiers or ‘…’ before ‘size_t’
    /usr/include/stdio.h:363: error: expected declaration specifiers or ‘…’ before ‘size_t’
    /usr/include/stdio.h:365: error: format string argument not a string type
    /usr/include/stdio.h:367: error: expected declaration specifiers or ‘…’ before ‘size_t’
    /usr/include/stdio.h:639: error: expected declaration specifiers or ‘…’ before ‘size_t’
    /usr/include/stdio.h:642: error: expected declaration specifiers or ‘…’ before ‘size_t’
    /usr/include/stdio.h:652: error: expected declaration specifiers or ‘…’ before ‘size_t’
    /usr/include/stdio.h:682: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fread’
    /usr/include/stdio.h:688: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fwrite’
    /usr/include/stdio.h:710: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fread_unlocked’
    /usr/include/stdio.h:712: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fwrite_unlocked’
    mempodipper.c: In function ‘send_fd’:
    mempodipper.c:31: error: storage size of ‘iov’ isn’t known
    mempodipper.c:32: error: storage size of ‘msg’ isn’t known
    mempodipper.c:34: error: storage size of ‘addr’ isn’t known
    mempodipper.c:38: error: ‘AF_UNIX’ undeclared (first use in this function)
    mempodipper.c:38: error: (Each undeclared identifier is reported only once
    mempodipper.c:38: error: for each function it appears in.)
    mempodipper.c:38: error: ‘SOCK_STREAM’ undeclared (first use in this function)
    mempodipper.c:40: warning: incompatible implicit declaration of built-in function ‘memset’
    mempodipper.c:42: warning: incompatible implicit declaration of built-in function ‘strncpy’
    mempodipper.c:42: error: ‘socket_path’ undeclared (first use in this function)
    mempodipper.c:51: error: ‘caddr_t’ undeclared (first use in this function)
    mempodipper.c:51: error: expected ‘;’ before ‘cms’
    mempodipper.c:54: error: dereferencing pointer to incomplete type
    mempodipper.c:55: error: dereferencing pointer to incomplete type
    mempodipper.c:55: error: ‘SOL_SOCKET’ undeclared (first use in this function)
    mempodipper.c:56: error: dereferencing pointer to incomplete type
    mempodipper.c:56: error: ‘SCM_RIGHTS’ undeclared (first use in this function)
    mempodipper.c:57: warning: incompatible implicit declaration of built-in function ‘memmove’
    mempodipper.c:57: warning: passing argument 1 of ‘memmove’ makes pointer from integer without a cast
    mempodipper.c:57: note: expected ‘void *’ but argument is of type ‘int’
    mempodipper.c: In function ‘recv_fd’:
    mempodipper.c:70: error: storage size of ‘iov’ isn’t known
    mempodipper.c:71: error: storage size of ‘msg’ isn’t known
    mempodipper.c:73: error: storage size of ‘addr’ isn’t known
    mempodipper.c:75: error: ‘AF_UNIX’ undeclared (first use in this function)
    mempodipper.c:75: error: ‘SOCK_STREAM’ undeclared (first use in this function)
    mempodipper.c:77: warning: incompatible implicit declaration of built-in function ‘memset’
    mempodipper.c:79: warning: incompatible implicit declaration of built-in function ‘strncpy’
    mempodipper.c:79: error: ‘socket_path’ undeclared (first use in this function)
    mempodipper.c:94: error: ‘caddr_t’ undeclared (first use in this function)
    mempodipper.c:94: error: expected ‘;’ before ‘cms’
    mempodipper.c:101: warning: incompatible implicit declaration of built-in function ‘memmove’
    mempodipper.c:101: warning: passing argument 2 of ‘memmove’ makes pointer from integer without a cast
    mempodipper.c:101: note: expected ‘const void *’ but argument is of type ‘int’
    mempodipper.c: In function ‘main’:
    mempodipper.c:112: error: ‘O_RDWR’ undeclared (first use in this function)
    mempodipper.c:150: error: ‘ULONG_MAX’ undeclared (first use in this function)
    mempodipper.c:163: warning: incompatible implicit declaration of built-in function ‘strstr’
    mempodipper.c:187: warning: incompatible implicit declaration of built-in function ‘execl’
    mempodipper.c:192: warning: incompatible implicit declaration of built-in function ‘execl’

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s