Exetools

Exetools (https://forum.exetools.com/index.php)
-   General Discussion (https://forum.exetools.com/forumdisplay.php?f=2)
-   -   How to get the base addresses of segment descriptors (https://forum.exetools.com/showthread.php?t=10953)

zzsx 06-22-2007 05:09

How to get the base addresses of segment descriptors
 
Hi,

Are there any ways for a user-mode program to obtain the base addresses of the segment descriptors? I have been able to get the segment limits via the "LSL" instruction, but I couldn't find any instructions to obtain the segment base address.

The Global Descriptor Table cannot be directly accessed, since it resides within the kernel memory . However, OllyDbg does be able to display the segment information in the register window. Therefore, I guess the segment base addresses should be accessible from User Mode applications. Can anyone provide any suggestions?

Thanks,

deroko 06-22-2007 10:09

Use GetThreadSelectorEntry, you may find more here about this API: hxxp://msdn2.microsoft.com/en-us/library/ms679363.aspx


All times are GMT +8. The time now is 01:14.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX