Jump to content
Tuts 4 You

Ruby interpreter issues


metr0

Recommended Posts

Posted

Hey,

Porting this post to the public area. Anyway, here it goes:

I've been writing a small ruby extension which provides to functions in a class, to log some text to Olly's log window and to put a MessageBox on the screen; nothing complex. I then embedded a ruby interpreter into an Olly plugin, hoping to be able to call the extension function from my script. But calling the script using the embedded ruby interpreter causes either an exception or simply doesn't work (with ruby_exec doing nothing).

If anyone has been working with an embedded ruby interpreter before: suggestions are welcome.

Regards,

metr0

Posted
Hey,

Porting this post to the public area. Anyway, here it goes:

I've been writing a small ruby extension which provides to functions in a class, to log some text to Olly's log window and to put a MessageBox on the screen; nothing complex. I then embedded a ruby interpreter into an Olly plugin, hoping to be able to call the extension function from my script. But calling the script using the embedded ruby interpreter causes either an exception or simply doesn't work (with ruby_exec doing nothing).

If anyone has been working with an embedded ruby interpreter before: suggestions are welcome.

Regards,

metr0

does the ODBGScript source help?

It has the same consept I think.

Posted

This rather seems to be a Ruby-related issue. I also tried to remove the direct dependency of OllyDbg.exe from my extension and let it resolve the APIs in the wrapper using GetProcAddress cause I thought the Ruby interpreter doesn't seem to like that, but that wasn't the problem.

Parsing the Olly library as a whole using Swig doesn't work since Swig doesn't support nested unions (yet?).

  • 2 months later...
Posted

haven't worked with an embedded ruby interpreter before else i would have helped

i can look into it if you are willing to send the plugin

anyways it would be a nice plugin

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...