![]() |
|
#1
|
||||
|
||||
|
Using RtlAdjustPrivilege to detect debugger.
A basic way using RtlAdjustPrivilege to detect the debugger (OllyDbg and IDA demo 6.6)
As usually but not (enabled by default) for all debugger, the Debugger must acquiring debug privilege to work with its complete capacity. The snippet is simple and probably already used but I write it as simple as possible to get a clear ASM code inside the debugger. RtlAdjustPrivilege: Enables or disables a privilege from the calling thread or process. PHP Code:
Our work is to read the contents of this variable after calling RtlAdjustPrivilege with SE_DEBUG_PRIVILEGE as parameter, and of course if a status is already enabled then we have a likely debugging situation. PHP Code:
__________________
Computer Forensics |
| The Following User Says Thank You to Insid3Code For This Useful Post: | ||
nimaarek (09-09-2017) | ||
| Tags |
| rtladjustprivilege |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Detect It Easy 2.0 | hors | Community Tools | 32 | 04-21-2026 08:57 |
| Detect It Easy 0.73 | Dreamer | Community Tools | 85 | 11-03-2019 23:08 |
| Another way to detect OllyDbg and another debugger | TQN | General Discussion | 2 | 08-03-2004 09:12 |