资源简介
HookNtQuery_File.zip
代码片段和文件信息
#include
#include
//从ntddk中拿出来的一些结构体定义,在ZwQueryDirectoryFile()中要用到
typedef LONG NTSTATUS;
#define NT_SUCCESS(Status) ((NTSTATUS)(Status)>=0)
//参数类型
typedef struct _IO_STATUS_BLOCK
{
NTSTATUS Status;
ULONG Information;
} IO_STATUS_BLOCK *PIO_STATUS_BLOCK;
//字符串类型
typedef struct _UNICODE_STRING
{
USHORT Length;
USHORT MaximumLength;
PWSTR Buffer;
} UNICODE_STRING *PUNICODE_STRING;
//枚举类型,主要利用FileBothDirectoryInformation
typedef enum _FILE_INFORMATION_CLASS {
FileDirectoryInformation = 1
FileFullDirectoryInformation
FileBothDirectoryInformation
FileBasicInformation
FileStandardInformation
FileInternalInformation
FileEaInformation
FileAccessInformation
FileNameInformation
FileRenameInformation
FilelinkInformation
FileNamesInformation
FileDispositionInformation
FilePositionInformation
FileFullEaInformation
FileModeInformation
FileAlignmentInformation
FileAllInformation
FileAllocationInformation
FileEndOfFileInformation
FileAlternateNameInformation
FileStreamInformation
FilePipeInformation
FilePipeLocalInformation
FilePipeRemoteInformation
FileMailslotQueryInformation
FileMailslotSetInformation
FileCompressionInformation
FileobjectIdInformation
FileCompletionInformation
FileMoveClusterInformation
FileQuotaInformation
FileReparsePointInformation
FileNetworkOpenInformation
FileAttributeTagInformation
FileTrackingInformation
FileMaximumInformation
} FILE_INFORMATION_CLASS *PFILE_INFORMATION_CLASS;
typedef VOID (NTAPI *PIO_APC_ROUTINE)(
IN PVOID ApcContext
IN PIO_STATUS_BLOCK IoStatusBlock
IN ULONG Reserved);
typedef struct _FILE_BOTH_DIRECTORY_INFORMATION {
ULONG NextEntryOffset;
ULONG Unknown;
LARGE_INTEGER CreationTime;
LARGE_INTEGER LastAccessTime;
LARGE_INTEGER LastWriteTime;
LARGE_INTEGER ChangeTime;
LARGE_INTEGER EndOfFile;
LARGE_INTEGER AllocationSize;
ULONG FileAttributes;
ULONG FileNameLength;
ULONG EaInformationLength;
UCHAR AlternateNameLength;
WCHAR AlternateName[12];
WCHAR FileName[1];
} FILE_BOTH_DIRECTORY_INFORMATION*PFILE_BOTH_DIRECTORY_INFORMATION;
typedef NTSTATUS ( __stdcall *ZWQUERYDIRECTORYFILE ) (
IN HANDLE FileHandle
IN HANDLE Event OPTIONAL
IN PIO_APC_ROUTINE ApcRoutine OPTIONAL
IN PVOID ApcContext OPTIONAL
OUT PIO_STATUS_BLOCK IoStatusBlock
OUT PVOID FileInformation
IN ULONG Length
IN FILE_INFORMATION_CLASS FileInformationClass
IN BOOLEAN ReturnSingleEntry
IN PUNICODE_STRING FileName OPTIONAL
IN BOOLEAN RestartScan
);
//原始ZwQueryDirectoryFile地址
ZWQUERYDIRECTORYFILE OldZwQueryDirectoryFile = NULL;
//////////////////////////////////////////////////////////
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2010-06-30 10:44 HookNtQuery_File\
文件 7305 2010-06-30 11:28 HookNtQuery_File\HideFile.cpp
文件 4128 2010-06-30 10:45 HookNtQuery_File\HookNtQuery_File.dsp
文件 557 2010-06-30 10:45 HookNtQuery_File\HookNtQuery_File.dsw
文件 25600 2010-06-30 16:38 HookNtQuery_File\HookNtQuery_File.ncb
文件 53760 2010-06-30 16:38 HookNtQuery_File\HookNtQuery_File.opt
文件 1292 2010-06-30 16:35 HookNtQuery_File\HookNtQuery_File.plg
相关资源
- EplanP8V2.7安装破解步骤以及链接.pdf
- 2e3460f894390064a17aedaac2d31b16.txt
- EX4_TO_MQ4_2019.rar
- win10原版系统.docx
- 慕课网-微信小程序开发333.txt
- RADARSAT_wKA.rar
- 易语言POST上传文件.rar
- ArcGIS_Desktop_107_166570-DanCrack.iso.torrent
- zw_20170327165343745.zip
- 操作系统概念OSC答案.rar
- 全国各省30米分辨率dem地址.docx
- PortMonNt.rar
- VMwarevSphereDataProtection-6.1.11.txt
- 《微信小程序实战入门(第2版)》
- vm.zip
- VMwareFusionPro8.1.zip
- nginx.zip
- .NETCore3.0(sdk+hosting+desktop+runtime).z
- 9c9d010e5bca4d748e6f20059bb26652.zip
- ec8d50e379fd4299ab15857e03c77c81.zip
- ac20e9cda8b94ed3be3207f02f764c2a.zip
- 迅捷PDF转换器6.3含注册机破解版.zip
- eb37e688a1b54bf58b988e450de000d8.zip
- 028c04bb246341e0b5587080d9211e83.zip
- 毕业设计周立201531033214.zip
- d38332d5606d4442a61c7b9422beaa6b.zip
- 896b5f0a84bf4d68a58824baf0a310f8.zip
- b63d9b691c024882acc325e23390a1f4.zip
- SpreadJS破解版SpreadJS纯前端表格控件
- b3670b24b2264aa69b1d802da1862348.zip
评论
共有 条评论