View Full Version : Multiple stepping instructions in a script
mimas
June 24th, 2004, 02:15
I'm trying to add a LUA support (an embeded language, www.lua.org) ("http://www.lua.org)") to Ollydbg within a plugin, and I've got an error in multiple stepping instructions (in my script StepIn, StepOver). It seems that Ollydbg cannot handle them all. I have to wait until Getstatus() reports STAT_STOPPED to throw another stepping instructions, but I have no control on the script when its launched. I tried a loop while(Getstatus()!=STAT_STOPPED) {}, and a WaitForSingleObject() calls but it doesn't work: the first one makes Ollydbg busy for a while, the second (just a test) does nothing.
I also tried Sendshortcut to send F7 or F8 => just a single step.
Any ideas to make stepping instructions waiting until the end of Ollydbg work ?
psyCK0
June 24th, 2004, 03:57
That's exactly why I didn't use Active Scripting (or LUA for that matter) when writing OllyScript. The synchronization issues are harder to handle then just writing a custom scripting implementation...
BTW, what exactly do you miss in OllyScript that makes you want to write a new plugin? Or are you just doing it for the fun of it? =)
mimas
June 24th, 2004, 06:04
Ollyscript is perfect.
I have downloaded LUA a few days ago, and I wanna some LUA practices, so I told to myself: "Well, an Ollydbg plugin seems to be an interessant stuff too, mix 'em!". It could be another tool, it was Ollydbg (I don't know why

).
psyCK0
June 24th, 2004, 06:10
Good luck then! =) The issue here is the debug loop... I think focht had a nice explanation for this, maybe you can find that thread.
mimas
June 24th, 2004, 08:08
Thanks. I saw some interesting threads on the forum about this. But I haven't still no idea how to run the script synchronously 8|. I just can see the debugevents now, that's a good start

Powered by vBulletin® Version 4.2.2 Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.