Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 10-04-2005, 19:41
deXep deXep is offline
Friend
 
Join Date: Aug 2004
Posts: 42
Rept. Given: 0
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 0
Thanks Rcvd at 0 Times in 0 Posts
deXep Reputation: 0
How to hide debugger?

Hi my nice guys!

I'm working on a dumper and I cannot grab FS base via
GetThreadSelectorEntry
it returns TRUE but LDT_ENTRY is still NULL.

and I tried use address of debugger becoz all PEB is in the same address
this code works well
mov eax, fs:[30h]
inc eax
inc eax
call write_mem
but if I code like these:
mov edi, fsbase; grabbed
lea eax, [edi+30h]
call read_mem
then ReadProcessMemory return 0, last Error is PARTIALLY_COPY

I'm mad for such a strange problem

regards
Reply With Quote
  #2  
Old 10-05-2005, 00:37
JuneMouse
 
Posts: n/a
well fs is not same on all platforms (especially in xp-sp2 fs segment is mapped to random addres (it used to be constant uptill w2k -sp4 i think viz 0x7fffd000 )

you need to fetch the fs via a different mechanism viz
ZwQueryInformationProcess() basic info class struct and look for *ppeb in there

take a look here on a sample implementation

http://www.openrce.org/blog/view/44
Reply With Quote
  #3  
Old 10-05-2005, 09:57
deXep deXep is offline
Friend
 
Join Date: Aug 2004
Posts: 42
Rept. Given: 0
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 0
Thanks Rcvd at 0 Times in 0 Posts
deXep Reputation: 0
Thx JuneMouse, nice stuff!
Reply With Quote
  #4  
Old 10-06-2005, 07:04
NeOXOeN NeOXOeN is offline
Friend
 
Join Date: Jan 2005
Posts: 273
Rept. Given: 2
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 2
Thanks Rcvd at 18 Times in 18 Posts
NeOXOeN Reputation: 3
Nice Post JuneMouse ..very usefull


bye NeO
Reply With Quote
Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cant not hide debugger for Themida/Winlicense 3.X Turkuaz General Discussion 2 09-24-2020 17:15
how hide softice under w2k or xp the_beginner General Discussion 3 09-06-2004 20:51


All times are GMT +8. The time now is 15:18.


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