文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > 工程科技 > 建筑/土木 > 进程隐藏的源代码
侵权投诉

进程隐藏的源代码

进程隐藏的源代码

ProcessHide.h

代码:
#ifndef __PROCESSHIDE_H__
#define __PROCESSHIDE_H__

#ifdef __cplusplus
extern "C" {
#endif

#include <ntddk.h>

/*
使用之前请先调用InitializeCommonVariables初始化全局变量
*/

typedef struct _HANDLE_TABLE_ENTRY {

//
// The pointer to the object overloaded with three ob attributes bits in
// the lower order and the high bit to denote locked or unlocked entries
//

union {

PVOID Object;

ULONG ObAttributes;
};

//
// This field either contains the granted access mask for the handle or an
// ob variation that also stores the same information. Or in the case of
// a free entry the field stores the index for the next free entry in the
// free list. This is like a FAT chain, and is used instead of pointers
// to make table duplication easier, because the entries can just be
// copied without needing to modify pointers.
//

union {

union {

ACCESS_MASK GrantedAccess;

struct {

USHORT GrantedAccessIndex;
USHORT CreatorBackTraceIndex;
};
};

LONG NextFreeTableEntry;
};

} HANDLE_TABLE_ENTRY, *PHANDLE_TABLE_ENTRY;

typedef struct _HANDLE_TABLE {

//
// A set of flags used to denote the state or attributes of this
// particular handle table
//

ULONG Flags;

//
// The number of handle table entries in use.
//

LONG HandleCount;

//
// A pointer to the top level handle table tree node.
//

PHANDLE_TABLE_ENTRY **Table;

//
// The process who is being charged quota for this handle table and a
// unique process id to use in our callbacks
//

struct _EPROCESS *QuotaProcess;
HANDLE UniqueProcessId;

//
// This is a singly linked list of free table entries. We don't actually
// use pointers, but have each store the index of the next free entry
// in the list. The list is managed as a lifo list. We also keep track
// of the next index that we have to allocate pool to hold.
//

LONG FirstFreeTableEntry;
LONG NextIndexNeedingPool;

//
// This is the lock used to protect the fields in the record, and the
// handle table tree in general. Individual handle table entries that are
// not free have their own lock
//

ERESOURCE HandleTableLock;

//
// The list of global handle tables. This field is protected by a global
// lock.
//

LIST_ENTRY HandleTableList;

//
// The following field is used to loosely synchronize thread contention
// on a handle. If a thread wants to wait for a handle to be unlocked
// it will wait on this event with a short timeout. Any handle unlock
// operation will pulse this event if there are threads waiting on it
//

KEVENT HandleContentionEvent;
} HANDLE_TABLE, *PHANDLE_TABLE;

typedef BOOLEAN (*EX_ENUMERATE_HANDLE_ROUTINE)(
IN PHANDLE_TABLE_ENTRY HandleTableEntry,
IN HANDLE Handle,
IN PVOID EnumParameter
);

typedef BOOLEAN (*__ExEnumHandleTable)(
IN PHANDLE_TABLE HandleTable,
IN EX_ENUMERATE_HANDLE_ROUTINE EnumHandleProcedure,
IN PVOID EnumParameter,
OUT PHANDLE Handle OPT

第1页

你可能喜欢

热门文档

相关文档

  • 利用SSDT-hook实现进程隐藏源代码

    利用SSDT-hook实现进程隐藏源代码_IT/计算机_专业资料。本文档以完全源代码的方式展现了如何利用挂接ssdt技术实现进程隐藏#include "ntddk.h" #include "stdarg...

  • 信息隐藏程序代码汇总

    信息隐藏程序代码汇总_计算机软件及应用_IT/计算机_专业资料。信息隐藏程序代码汇总 信息隐藏程序代码汇总以下三个函数是关于DCT的:函数1: %函数功能:本函数用于DCT...

  • 信息隐藏程序代码

    信息隐藏程序代码_天文/地理_自然科学_专业资料。信息隐藏程序代码 信息隐藏程序代码以下三个函数是关于 DCT 的: 函数 1: %函数功能:本函数用于 DCT 隐藏信息的...

  • [C]隐藏进程代码

    [C]隐藏进程代码_互联网_IT/计算机_专业资料。隐藏进程//HideProcess.h #... 隐藏任意进程 10页 免费 进程隐藏的源代码 4页 免费 将你的进程统统隐藏 ...

  • GeekOS 内核进程源代码

    linux内核源代码分析-进... 43页 1下载券 进程隐藏的源代码 4页 免费 ...Ch2 GeekOS进程源代码分析及 GeekOS进程源代码分析及 实验教师:赵艳红 Zhao....

  • 把文件隐藏在图片里(最新版)使用说明及其源程序和代码

    并且提供源程序和代码!!把文件藏在图片里 最新改进我们有时候需要把文件隐藏起来, 常规的方法可能不是很安全, 网上有些软件甚至带有病毒 木马,该程序有可能被...

  • 【论文】巧用源代码揪出网页中隐藏的宝贝

    巧用源代码揪出网页中隐藏的宝贝_专业资料。有经验的网友们可能都会使用网页源代码来寻找一些被隐藏了下载地址的在线电影、Flash、音乐等。而通过记事本打开网页源...

  • 程序源代码

    飞思卡尔 程序 仅供学习飞思卡尔 程序 仅供学习隐藏>> 程序源代码 中国民航大学三队 附件 A #include <hidef.h> /* common defines and macros */ /* ...

  • 进程管理源代码

    操作系统课程设计 进程管理 源代码操作系统课程设计 进程管理 源代码隐藏>> #include"stdio.h" int m1,m2,i,ep,num; struct{int id; char status; int ...

  • 隐藏网页源代码汇总

    隐藏网页源代码汇总_农学_高等教育_教育专区。隐藏网页源代码汇总...的认证程序,SQL 的安全技术,ASP 安全认 证程序,Java Applet 安全认证程序等...

站点地图 | 文档上传 | 侵权投诉 | 手机版
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email