加载第一个rootkit
来源:互联网 发布:origin软件绘图 编辑:程序博客网 时间:2024/06/16 06:41
源代码如下,mydriver.c:
#include "ntddk.h"VOID CleanUp(IN PDRIVER_OBJECT pDriverObject);NTSTATUS DriverEntry(IN PDRIVER_OBJECT TheDriverObject, IN PUNICODE_STRING TheRegistryPath){DbgPrint("This is my first driver baby!!");TheDriverObject->DriverUnload = CleanUp;return STATUS_SUCCESS;}// This is the UnLoad RoutineVOID CleanUp(IN PDRIVER_OBJECT pDriverObject){DbgPrint("CleanUp routine called");}
在C盘新建一个目录rootkit,然后把mydriver.c放到该目录,新建一个文件,名为SOURCES,无扩展名,内容如下:
TARGETNAME=MYDRIVERTARGETPATH=OBJTARGETTYPE=DRIVERSOURCES=mydriver.c
然后点击“开始”-“所有程序”-“Windows Driver Kits”-“WDK 7600.16385.1”-“Build Environments”-“Windows XP”-“x86 Checked Build Environment”:
OACR monitor running alreadyC:\WINDDK\7600.16385.1>cd C:\rootkitC:\rootkit>buildBUILD: Compile and Link for x86BUILD: Loading c:\winddk\7600.16385.1\build.dat...BUILD: Computing Include file dependencies:BUILD: Start time: Sun Jul 21 14:34:00 2013BUILD: Examining c:\rootkit directory for files to compile. c:\rootkit Invalidating OACR warning log for 'root:x86chk'BUILD: Saving c:\winddk\7600.16385.1\build.dat...BUILD: Compiling and Linking c:\rootkit directoryConfiguring OACR for 'root:x86chk' - <OACR on>_NT_TARGET_VERSION SET TO WINXPCompiling - mydriver.cLinking Executable - objchk_wxp_x86\i386\mydriver.sysBUILD: Finish time: Sun Jul 21 14:34:10 2013BUILD: Done 3 files compiled 1 executable builtC:\rootkit>
在目录C:\rootkit\objchk_wxp_x86\i386,生成了MYDRIVER.sys,还有其他一些文件。
准备一台XP的虚拟机,把MYDRIVER.sys放到虚拟机里。
在http://www.osronline.com/article.cfm?article=157下载osrloader,先要用电子邮件进行注册。
在http://download.sysinternals.com/files/DebugView.zip下载debugview。
把osrloader和debugview都放到XP虚拟机里,然后打开debugview,用osrloader加载MYDRIVER.sys,并且注册服务,启动服务,这时,并不会输出DbgPrint里的信息,因为还没重启XP。重启XP后,就会看到输出了:
- 加载第一个rootkit
- 用SystemLoadAndCallImage加载Rootkit
- 用SystemLoadAndCallImage加载Rootkit
- 我的第一个RootKit,支持XP、Vista、Win7、Win8 RTM 32位
- (转载)用SystemLoadAndCallImage加载Rootkit
- C++服务加载rootkit驱动
- uclinux第一个用户程序的加载
- 第一个hello word 驱动加载失败--------
- 编译第一个驱动,加载点亮LED
- rootkit
- RootKit
- rootkit
- Rootkit
- rootkit
- Rootkit
- 第一个驱动helloworld module加载i…
- 第一个驱动helloworld module加载i…
- Android TabHost设置不加载第一个tab
- hdu 1664 BFS + 数论
- msp430单片机之时钟模块
- mutex与semaphore的区别
- UVaOJ10820 - Send a Table
- 【绿色易维PHP代码加密专家1.3下载】
- 加载第一个rootkit
- hdu1026 Ignatius and the Princess I BFS
- HTML中的相对路径与绝对路径
- ok6410学习笔记(19.块设备驱动程序设计)
- AfxGetApp()及相关拓展
- 【rmzt:火影忍者佩恩动漫主题】
- Java 多线程的同步
- 【xinfanqie】高手分享:Word技巧:鲜为人知的多级符号列表设置
- FCL应用技巧之------如何设置ListView控件中的列头、SubItem单元的颜色