首页
社区
课程
招聘
[讨论]无视DebugPort清零
2011-5-4 20:11 9579

[讨论]无视DebugPort清零

2011-5-4 20:11
9579
可行否。。

实现太琐碎了,不行不写了

DEBUG_OBJECT g_DebugObject; //only Debugger! just for test.

//
//HookRoutine of DbgkForwardException
//
BOOLEAN
DbgForwardException(
    IN PEXCEPTION_RECORD ExceptionRecord,
    IN BOOLEAN DebugException, 		 
    IN BOOLEAN SecondChance
    )
{
	BOOLEAN	Handled = FALSE;

	if(!DebugException)
		return OrgDbgForwardException(ExceptionRecord,DebugException,SecondChange);
	//
	//Queue the DebugEvent  and Wakeup the Debugger
	//

	//
	//Wait For DebugEvent->ContinueEvent
	//

	//
	//return whether the Exception was Handled
	//TRUE	-  handled
	//

	return Handled;
}


//
//HookRoutine of NtWaitForDebugEvent
//
NTSTATUS
DbgWaitForDebugEvent (
    IN HANDLE DebugObjectHandle,
    IN BOOLEAN Alertable,
    IN PLARGE_INTEGER Timeout OPTIONAL,
    OUT PDBGUI_WAIT_STATE_CHANGE WaitStateChange
    )
{
	NTSTATUS Status;
  	KPROCESSOR_MODE PreviousMode = ExGetPreviousMode();
   	PDEBUG_OBJECT DebugObject = &g_DebugObject;

	//
	//Waiting For wakeup
	//

	//
	//Get DebugEvent and Convert to WaitStateChange
	//

	return	Status;
}

//
//HookRoutine of NtDebugContinue
//
NTSTATUS
DbgDebugContinue (
    IN HANDLE DebugObjectHandle,
    IN PCLIENT_ID ClientId,
    IN NTSTATUS ContinueStatus
    )
{
	//
	//wakeup the Debuggee
	//
}

//
//HookRoutine of NtCreateDebugObject
//
NTSTATUS
DbgCreateDebugObject (
    OUT PHANDLE DebugObjectHandle,
    IN ACCESS_MASK DesiredAccess,
    IN POBJECT_ATTRIBUTES ObjectAttributes,
    IN ULONG Flags
    )
{
	//
	//initialize the g_DebugObject and just return Success
	//
}

//
//HookRoutine of NtDebugActiveProcess
//
NTSTATUS
DbgDebugActiveProcess (
    IN HANDLE ProcessHandle,
    IN HANDLE DebugObjectHandle
    )
{
	//
	//initialize the g_DebugObject and just return Success
	//
}

[培训]《安卓高级研修班(网课)》月薪三万计划,掌握调试、分析还原ollvm、vmp的方法,定制art虚拟机自动化脱壳的方法

收藏
点赞6
打赏
分享
最新回复 (10)
雪    币: 1644
活跃值: (53)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
yodamaster 2011-5-4 20:25
2
0
虽然不明白是什么, 仍然支持下。
雪    币: 71
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
mumaren 2011-5-4 20:31
3
0
真的不是太明白
雪    币: 18
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
jjyysbj 2011-5-5 12:55
4
0
没有文字说明?
雪    币: 33
活跃值: (11)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
PEBOSS 2011-5-5 14:04
5
0
标题后面再加个可行否嘛
雪    币: 1602
活跃值: (14)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
panti 2011-5-7 15:40
6
0
有人研究了。ms只有1000水帖的人会
雪    币: 242
活跃值: (418)
能力值: ( LV11,RANK:188 )
在线值:
发帖
回帖
粉丝
XPoy 3 2011-5-8 02:47
7
0
请ida->produce file->create c file  V大大发出来的带pdb的AGP :P!
雪    币: 33
活跃值: (11)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
PEBOSS 2011-5-8 13:16
8
0
AGP 何在?
雪    币: 406
活跃值: (151)
能力值: ( LV7,RANK:110 )
在线值:
发帖
回帖
粉丝
小小的心 2 2011-5-8 13:50
9
0
marked~
雪    币: 8014
活跃值: (3172)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
ldljlzw 2011-5-14 11:42
10
0
不知道什么意思!!!!!!!!
雪    币: 67
活跃值: (91)
能力值: ( LV6,RANK:80 )
在线值:
发帖
回帖
粉丝
长风傲天 1 2011-5-15 11:12
11
0
模仿AGP思路,自己维护调适过程,但是楼主貌似没处理干净诶…看看wrk你就晓得了~^_^
游客
登录 | 注册 方可回帖
返回