摘要://测试 含有空格的文件名, 检测, 文件名内是否有空格。//另外就是使用 SEH异常处理#include #include #include using namespace std;int RetDriveTypeStr(char* szTypeStr, int nType){ char szNoType[] = "未知类型"; char szLogical[] = "硬盘驱动器"; char ...
阅读全文
摘要:// 对 选择进入子目录后 增加了一句 SetCurrentDirectory , 这样才不致于 重复枚举文件。 //搜索和感染模块//内部检索所有文件, 在内部再判断扩展名bool __stdcall SearchEntry(HWND param_ListBoxHWND, const char* param_curDir, const char* param_extendName, ...
阅读全文
摘要:// InjectDLL.cpp : Defines the entry point for the DLL application.//#include "stdafx.h"#include "InjectDLL.h"// This is an example of an exported variableINJECTDLL_API int nInjectDLL=0;// This is an ...
阅读全文
摘要://#include //using namespace std; /*int Mystrcmp(const char* s1, const char* s2){ while((*s1 != '\0') || (*s2 != '\0')) { if(*s1 != *s2){ return 0; } ++s1; ++s2; } return 1;}*/#include //#pragm...
阅读全文
摘要:#include #include #include #include using namespace std; #define SAFE_DELETE(p) { if((p)!=NULL) { delete[] (p); (p) = NULL; }} const int g_offset = 0x3E000;const int g_offset_virus = 20; ...
阅读全文
摘要:由于更改入口后就不允许调用CRT运行时库了,所以不得以改为使用图形方式输出了。 更好的方式是采用Dialog加编辑框方式。#include #include using namespace std; #pragma comment(linker, "/subsystem:WINDOWS")#pragma comment(linker, "/ENTRY:main") int main(); voi...
阅读全文
摘要:////作者: 神杀中龙 microsoftxiao@163.com//说明: 根据PE文件格式原理书写//1. 在PE信息浏览器基础上改为增加区段工具 2007-5-12 #include #include #include #include using namespace std; #define SAFE_DELETE(p) { if((p)!=NULL) { delete (p); (p)...
阅读全文
摘要:// 插入区块bool InsertSection(BYTE *decBuf){ cout<<"计算区块各参数:"; // 插入区块, 先获取OEP const int offDOSStub = 0x3C; long off_elfanew = 0; // 根据类型直接读出即可。 char szPEHead[5]; // PE00 WORD Machin...
阅读全文