Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 04-20-2004, 17:59
auroras
 
Posts: n/a
Low level WinNT debugger

Clarification

Sorry, I wasn't being clear before. But what I really want to know is how SoftICE gets to load so early on in the Windows boot process.


Original Post:

Hi

I was wondering whether anyone knows how low level debuggers
like SoftICE work? I am trying to do something similar but
the lowest level I can get to is to write a software device
driver, which can still be debugged by SoftICE.

Last edited by auroras; 04-21-2004 at 21:31. Reason: Clarification
Reply With Quote
  #2  
Old 04-20-2004, 19:26
zEr0 zEr0 is offline
Friend
 
Join Date: Mar 2002
Posts: 27
Rept. Given: 1
Rept. Rcvd 1 Time in 1 Post
Thanks Given: 2
Thanks Rcvd at 0 Times in 0 Posts
zEr0 Reputation: 1
i think that everything is about RING mode, even SICE has your own sys driever in %SystemRoot%\system32\drivers

and my friend show me, somotime, that SICE loads up before windows and on Hercules monitor we see loading every windows modules

but inside magic of SICE is (i think) very difficult
Reply With Quote
  #3  
Old 04-20-2004, 21:13
N0P's Avatar
N0P N0P is offline
Friend
 
Join Date: Aug 2003
Location: Brno[CzechRepublic]
Posts: 92
Rept. Given: 19
Rept. Rcvd 11 Times in 10 Posts
Thanks Given: 12
Thanks Rcvd at 29 Times in 18 Posts
N0P Reputation: 11
Quote:
Originally Posted by zEr0
i think that everything is about RING mode, even SICE has your own sys driever in %SystemRoot%\system32\drivers
and some API hooking ,modifiyng registry,IDT,GDT and other...
Good start point iz learnig how icedump or iceext work from his source code ..


Sorry for my bad english iam only human ;o))
Reply With Quote
  #4  
Old 04-20-2004, 21:16
poincare
 
Posts: n/a
1. read one books..<Debugging Applications>

2. read win2k souce code in windows/windbg/*/...

3. learn some driver dev....

ok.u can design one debugger named.....XSoftice??
Reply With Quote
  #5  
Old 04-20-2004, 21:43
wenij wenij is offline
Friend
 
Join Date: Mar 2004
Posts: 13
Rept. Given: 0
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 0
Thanks Rcvd at 2 Times in 2 Posts
wenij Reputation: 0
I also suggest one good book.
"How debuggers Work",Wiley.
It tell you how the debugger works on windows and Unix .
Reply With Quote
  #6  
Old 04-20-2004, 21:48
auroras
 
Posts: n/a
I don't think Ring 0 code will help. It did back in Win9x, and that's how TRW2000 works. However, I still cannot find any alternatives to SoftICE for WinNT. The problem I see is that the people at NuMega/Compuware seems to know something about WindowsNT that is not published. I can write a low level driver that loads. However, it is not low enough because it can still be debugged by SoftICE! What I want is something that is in the same level at SoftICE, so I can see and maybe alter the loading process of Windows programmatically.

I also suggest one good book.
"How debuggers Work",Wiley.
It tell you how the debugger works on windows and Unix .

Who is the author? And more importantly, do you have a soft copy?

And does it tell you about low level debuggers, or just the application level ones (ie the ones written using the Windows Debugging API)

"Good start point iz learnig how icedump or iceext work from his source code .. "

I am unaware where you can get icedump or iceext's source code....

Last edited by JMI; 04-21-2004 at 09:16.
Reply With Quote
  #7  
Old 04-20-2004, 22:08
N0P's Avatar
N0P N0P is offline
Friend
 
Join Date: Aug 2003
Location: Brno[CzechRepublic]
Posts: 92
Rept. Given: 19
Rept. Rcvd 11 Times in 10 Posts
Thanks Given: 12
Thanks Rcvd at 29 Times in 18 Posts
N0P Reputation: 11
Quote:
Originally Posted by auroras
Quote:
"Good start point iz learnig how icedump or iceext work from his source code .. "

I am unaware where you can get icedump or iceext's source code....
.. source code is included with exe file try search google for thiz ... or try search CrudeICE it iz free clone of softICe ... EDITED > it have source code included too < sorry thiz iz not true - big mistake, sorry

Sorry iam only human ;o))

Last edited by N0P; 04-21-2004 at 17:46.
Reply With Quote
  #8  
Old 04-21-2004, 03:44
JMI JMI is offline
Leader
 
Join Date: Jan 2002
Posts: 1,627
Rept. Given: 5
Rept. Rcvd 199 Times in 99 Posts
Thanks Given: 0
Thanks Rcvd at 96 Times in 94 Posts
JMI Reputation: 100-199 JMI Reputation: 100-199
auroras:

I don't think "contributing" a certain number of posts means dividing your response into 3 posts and posting part of it every two minutes. That is called padding your post count. I've made one post out of your comments and deleted the other two.

Regards,
__________________
JMI

Last edited by JMI; 04-21-2004 at 09:18.
Reply With Quote
  #9  
Old 04-21-2004, 06:07
Barmaley
 
Posts: n/a
Look for "Debugging Applications" by John Robbins. "Inside MS Windows 2000" by David A. Solomon and Mark E. Russinovich may help you.
Reply With Quote
  #10  
Old 04-21-2004, 15:59
firstrose
 
Posts: n/a
SICE's core is a driver
Reply With Quote
  #11  
Old 04-21-2004, 16:31
zEr0 zEr0 is offline
Friend
 
Join Date: Mar 2002
Posts: 27
Rept. Given: 1
Rept. Rcvd 1 Time in 1 Post
Thanks Given: 2
Thanks Rcvd at 0 Times in 0 Posts
zEr0 Reputation: 1
so then if SICE core is kernel driver i think that it can run under ring0 privileges

by u can find some useful thing about Ring mode in very useful virus ezines from 29A labs

http://29a.host.sk/
Reply With Quote
  #12  
Old 04-21-2004, 16:34
quasar
 
Posts: n/a
Look for mamaich's BlindStudio debugger with sources on Elicz's site
Reply With Quote
  #13  
Old 04-21-2004, 19:02
auroras
 
Posts: n/a
Quote:
Originally Posted by zEr0
so then if SICE core is kernel driver i think that it can run under ring0 privileges

by u can find some useful thing about Ring mode in very useful virus ezines from 29A labs

http://29a.host.sk/

I don't think it is about whether it is a kernel driver, but rather about when SoftICE loads. SoftICE seems to always start first, and can actually debug other kernel drivers when they load. Just wondering how they manage to do that....

Re: BlindStudio

Thanks a lot!

Last edited by auroras; 04-21-2004 at 19:15.
Reply With Quote
  #14  
Old 04-21-2004, 19:36
eugene_i
 
Posts: n/a
Intel manuals will be useful as well
Reply With Quote
  #15  
Old 04-21-2004, 23:58
_kin_
 
Posts: n/a
SoftICE have at least two components ALL components load as standard
drivers:
1. siwvid.sys - mostly UI code load as SERVICE_BOOT_START driver

2. ntice.sys - SoftICE heart can load as SERVICE_BOOT_START but also
can load as SERVICE_SYSTEM_START or SERVICE_DEMAND_START drver

Most frequently ntice.sys configured as SERVICE_SYSTEM_START driver

3. Sometimes if ntice.sys load as SERVICE_BOOT_START it use third part:
siwsym.sys - SERVICE_BOOT_START driver where packed symbolic and config
info. This module used because in time when loaded SERVICE_BOOT_START drivers no file I/O services available (this drivers load by NTLDR).

P.S. Sorry for my poor english
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT +8. The time now is 03:20.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( 1998 - 2024 )