📚 OpenRCE is preserved as a read-only archive. Launched at RECon Montreal in 2005. Registration and posting are disabled.








Flag: Tornado! Hurricane!

 Forums >>  IDA Pro  >>  IDA Plugin Development for Linux

Topic created on: March 23, 2007 09:57 CDT by engma .

I am a beginner on IDA Pro. Recently, I faced some difficulties when trying to establish and develop a plugin using IDA SDK for linux. I do my work with the instruction of the tutorial (idapw.pdf) written by Steve Micallef. In the first phase, I used the example-template.cpp as my first trial, and creat a makefile as the tutorial said. The makefile include that:

      1 SRC=template.cpp
      2 OBJS=template.o
      3 CC=g++
      4 LD=g++
      5 CFLAGS=-D__IDP__ -D__PLUGIN__ -c -D__LINUX__ \
      6       -I /root/idaadv/sdk/include $(SRC)
      7 LDFLAGS=--shared $(OBJS) -L /root/idaadv -l ida \
      8       --no-undefined -Wl,--version-script=./plugin.script
      9
     10 all:
     11        $(CC) $(CFLAGS)
     12        $(LD) $(LDFLAGS) -o myplugin.plx
     13        cp myplugin.plx /root/idaadv/plugins

However, when I try to make it, the error  was found, which made me confused. I just do it as example, without modifying anything. I need help because I cannot find the problem.

  quasar     March 23, 2007 11:56.59 CDT
error? what error?

  engma   March 24, 2007 02:48.19 CDT
The errors I encountered were that:
1. When I tried to make the Makefile file in the directory with template.cpp and plugin.script, I found that:
"makefile:11: *** missing separator.  Stop."
2. When I tried to complie template.cpp file first, using command line
-"g++ -D__IDP__ -D__PLUGIN__ -c -D__LINUX__ -I /root/idaadv/sdk/include template.cpp", the error was that:
"/root/idaadv/sdk/include/netnode.hpp:899: error: �netlink� has not been declared
/root/idaadv/sdk/include/netnode.hpp:906: error: �netlink� has not been declared
/root/idaadv/sdk/include/netnode.hpp:916: error: �netlink� has not been declared
"

What should I do? Please give me a direction

Thx~~

  antonone     March 24, 2007 13:37.21 CDT
I'm not into IDA plugin development, but I can give you a hint about the first error -- you should use TABs instead of spaces in lines 11, 12, 13. So, in your case it should be like:


11 <TAB>$(CC) $(CFLAGS)
12 <TAB>$(LD) $(LDFLAGS) -o myplugin.plx
13 <TAB>cp myplugin.plx /root/idaadv/plugins

  engma   March 25, 2007 05:25.49 CDT
Thanks a lot.
I corrected the Makefile file. For second error, I just omitted the declaration of three functions in netnode.hpp, and then created my plugin, which can function in IDA.

Note: Registration is required to post to the forums.

There are 31,328 total registered users.


Recently Created Topics
[help] Unpacking VMP...
Mar/12
Reverse Engineering ...
Jul/06
let 'IDAPython' impo...
Sep/24
set 'IDAPython' as t...
Sep/24
GuessType return une...
Sep/20
About retrieving the...
Sep/07
How to find specific...
Aug/15
How to get data depe...
Jul/07
Identify RVA data in...
May/06
Question about memor...
Dec/12


Recent Forum Posts
Finding the procedur...
rolEYder
Question about debbu...
rolEYder
Identify RVA data in...
sohlow
let 'IDAPython' impo...
sohlow
How to find specific...
hackgreti
Problem with ollydbg
sh3dow
How can I write olly...
sh3dow
New LoadMAP plugin v...
mefisto...
Intel pin in loaded ...
djnemo
OOP_RE tool available?
Bl4ckm4n


Recent Blog Entries
halsten
Mar/14
Breaking IonCUBE VM

oleavr
Oct/24
Anatomy of a code tracer

hasherezade
Sep/24
IAT Patcher - new tool for ...

oleavr
Aug/27
CryptoShark: code tracer ba...

oleavr
Jun/25
Build a debugger in 5 minutes

More ...


Recent Blog Comments
nieo on:
Mar/22
IAT Patcher - new tool for ...

djnemo on:
Nov/17
Kernel debugger vs user mod...

acel on:
Nov/14
Kernel debugger vs user mod...

pedram on:
Dec/21
frida.github.io: scriptable...

capadleman on:
Jun/19
Using NtCreateThreadEx for ...

More ...


Imagery
SoySauce Blueprint
Jun 6, 2008

[+] expand

View Gallery (11) / Submit