Ida Pro Python editor v1
I made this Ida pro Python editor :D
I always hated the stock one. i am gonna do one for x64dbg also, when gets python support. check it out here. https://github.com/techbliss/Python_editor |
I am feeling particularly stupid today and am puzzled about installing Sip. Can you explain using small words please?
Git |
yes no problem.
PyQt needs sip to run. ida need a special build of both PyQt4 and sip to run, the stock one wont work. So everything have to be rebuilded. the sip package is ready configured for ida, so do not reconfigure. just extract sip archive and use vs command line from extracted folder and do. Code:
nmake install |
You should check out the latest build.
I made this totally different.A more clean look No push buttons but icon and hotkey based. HTML Code:
1. Hotkeys: Use hit hotkey Alt+E twize to load the editor. picture here http://i.imgur.com/TcsyTZW.png https://github.com/techbliss/Python_editor |
Changelog v2
Fix globals you can run files that depends on submodules. So it can handle full scale python apps now, insteed of beeing a script runner ;) |
Greatz, Storm
Want to say thanks to you! I'm very busy and so missing it on your site :( quygia128 |
version 0.3 out
PHP Code:
Hotkeys Code:
############# |
cannot install
Quote:
C:\Python27\Lib\site-packages\PyQt4 i have ida 6.8 installed and do not have this folder at all copy supplied Qsci.pyd in C:\Python27\Lib\site-packages\PyQt4 i copy the file to the new folder and extract zip i have now in C:\Program Files (x86)\IDA 6.8\plugins\Code editor the files pyeditor.py __init__.py .icons idc.api python.api idaapi.api in C:\Program Files (x86)\IDA 6.8\plugins\ i have Python_editor.py is right i have errors when start ida No module named pyqt4 and do not start the plugin Is necessary any step more? thanks ricnar |
Yes you have to install spesielt Build of PyQt.
Normal build wont work. have Builded the latest Qt PyQt-win-gpl-4.11.4 framwork from scratch. Then made a installer that install it correct and add the right path so ida will find it. PAckage include full PyQt4 version PyQt-win-gpl-4.11.4 And sip sip-4.16.9 that PyQt4 depends on. Works with any path now Since many have trouble setting up python correct. It add following regestry changes to path so ida pro will find PyQt. Only added if its not there. https://mega.nz/#!PkN0hSYR!DuYRLKTpcqI5UO0iYw9cvwOQajsQs6XB3_Up9OwdBac original thread http://www.techbliss.org/threads/pyqt-win-gpl-4-11-qt-4-4-8-7-for-ida-pro-total-package-installer-by-storm-shadow.768/ yes thats correct Quote:
|
I could successfully install the editor and started perfectly now I realize that I have of some problems using it.
Before starting the editor I can use hex () in python command bar Python> hex (2) 0x2 but when I start the editor with alt +E and typing in the editor and run hex (2) Traceback (most recent call last): File "C: \ Program Files (x86) \ IDA 6.8 \ plugins \ Code editor \ pyeditor.py", line 322, in Runto exec (script, g) File "<string>", line 1, in <module> TypeError: hex (QTextStream): 1 have unexpected argument type 'int' Python> hex / 2) File "<string>", line 1 hex / 2) ^ SyntaxError: invalid syntax Python> hex (2) Traceback (most recent call last): File "<string>", line 1, in <module> TypeError: hex (QTextStream): 1 have unexpected argument type 'int' and then either neither the publisher nor in the command bar can be used without pulling the same mistake. thanks ricnar |
thats a very wierd error.
Ida original editor cant even run this command.(exept the command line box)they properly supressed the error from even running. Error thinks the the int is a string. thx for reporting it. |
okay on the original editor, you have to type
print hex (2) i fixed error in my editor, and will upload it later to repo. fix Code:
except ImportError: Did code recognition work also after you used the installer ? |
Did code recognition work also after you used the installer ?
----- I barely try. I can see when you type idaapi and point a menu appear with the attributes. This is the only feature I can see. I speak Spanish and barely can write and understand english sorry. Ricnar |
Quote:
python about 12 000 funtions https://github.com/techbliss/Python_editor/blob/master/plugins/Code%20editor/python.api :) and idaapi 10 000. funtions Also there is on off toggle for this. |
For fix the bug is necessary reinstall your compiled qt with a New version or only updating the editor is enough.
|
repo updated with fix
|
the fix works perfect
Thanks I tried and the bug was fixed, thanks.
best regards ricnar |
New build
Added Code:
# Zoom in Ctrl+Shift+ + # Code:
173 function calls in 0.025 seconds |
i can open the editor but when i close i cannot reopen with alt + E.
Executing last-registered action: JumpFileOffset (Jump to file &offset...) Python Editor Loaded to menu use Alt+E once morePython Editor Loaded to menu use Alt+E once morePython Editor Loaded to menu use Alt+E once morePython Editor Loaded to menu use Alt+E once moreCommand "JumpEnter" failed Python Editor Loaded to menu use Alt+E once more nothing happens when i press alt + e to reopen. thanks ricnar PD:maybe closing with alt + d and reopen with alt + E can work One suggestion for the editor may be more comfortable. You can add a window to the right, with the result of the execution log? This is to avoid having to return to IDA to see the result of running and then go back to the editor to continue. A SAVE option without opening a window will be a improvement too. Thanks again |
Set the shortcut in shortcut menu (option >>>Shortcut) first time after its loaded, then next time ida is opened it will work.
Run to a second window as a option sound like a good idea, i can look into that.The window open when save is a error, it should only do that once, i put in on my to fix list. |
Thanks
Your effort is very appreciated by me, you are great!!!
thanks ricnar |
Nice tool but still needs some fixes..
keep a good work,, bye N |
updated version
Clean up code Zoom -/+ Font box Getting ready for debugger feature https://github.com/techbliss/Python_editor |
update
HTML Code:
ida Pyqt5 version >6.8 added(6.95) Remember to install my pre build PyQt5 installer build for ida. https://www.techbliss.org/threads/ida-pro-pyqt5-5-6-2-x32-complete-installer-package-by-storm-shadow.909/ pyqt4 version for pre 6.9 is here https://mega.nz/#!PkN0hSYR!DuYRLKTpc...6XB3_Up9OwdBac |
Ida pro 7.0 + added.
https://github.com/techbliss/Python_editor Remember to read the readme on new PyQt5 build(howto install New PyQt5 build x64 and ida files) |
All times are GMT +8. The time now is 23:29. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX