04 Feb 2010 @ 6:14 PM 

The versions of proc_peek_recon.py and proc_peek_recon_db.py are slightly broken.


They both suffer from the same problem. Simply change:


for xref in CodeRefsTo(location, True) + DataRefsTo(location):


To this:


for xref in list(CodeRefsTo(location, True)) + list(DataRefsTo(location)):


This will convert the generators that are returned by CodeRefsTo and DataRefsTo into lists that can be combined and iterated through.

Failure to do this will result in the following error:

Traceback (most recent call last):
File ““, line 1, in
File “C:\Program Files\IDA\python\init.py”, line 65, in runscript
execfile(script, g)
File “C:/paimei/proc_peek_recon_db.py”, line 357, in
main()
File “C:/paimei/proc_peek_recon_db.py”, line 354, in main
meat_and_potatoes(mysql)
File “C:/paimei/proc_peek_recon_db.py”, line 253, in meat_and_potatoes
for xref in CodeRefsTo(location, True) + DataRefsTo(location):
TypeError: unsupported operand type(s) for +: ‘generator’ and ‘generator’

Posted By: jRichards
Last Edit: 04 Feb 2010 @ 06:14 PM

EmailPermalink
Tags
Categories: Uncategorized


 

Responses to this post » (None)

 
Post a Comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


 Last 50 Posts
 Back
Change Theme...
  • Users » 55
  • Posts/Pages » 29
  • Comments » 13
Change Theme...
  • VoidVoid « Default
  • LifeLife
  • EarthEarth
  • WindWind
  • WaterWater
  • FireFire
  • LightLight

About



    No Child Pages.

Vulns



    No Child Pages.

Tools



    No Child Pages.

PaiMei



    No Child Pages.

PGP Key



    No Child Pages.