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

推荐订阅源

L
LangChain Blog
Recent Announcements
Recent Announcements
GbyAI
GbyAI
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Microsoft Azure Blog
Microsoft Azure Blog
N
Netflix TechBlog - Medium
人人都是产品经理
人人都是产品经理
MongoDB | Blog
MongoDB | Blog
D
DataBreaches.Net
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
WordPress大学
WordPress大学
U
Unit 42
腾讯CDC
D
Docker
The GitHub Blog
The GitHub Blog
阮一峰的网络日志
阮一峰的网络日志
Vercel News
Vercel News
I
InfoQ
Jina AI
Jina AI
爱范儿
爱范儿
宝玉的分享
宝玉的分享
博客园 - Franky
G
Google Developers Blog
P
Proofpoint News Feed

博客园 - 龙巢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)
{
    
}