4

I'm trying to solve the Sharif CTF 2016 HI2.exe challenge. This challenge requires a specific (impossible to reach) environment (64 processors, 128GB RAM, ...) to display the flag. As the executable is packed with VMProtect, the best alternative seems to hook functions responsible for the environment specification checks, and modify their return values at run time. I'm using OllyDbg with the StrongOD plugin. I have documented all details here: https://www.aldeid.com/wiki/SharifCTF-2016/hi.

I have achieved the first step (I have modified values of the SYSTEM_INFO structure manipulated by the GetSystemInfo function) but failed to reach my second breakpoint, set on the GlobalMemoryStatusEx function. The program displays the following error message before my 2nd BP is reached: A debugger has been found running on your system.

I have tried to play with a few options from the StrongOD plugin (HidePEB, KernelMode, SkipSomeExceptions) but it either doesn't change anything or crashes the executable before the 2nd BP.

How can I achieve this goal? How should I configure OllyDbg and/or StronOD to prevent the program from knowing it's being debugged?

Many thanks in advance for your help.

1
  • You should try investigating what exacly the executable detects instead of blindly turning anti-debugging features on/off.
    – NirIzr
    Sep 6, 2016 at 16:14

2 Answers 2

1

StrongOD can have unexpected behaviour if you are using Win7 as your debugging environment. Try to use ScyllaHide plugin with the VMProtect profile on, ignore Invalid or privileged instruction exception in the debugging options.

1

If there's no way to debug it, use system mechanisms to load your DLL into protected process, then do whatever you like.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.