惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Y
Y Combinator Blog
D
Docker
有赞技术团队
有赞技术团队
D
DataBreaches.Net
The GitHub Blog
The GitHub Blog
爱范儿
爱范儿
H
Help Net Security
美团技术团队
MyScale Blog
MyScale Blog
B
Blog RSS Feed
C
Check Point Blog
Microsoft Security Blog
Microsoft Security Blog
阮一峰的网络日志
阮一峰的网络日志
A
About on SuperTechFans
小众软件
小众软件
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
GbyAI
GbyAI
G
Google Developers Blog
月光博客
月光博客
Google DeepMind News
Google DeepMind News
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Blog — PlanetScale
Blog — PlanetScale
MongoDB | Blog
MongoDB | Blog
F
Fortinet All Blogs

博客园 - 龙巢NET刀

Windows位图文件格式[转] Windows堆栈区别[转] 聚焦3D地形编程第五章GeomipMapping for the CLOD 聚焦3D地形编程第四章光照化地形 聚焦3D地形编程第三章纹理化地形 聚焦3D地形编程第一章 The Journey into the great Outdoors 聚焦3D地形编程第二章Terrain 101 枚举驱动器 - 龙巢NET刀 - 博客园 文件遍历目录 和InjectFile配套TestOne 激动的InjectFile 通过GUI方式打印信息 PE文件加区块 PE文件 我的简历 进度 我的经历我的历史 内嵌Lua问题 BGET内存分配器
和InjectFile配套InjectDLL - 龙巢NET刀 - 博客园
龙巢NET刀 · 2007-05-20 · via 博客园 - 龙巢NET刀

// InjectDLL.cpp : Defines the entry point for the DLL application.
//

#include "stdafx.h"
#include "InjectDLL.h"


// This is an example of an exported variable
INJECTDLL_API int nInjectDLL=0;

// This is an example of an exported function.
INJECTDLL_API int fnInjectDLL(void)
{
 return 42;
}

// This is the constructor of a class that has been exported.
// see InjectDLL.h for the class definition
CInjectDLL::CInjectDLL()
{
 return;
}

// include区
#include <iostream>
#include <ctime>
using namespace std;

// DLL文件

//变量定义区
const int g_offset = 0x3E000;
const int g_offset_virus = 20;
const int size = 260;
char szLogFileName[] = "debugInfo.log";

void __stdcall VirusEntry();
void Logout();
void InjectModule(const char* param_decFileName);


BOOL APIENTRY DllMain( HANDLE hModule,
                       DWORD  ul_reason_for_call,
                       LPVOID lpReserved
      )
{
    switch (ul_reason_for_call)
 {
  case DLL_PROCESS_ATTACH:
   break;
  case DLL_THREAD_ATTACH:
   break;
  case DLL_THREAD_DETACH:
   break;
  case DLL_PROCESS_DETACH:
   break;
    }
    return TRUE;
}

void __stdcall VirusEntry()
{
 MessageBox(NULL, "VirusEntry Microsoft", "ddd", 0);
}

// 附加到缓冲区后全部一次性输出
void Logout()
{
    //HANDLE hFile = CreateFile(szLogFileName, GENERIC_WRITE, 0, 0,
 //            OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL | FILE_FLAG_SEQUENTIAL_SCAN, NULL);
    //DWORD NumReadWrite = 0;
 //char szBuf[MAX_PATH] = "Microosft\r\nThank you all the same";

 //CloseHandle(hFile);
}

//插入模块
void InjectModule(const char* param_decFileName)
{
    
}