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

推荐订阅源

The GitHub Blog
The GitHub Blog
Engineering at Meta
Engineering at Meta
博客园 - 聂微东
博客园 - Franky
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
雷峰网
雷峰网
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
L
LangChain Blog
WordPress大学
WordPress大学
H
Help Net Security
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Y
Y Combinator Blog
Blog — PlanetScale
Blog — PlanetScale
MyScale Blog
MyScale Blog
IT之家
IT之家
酷 壳 – CoolShell
酷 壳 – CoolShell
罗磊的独立博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
有赞技术团队
有赞技术团队
Apple Machine Learning Research
Apple Machine Learning Research
云风的 BLOG
云风的 BLOG
博客园 - 【当耐特】
P
Proofpoint News Feed
D
DataBreaches.Net

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