Want to Join Us ?

you'll be able to discuss, share and send private messages.

Release Setting up Ida with Pyside and PyQt, it makes big difference.

Discussion in 'Plugins' started by storm shadow, Feb 20, 2013.

Share This Page

  1. storm shadow

    Techbliss Owner Admin Ida Pro Expert Developer

    Prebuild here
    http://www.techbliss.org/threads/ida-pro-prebuild-pyqt4-ida-pro_pyqt5-regular-python-2-7x86.683/


    if you wanna read and learn continue reading


    Python in ida pro, have greater power than you might think.
    If set up right, the python plugins, can make your life whole lot easyer.





    Her is my little tut.
    1)
    After installing
    2)


    Now we need to set the right varible path in window 7
    3)
    4)
    In the top Cullom make an new variable
    Press ok

    5)
    Then again in top cullom, make new variable
    6)
    Okay done so far.
    Now we go, and fire ida up.
    When it ask just press go.


    Then in the buttom, there is an cullom called Python.
    In that cullom type.


    Code (Text):
    help ("modules")


    then you get an huge list off Python modules you can use in ida.



    [​IMG]


    7)

    Now we gonna test if Pyside is Working.

    in ida >>>>>>run ida script
    then run testpyside.idc found in buttom here.
    We then get get an error bad preprocesser error, so not installed.


    8)
    install PySide
    http://releases.qt-project.org/pyside/PySide-1.1.2.win32-py2.7.exe


    While at it, install PyQT also.
    http://www.riverbankcomputing.co.uk/software/pyqt/download


    Also we might need this pysqlite2 DB-API 2.0 interface for SQLite databases
    http://pysqlite.googlecode.com/files/pysqlite-2.6.3.win32-py2.7.exe


    9)
    After installing
    Download the Patch, that i made For idapro 61_Pyside27.
    http://www.putlocker.com/file/00D7CA10883B0619


    Fire up Ida again
    in the cullom in the buttom .
    Type

    Code (Text):
    help ("modules")
    Python>import PySide
    Python>print PySide
    <module 'PySide' from 'C:\Python27\lib\site-packages\PySide\__init__.pyc'>
     

    10)
    okay we got the folder where PySide is installed
    C:\Python27\lib\site-packages\PySide\
    we extract the file from 9) and overwrite the files there.
    Take an backup in case.



    now we run the testpyside.idc again
    This time it should work.


    Also we test with the exampels scripts from section 2).

    There are two we wanna test.

    ex_pyqt.py
    and
    ex_pyside.py.


    You get an response with an hello. if they are working.

    We gonna test if sqlite3 module function proberly, especially if using 64 bit windows something is screwed.


    Download the MyNav plugin for ida, then try to run it.
    http://mynav.googlecode.com/files/mynav-1.1.tar.gz
    Run mynav.py
    lot off plugins should pop up under edit >>>> plugin menu in ida


    [​IMG]


    If you get an error, about sqlite3 dll not found.

    you have to install pysqlite2 from section 8)

    then in the mynav.py change.


    Code (Python):
    import os
    import sys
    import time
    import random
    import sqlite3
    to
    Code (Python):

    import os
    import sys
    import time
    import random
    import pysqlite2
    from pysqlite2 import dbapi2 as sqlite3
    we use the sqlite3 module from pysqlite2 insteed.
    then it should work.




    All done we can try some extra cookies.
    get this
    http://www.putlocker.com/file/5CFCA209F42F9F27
    extract in C:\Python27\Lib\site-packages


    then this in ida/idc folder.
    http://www.putlocker.com/file/BF7D0023D26304C4
    try the plugins, they are great.
    The highlight calls work on exe/elf and many more.



    and the colorchanger is cool too.

    Thats all folks.
    ask if any trouble.
     

    Attached Files:

    Last edited: May 27, 2015
    roocoon, anyuh and Rip Cord like this.
  2. Mikael

    New Member

    Excellent tutorial! Thanks a lot and keep up the good work!
     
    Gh0st and storm shadow like this.
  3. anyuh

    New Member

    The links have been died :( Could you please update it?
     
  4. storm shadow

    Techbliss Owner Admin Ida Pro Expert Developer

    Putputlocker have abandon me, ill reupload them all tommorow on the site.
    Im not on my home pc before.
     
    Rip Cord and anyuh like this.
  5. computerline

    Well-Known Member Ida Pro Expert

    hope you upload missing pack soon :)
     
  6. storm shadow

    Techbliss Owner Admin Ida Pro Expert Developer

    here is the patch named in number 9)
     

    Attached Files:

    Rip Cord and Nihilus like this.
  7. computerline

    Well-Known Member Ida Pro Expert

    Thanks you very much ! :)
     
  8. Nihilus

    Well-Known Member Developer

    Damn it, makes me upgrade from Python 2.6.6 ;-)
     
  9. Nihilus

    Well-Known Member Developer

    -Seems like the good cookies disappeared :-(
     
  10. storm shadow

    Techbliss Owner Admin Ida Pro Expert Developer

    ill upload them again when i recive an new PSU
     
    Rip Cord likes this.
  11. Barbos

    New Member

    ex_pyside.py working fine, but ex_pyqt.py - error
    you have patch for PyQt4?

    [​IMG]
     
  12. storm shadow

    Techbliss Owner Admin Ida Pro Expert Developer

    have you tried
    help ("modules")
    and see if the PyQt4 is installed.
    you can use
    from PyQt import QtCore or import PyQt4 as PyQt
     
    Rip Cord likes this.
  13. GdbMonster

    New Member

    links are dead, re-upload plz
     
  14. storm shadow

    Techbliss Owner Admin Ida Pro Expert Developer

    Rip Cord likes this.
  15. GdbMonster

    New Member

    then I cant find this
     
  16. storm shadow

    Techbliss Owner Admin Ida Pro Expert Developer

    here it is. just run script, and then then try these.
    Put them in the idc folder.
    Its from the Ida Toolbag made for ida 6.3 but should work now if you followed the guide.
     

    Attached Files:

    • bin.zip
      File size:
      5.2 KB
      Views:
      55
    Rip Cord likes this.
  17. GdbMonster

    New Member

    thx, man ;)
     
  18. Nihilus

    Well-Known Member Developer

    thx but 'ImportError: No module named providers'
     
  19. storm shadow

    Techbliss Owner Admin Ida Pro Expert Developer

    get the providers folder from tyhe toolbag collection, https://github.com/aaronportnoy/toolbag and put in the site-package folder in c:\pyhton27 then you dont get the Providers error.
    C:\Python27\Lib\site-packages\providers
     
    Rip Cord likes this.
  20. Nihilus

    Well-Known Member Developer

    Thx
     
Top