CreateRemoteThread 远程注入

本文详细介绍了如何利用CreateRemoteThread函数实现在目标进程中进行DLL远程注入的技术,结合反编译知识,讲解了从创建钩子到实现DLL注入的完整过程,涉及到的关键文件包括dllmain.cpp、te.cpp等。
摘要由CSDN通过智能技术生成

 

反编译用

跟钩子写在同一个dll了 钩子篇:SetWindowsHookEx

 

pch.h

#ifndef PCH_H
#define PCH_H
#define _DLLAPI
#define _CRT_SECURE_NO_WARNINGS
// 添加要在此处预编译的标头
#include "te.h"
#include <stdio.h>

 

dll :

te.h

#pragma once

#ifdef  _DLLAPI
	#define DLLAPI extern "C"  __declspec(dllexport)
#else
	#define DLLAPI extern "C"  __declspec(dllimport)
#endif

DLLAPI BOOL install_hook();

DLLAPI BOOL uninstall_hook();


DLLAPI int enableDebugPriv(const TCHAR * name);

DLLAPI int fuck_it(DWORD pid);

te.cpp


#include "pch.h"
#include <stdlib.h>

#pragma data_seg("shared_data")
HHOOK hook = 0;
FILE* pFile = 0;
#pragma data_seg()
#pragma comment(linker,"/section:s
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值