ZwSetSystemInformation的使用

本文介绍了如何使用ZwSetSystemInformation函数绕过卡巴斯基的驱动加载防御,通过该函数将驱动加载到内核空间。示例代码展示了如何设置系统信息类以执行加载和调用内核模块的过程,并提供了驱动程序源码,演示了如何挂钩和还原SSDT以绕过Inline Hook。
摘要由CSDN通过智能技术生成
實驗對象 : 卡巴 7.0.0 .125
實驗函數 :ZwSetSystemInformation
實驗內容 : 繞過卡吧裝驅動 ( 多麽恐怖的事 ), 結果將會使系統失去防禦
 
// TestKisOfZwSetSystemInformation.cpp : Defines the entry point for the console application.
//
 
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
 
// New Deployment Module for rootkit 040
// -------------------------------------
// -Greg Hoglund http://www.rootkit.com/
/*
有关ZwSetSystemInformation的用法可以参考Gary Nebbett的《Windows NT/2000 Native API //Reference》
ZwSetSystemInformation 设置影响操作系统的信息,定义如下:
NTSYSAPI
NTSTATUS
NTAPI
ZwSetSystemInformation(
     IN SYSTEM_IMFORMATION_CALSS SystemInformationClass,
     IN OUT PVOID SystemInformation,
     IN ULONG SystemInformationLength);
 
参数:
     SystemInformationClass :将被设置的系统信息的类型,值为SYSTEM_IMFORMATION_CALSS枚举的一个子集,SystemLoadAndCallImage就是
 
SystemInformation:
typedef struct _SYSTEM_LOAD_AND_CALL_IMAGE{
     UNICODE_STRING ModuleName;
} SYSTEM_LOAD_AND_CALL_IMAGE,*PSYSTEM_LOAD_AND_CALL_IMAGE;
 
     SystemInformationLength: 長度sizeof(SYSTEM_LOAD_AND_CALL_IMAGE)
 
成员:
     Module: 要加载模块的NATIVE NT格式的完整路径
 
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值