Thanks that was exactly what I was missing. Now I can start to try to implement UPX Unpacking plugin ^^
On 28 August 2011 21:44, Eduardo de la Arada <[email protected]> wrote: > Hi Robin, > > Did you add the extert plugin signature in libr/include/r_cmd.h? I think > its the step you need. > > Regards > > 2011/8/28 Robin Vossen <[email protected]> >> >> Hello, >> >> I wanted to write various small plugins for radare. Like unpacking >> UPX, hi-lighting structs and some other things. >> But my issue lies in the fact that radare is this deep dark secret >> code base and it's for me to hard to break through its thick shell. >> I can't seem to get the include right. I figured out I had to add my >> plugin to: libr/cmd/p/Makefile and plugins.def.cfg. >> Also I made the files already like so: >> robin% pwd ; ls >> /home/robin/repo/radare2/libr/cmd/p >> cmd_dummy.c cmd_dummy.d cmd_upx.c cmd_upx.d dummy.mk Makefile upx.mk >> >> But when I make I get: >> plugin.c:11:4: error: ‘r_cmd_plugin_upx’ undeclared here (not in a >> function) >> make[4]: *** [plugin.o] Error 1 >> make[4]: Leaving directory `/home/robin/repo/radare2/libr/cmd' >> make[3]: *** [all] Error 2 >> make[3]: Leaving directory `/home/robin/repo/radare2/libr/cmd' >> make[2]: *** [libs] Error 1 >> make[2]: Leaving directory `/home/robin/repo/radare2/libr' >> make[1]: *** [libr] Error 2 >> make[1]: Leaving directory `/home/robin/repo/radare2' >> make: *** [all] Error 2 >> >> Sounds to me like I forgot something. When I looked at plugin.c line >> 11 I noticed it held a define there where I assume the given plugins >> will get stored in some kind of data format. >> Anyway, where should I add the definition for my plugin as well? What >> did I overlook? >> >> Small extra node, I am missing a PayPal donate button on the Radare >> webpage.. ? >> >> -- >> Kind Regards, >> Robin Vossen >> >> Please avoid sending me Word, Excel or PowerPoint attachments. See >> http://www.gnu.org/philosophy/no-word-attachments.html >> _______________________________________________ >> radare mailing list >> [email protected] >> http://lists.nopcode.org/listinfo.cgi/radare-nopcode.org > > > _______________________________________________ > radare mailing list > [email protected] > http://lists.nopcode.org/listinfo.cgi/radare-nopcode.org > > -- Kind Regards, Robin Vossen Please avoid sending me Word, Excel or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html _______________________________________________ radare mailing list [email protected] http://lists.nopcode.org/listinfo.cgi/radare-nopcode.org
