1

I am debugging a program that reads an environment variable. So far, I could not find how to launch it in Immunity/Olly with a custom environment.

Anybody know how this can be done?

2 Answers 2

1

Child Inherits Parents Environment

   cmd /k set myenvironment=someenvironment & <path>ollydbg.exe  <path> debuggee.exe
1
  • Thanks that worked for me. Too bad olly cannot pass a custom env to the debuggee
    – John Nemo
    Jun 4, 2014 at 12:56
1

As an alternative to blabb's answer, if you'd like to set the environment variable via a GUI, you can use http://www.codeproject.com/Articles/32131/Dynamically-Add-Edit-Environment-Variables-of-Remo

Your Answer

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

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