Flag: Tornado! Hurricane!

 Forums >>  IDA Pro  >>  Add comments to results of ida pro

Topic created on: May 10, 2012 17:23 CDT by qiuhan .

I want to add comments after the sentence such as MOV or MSR.
My problem is if I use python to write a script, how can I get all the dissam code before analysis?
I tried the function of FuncItems(start), Functions(start=None, end=None) but didn't get what I want...

  phn1x     May 11, 2012 06:30.20 CDT
idc.GetDisasm(curAddr)
idc.GetOpnd(ea, n)

  qiuhan   May 12, 2012 18:15.32 CDT
> phn1x: idc.GetDisasm(curAddr)
> idc.GetOpnd(ea, n)

Actually, what I mean is to get all the dissam, not one sentence ...

  phn1x     May 14, 2012 06:33.42 CDT
def get_disasm_blob(self, func_start):
"""
returns buffer containing disassembly text of function
"""
funcStart = idc.GetFunctionAttr(func_start, idc.FUNCATTR_START)
funcEnd = idc.GetFunctionAttr(func_start, idc.FUNCATTR_END)
curAddr = funcStart
disass = ""
while curAddr <= funcEnd:
disass += idc.GetDisasm(curAddr)
disass += "\n"
self.instructions += 1
curAddr = idc.NextHead(curAddr, funcEnd)
return disass

Note: Registration is required to post to the forums.

There are 29,883 total registered users.


Recently Created Topics
Incorrect bitness wh...
May/20
PaiMei stalker modul...
May/19
Attach to program us...
May/13
IDA PRO how to make ...
May/12
FACT: OpenRCE is dead.
May/08
Int 3 anti debug?
May/05
help needed - Beginn...
May/03
Attaching IDA Pro to...
Apr/27
File type
Apr/21
Debugging iphone app...
Apr/15


Recent Forum Posts
Ollydbg 2.0 - Plugin...
openrce...
IDA PRO how to make ...
codeinject
FACT: OpenRCE is dead.
codeinject
IDA Resource Viewer ...
r2x64
FACT: OpenRCE is dead.
djnemo
FACT: OpenRCE is dead.
codeinject
FACT: OpenRCE is dead.
pedram
help needed - Beginn...
araujo
Attaching IDA Pro to...
codeinject
Int 3 anti debug?
codeinject


Recent Blog Entries
sweetyss
May/18
Adam Wainwright continues t...

lowpriority
Apr/13
OllyMigrate Plugin for Olly...

everdox
Mar/08
2 anti-trace mechanisms spe...

everdox
Mar/07
Advanced debugging techniques

everdox
Mar/06
Branch tracing and LBR acce...

More ...


Recent Blog Comments
clarisonic on:
Apr/03
New version of Ollydbg!

clarisonic on:
Apr/03
New version of Ollydbg!

trackerx90 on:
Mar/04
SuppressDebugMsg As Anti-De...

coachfactory on:
Feb/25
Portable Executable Format ...

coachfactory on:
Feb/25
A new Anti-Olly trick.

More ...


Imagery
SoySauce Blueprint
Jun 6, 2008

[+] expand

View Gallery (11) / Submit