I have been playing a bit with Lua.. In friday I wrote a vapi interface
for vala:

 http://live.gnome.org/Vala/LuaSample

After having some fun with it I have decided to make LUA the default
scripting language for radare. It is implemented as a hack like the
other language bindings, but I plan to center my efforts on this plugin.

So, the radare API for scripting will be defined in LUA in first instance,
and maybe later in python and perl.

Here's a sample program written in lua for radare:

-- this is just an example, it is not yet implemented, (it will for 0.9.4 
release) --

r.open("dbg:///bin/ls")
r.cmd("!bp entry");
r.cmd("!cont");

while 1 do
        r.cmd("!contsc")
        if r.cmp("4 @ [esp]") then
                print "I found a breakpoint here"
        end     
end     

r.exit()

------------------

Keep tuned ;) I'm doing some internal changes for stability and code cleanup.

Have fun!

  --pancake
_______________________________________________
radare mailing list
[email protected]
https://lists.nopcode.org/mailman/listinfo/radare

Reply via email to