Log in

View Full Version : Can’t load program in OllyDbg


kapusta
October 3rd, 2004, 14:03
Hi!
I can't load simple program in OllyDbg.
System: Windows 2000

Source code of program (console application):

.386
.model flat,stdcall
.code
start:
mov eax, 2
add eax, 3
ret
end start

When I’m trying to load program in OllyDbg, there are no assembly commands in upper left window. When I press F8, debugger displays message:

dont't know how to step because memory at address 793A87B3 is not readable, try to change EIP or pass exception to rpogram

Please, help!

blabberer
October 4th, 2004, 03:33
windows 2000 will not load any program that arent linked without any imports it needs atleast one import to be linked to your source code

386
.model flat,stdcall
.code
start:
mov eax, 2
add eax, 3

<-- here use invoke ExitProcess,NULL or whatever api
ret
end start


for this to load in windows 2000

it is not a bug in ollydbg windows 2000 is stricter os than w9x

w9x may load your above code without problems even without import

kapusta
October 4th, 2004, 07:20
Thanks, oh me anon

But this code is loaded without problems in Windows XP too.

blabberer
October 5th, 2004, 03:13
winme < winxp < w95 < w98 < w2k
so you now know why