📚 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  >>  Correct Use of Function flags:library Function

Topic created on: May 1, 2007 08:46 CDT by stahl .

Hello everyone,

i am trying to figure out a way to automatically get a list of functions, that have actually been written by the programmer of an program.

i tried to get the function flags of a func_t and check whether "library function is set".

sadly, for all functions, the flag is never set (i compiled a small program with 2 "real" functions and about 20 linked and compiled in library functions)

so is there an automatic way of getting the "real" functions?

here is an example:
ea = get_screen_ea()

func = get_func(ea)
funcFlags = func.flags

if funcFlags & 0x00000004 is not 0:
    print "library function"

  Nevar     May 1, 2007 09:37.58 CDT
have u applied the relevant flirt signatures so that ida may recognise any library functions before checking the flags?

-nevar

  stahl   May 1, 2007 15:56.42 CDT
no i haven�t.

i am not familiar with flirt signatures yet. so, is this the necessary thing todo, before checking the flags?

how do i do that for a self written program, say a small c code, compiled with cygwin�s gcc?

how would i do it for a foreign application, compiled with unkown (to me) compiler?

and how to automate all this?

thank you very much for your answer - i was fearing it had something to do with something completly unfamiliar to me:-)

any help appreciated so much!

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