Want to Join Us ?

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

Python QT ADB Qt Super version

Discussion in 'Plugins' started by storm shadow, Jan 17, 2015.

Share This Page

  1. storm shadow

    Techbliss Owner Admin Ida Pro Expert Developer

    This is the extended Version of my other plugin ADB Helper. https://github.com/techbliss/ADB_Helper_For_ida_Pro/blob/master/ADB.py


    New PyQt GUI
    This version have both support for native arm debugging via usb and sdk ADV manager.
    Pids Direct to Ida Pro console.
    I added support for X64 targets via gdbserver.
    either via pids or narmal file run.
    targets like Genymotion https://www.genymotion.com/#!/
    install busybox.
    Rebbot phone.


    have android sdk installed and added platformtools to %PATH.
    Or take the minimalistic version i provided and put example c:\sdk-tool\ and add those to %PATH
    Copy other folder plugins to ida and overwrite.
    it will copy the ida plugin to ida\plugin folder.
    And make a New folder called QtApps in ida\QtApps
    start plugin from edit plugins.
    after its started run it from same.
    Follow the steps. :)
    gdb follow the steps :)
    you can either attach to pids or have file then just aattch to target. :)

    REMEMBER to Put Your legit android_server from Hexray in the platform tools folder and the QtApps\SuperADB folder also.

    SHYLOCK, computerline and Rip Cord like this.
  2. storm shadow

    Techbliss Owner Admin Ida Pro Expert Developer

  3. storm shadow

    Techbliss Owner Admin Ida Pro Expert Developer

    if anyone would like some stuff added to the plugin let me knpw got some time this week.
    Also there have been som questions setting up ida correct maybe ill do a small tut on that also.
    Rip Cord likes this.
  4. goddkiller


    thx for share it!~~ it looks amazing
    Rip Cord and storm shadow like this.
  5. storm shadow

    Techbliss Owner Admin Ida Pro Expert Developer

    Small update.
    Pushes PIDS to GUI , insteed of Ida python shell.
    Rip Cord likes this.
  6. leetone

    New Member

    Can we get a better guide on installation? I have set up Python 2.7.9, I set up IDA 6.6, IDAPython for 2.7, PyQT4, and it still gives me an error :(
  7. storm shadow

    Techbliss Owner Admin Ida Pro Expert Developer

    Yes i can do that today, Remember to have also adb.exe to PATH, normally the android sdk dont do this auto.
    Also you installed the spesiial version og PyQt4 ?.officiall from riverbank wont work.
    Last edited: Apr 4, 2015
    Rip Cord likes this.
  8. storm shadow

    Techbliss Owner Admin Ida Pro Expert Developer

    First make sure you have PyQt installed correct for ida pro.
    download here and paste it to your Pyhone folder.

    then we set up system varible

    run this code to open the windows then open environment variables dialog box
    Code (Text):
    control.exe sysdm.cpl,System,3
    then in environment variables dialog boxthere are two options local varible or system varibles, we want system varibles.

    Make new system varible called IDADIR like so.

    We make sure Python is setup correct also.

    make system varibles

    Code (Text):

    Code (Text):

    Code (Text):

    Code (Text):
    Then one for adb.exe that we need for the tool , you can use the minimalistic version that its the plugin bundle.Or install android sdk
    https://developer.android.com/sdk/index.html (android studio)
    Code (Text):

    We then open the PATH varible and add to the end of the line(remember each name semicolon between ; )

    we add
    Code (Text):
    We open CMD.exe in windows (command prompt)


    Code (Text):
    to see if it works.and can be found any where.

    We also type
    Code (Text):
    in Python shell type
    import PyQt4
    from PyQt4 import QtGui

    to see if python is found and PyQt4
    Ctrl+C to exit python shell.

    then we type
    Code (Text):
    to see if idag opens

    if all the above works we continue

    fire up ida pro

    in python shell

    Code (Text):
    it should turn back same folder as ida.
    this is very important since plugin uses this code.so double check.

    then in ida python shell type to see if PyQt4 is Found
    Code (Text):
    Code (Text):
    All done, everything should run smooth.
    The system varibles should be the first thing that one does, when installing python.

    there is a small problem with andorid_server and gdb_server, and not always found via plugin.
    So put a copy of thoose in the folder of C:\Android\sdk\platform-tools Remember we did that system varible.Same folder as adb.exe

    And to be sure you can also put the 2 files in the folder of the files you are debugging.Shouldent be nessesary though, so only as last case.

    follow the small tut where to put the plugin on the github page, and how to load it.
    Last edited: Apr 5, 2015
    Rip Cord likes this.
  9. Accezz


    The link for the the special version of PyQt4 is down. Could i bother you for a re-up? :)
  10. storm shadow

    Techbliss Owner Admin Ida Pro Expert Developer

    Accezz likes this.
  11. Accezz


    I'm not sure what to make of it but, if I put the plugin in my IDA-dir I get a an error saying that the import doesn't exist.

    Attached Files:

    Rip Cord likes this.
  12. storm shadow

    Techbliss Owner Admin Ida Pro Expert Developer

    yes this is a PyQt4 error
    You need to extract the PyQt4 package to C:\Python27\Lib\site-packages so its C:\Python27\Lib\site-packages\PyQt4

    and in this thread did you do the commands(cmd windows also) to see if its installed correct

    if your really stuck you can add me on skype zadow28
    Last edited: May 26, 2015
    Rip Cord likes this.
  13. Accezz


    Hmm. The path is right. I'm gonna check it as soon as i get home. To make sure. Thanks, i might take you up on that! :)
    storm shadow likes this.
  14. Accezz


    Awesome!! It's working now! I'm sure Mr Storm will provide the solution. =)
    Rip Cord likes this.
  15. storm shadow

    Techbliss Owner Admin Ida Pro Expert Developer

  16. storm shadow

    Techbliss Owner Admin Ida Pro Expert Developer

    Happy android debugging :cool:
  17. daner

    New Member

    In python shell is ok:
    in ida error !

    but my folder is
  18. storm shadow

    Techbliss Owner Admin Ida Pro Expert Developer

    You have to try

    Code (Text):

    Code (Text):
    also do a
    Code (Text):
    import sys
    Code (Text):
    Python>import sys
    ['C:\\Python27\\lib\\site-packages\\distribute-0.7.3-py2.7.egg', 'C:\\Python27\\lib\\site-packages\\pygments-1.6-py2.7.egg', 'C:\\Python27\\lib\\site-packages\\pyqode.core-2.1.0-py2.7.egg', 'C:\\Python27\\lib\\site-packages\\pyqode.qt-1.0.1-py2.7.egg', 'C:\\Python27\\lib\\site-packages\\flufl.enum-4.0.1-py2.7.egg', 'C:\\Python27\\lib\\site-packages\\pydee-1.0.0beta1-py2.7.egg', 'C:\\Python27\\lib\\site-packages\\atom-0.3.9-py2.7-win32.egg', 'C:\\Python27\\lib\\site-packages\\simplegui-0.1.0-py2.7.egg', 'C:\\Python27\\lib\\site-packages\\ordered_set-1.1-py2.7.egg', 'C:\\Python27\\lib\\site-packages\\simpleguitk-1.1.3-py2.7.egg', 'C:\\Python27\\lib\\site-packages\\pygdb2-0.1-py2.7.egg', 'C:\\Python27\\lib\\site-packages\\pyinstaller-2.1-py2.7.egg', 'C:\\Python27\\lib\\site-packages\\uncompyle2-1.1-py2.7.egg', 'C:\\Python27\\lib\\site-packages\\pyqtdeploy-0.0.0-py2.7.egg', 'C:\\Python27\\lib\\site-packages\\requests-2.5.3-py2.7.egg', 'C:\\Python27\\lib\\site-packages\\frida-3.0.1-py2.7-win32.egg', 'C:\\Python27\\lib\\site-packages\\colorama-0.3.3-py2.7.egg', 'C:\\Windows\\system32\\python27.zip', 'C:\\Python27\\Lib', 'C:\\Python27\\DLLs', 'C:\\Python27\\Lib\\lib-tk', 'C:\\Python27', 'C:\\Python27\\lib\\site-packages', 'C:\\Python27\\lib\\site-packages\\PIL', 'C:\\Python27\\lib\\site-packages\\win32', 'C:\\Python27\\lib\\site-packages\\win32\\lib', 'C:\\Python27\\lib\\site-packages\\Pythonwin', 'C:\\Python27\\lib\\site-packages\\wx-3.0-msw', 'C:\\Program Files (x86)\\IDA 6.6\\python', 'C:/Program Files (x86)/IDA 6.6/plugins']

    Also you PyQt4 foder looks wrong use this one

    Rip Cord likes this.
  19. daner

    New Member

    Thanks! it‘s ok:). my PyQt4 foder error. but, command"sys.path",not have ['C:\\Python27\\lib\\site-packages\\distribute-0.7.3-py2.7.egg', 'C:\\Python27\\lib\\site-packages\\pygments-1.6-py2.7.egg'.....] only ['', 'C:\\Python27\\Lib\\idlelib', 'C:\\Windows\\system32\\python27.zip', 'C:\\Python27\\DLLs', 'C:\\Python27\\lib', 'C:\\Python27\\lib\\plat-win', 'C:\\Python27\\lib\\lib-tk', 'C:\\Python27', 'C:\\Python27\\lib\\site-packages']
  20. storm shadow

    Techbliss Owner Admin Ida Pro Expert Developer

    So all is working now ?

    the path thing is just a command to check where python looks, i have other python modules than you, so the line would never be the same.