![]() |
Retrieving command line and hooking from kernel |
Post Reply
|
| Author | ||
Diablo
Senior Member
Joined: 16 July 2008 Location: Western Sahara Online Status: Offline Posts: 251 |
Post Options
Quote Reply
Topic: Retrieving command line and hooking from kernelPosted: 02 August 2008 at 10:15am |
|
Hi Murugan, For you task is required to obtain process command line from PEB. This can be done by combination of the KeStackAttachProcess, KeStackDettachProcess and reading PEB->RTL_PROCESS_PARAMETERS block values. For your second task is required code injection with help of APC (search through this forum for workable solution, I don't remember where I posted it before ).
I've no idea what this means. 1==1 because 1 != 1
Edited by Diablo - 02 August 2008 at 10:18am |
||
![]() |
||
nanothyll
Newbie
Joined: 12 May 2008 Location: China Online Status: Offline Posts: 28 |
Post Options
Quote Reply
Posted: 12 June 2008 at 10:33am |
|
|
yes, i suggest you to use user mode code.
what you want: theoretically, it's impossible. theoretically, it's possible. it means that : yes, you could implement it but it's very hard and should use more difficult tricks! |
||
|
Walking in the rain, no one knows I am crying.
|
||
![]() |
||
ring0
Newbie
Joined: 09 June 2008 Location: India Online Status: Offline Posts: 18 |
Post Options
Quote Reply
Posted: 11 June 2008 at 9:09am |
|
|
Both requirements can be achieved using a userland hook.
Go thru Advanced Windows programming by Jeffrey Ritcher.
|
||
|
Cheers
- Ring0 |
||
![]() |
||
Murugan
Newbie
Joined: 11 June 2008 Location: Singapore Online Status: Offline Posts: 13 |
Post Options
Quote Reply
Posted: 11 June 2008 at 7:44am |
|
|
I need samples to achieve both.
Thanks in advance. |
||
![]() |
||
PROROOTECT
Senior Member
Joined: 06 April 2008 Location: Fort Lee, NJ .. Online Status: Offline Posts: 559 |
Post Options
Quote Reply
Posted: 11 June 2008 at 7:30am |
|
|
KX-Ray , ESET SysInspector , Process Explorer ?
|
||
![]() |
||
Murugan
Newbie
Joined: 11 June 2008 Location: Singapore Online Status: Offline Posts: 13 |
Post Options
Quote Reply
Posted: 11 June 2008 at 7:12am |
|
|
Can any one help as to how I can obtain
1, retrieving command line of a process 2, hook a DLL to that process My application is a SSDT based hook driver. Thanks in advance. |
||
![]() |
||
Post Reply
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |