Exetools  

Go Back   Exetools > General > Developer Section

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 07-05-2015, 05:40
Storm Shadow's Avatar
Storm Shadow Storm Shadow is offline
Family
 
Join Date: Jun 2014
Posts: 282
Rept. Given: 186
Rept. Rcvd 191 Times in 78 Posts
Thanks Given: 141
Thanks Rcvd at 245 Times in 97 Posts
Storm Shadow Reputation: 100-199 Storm Shadow Reputation: 100-199
Ida Pro Python editor v1

I made this Ida pro Python editor


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
__________________
The devil whispered in my ear, "you're not strong enough to withstand the storm."

Today I whispered in the devils ear, "I am the storm."
Reply With Quote
The Following 8 Users Say Thank You to Storm Shadow For This Useful Post:
an0rma1 (11-25-2015), Artic (07-05-2015), emo (02-24-2017), Git (07-05-2015), Indigo (07-19-2019), o_o (02-08-2016), schrodyn (12-16-2016), Stitch (09-12-2015)
  #2  
Old 07-05-2015, 18:44
Git's Avatar
Git Git is offline
Old Git
 
Join Date: Mar 2002
Location: Torino
Posts: 1,116
Rept. Given: 220
Rept. Rcvd 265 Times in 157 Posts
Thanks Given: 109
Thanks Rcvd at 217 Times in 125 Posts
Git Reputation: 200-299 Git Reputation: 200-299 Git Reputation: 200-299
I am feeling particularly stupid today and am puzzled about installing Sip. Can you explain using small words please?

Git
Reply With Quote
The Following User Says Thank You to Git For This Useful Post:
Indigo (07-19-2019)
  #3  
Old 07-05-2015, 18:48
Storm Shadow's Avatar
Storm Shadow Storm Shadow is offline
Family
 
Join Date: Jun 2014
Posts: 282
Rept. Given: 186
Rept. Rcvd 191 Times in 78 Posts
Thanks Given: 141
Thanks Rcvd at 245 Times in 97 Posts
Storm Shadow Reputation: 100-199 Storm Shadow Reputation: 100-199
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
.
__________________
The devil whispered in my ear, "you're not strong enough to withstand the storm."

Today I whispered in the devils ear, "I am the storm."
Reply With Quote
The Following User Says Thank You to Storm Shadow For This Useful Post:
Indigo (07-19-2019)
  #4  
Old 07-20-2015, 03:04
Storm Shadow's Avatar
Storm Shadow Storm Shadow is offline
Family
 
Join Date: Jun 2014
Posts: 282
Rept. Given: 186
Rept. Rcvd 191 Times in 78 Posts
Thanks Given: 141
Thanks Rcvd at 245 Times in 97 Posts
Storm Shadow Reputation: 100-199 Storm Shadow Reputation: 100-199
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:
2.  NewFile:            Ctrl+N
3.  OpenFile:           Ctrl+O
4.  SaveFile:           Ctrl+S
5.  RunScript:          Ctrl+E
6.  Undo:               Ctrl+Z
7.  Redo:               Ctrl+Y
8.  SelectALL:          Ctrl+A
9.  Paste:              Ctrl+V
10. ResetFolding:       Ctrl+R
11. CircleFolding:      Ctrl+C
12. PlainFolding:       Ctrl+P
13. Hex-ray Home:       Ctrl+W
14. Python API:         Ctrl+I
15. Open git python:    Ctrl+G
16. Author:             Ctrl+B
Tip!
Use hit hotkey Alt+E twize to load the editor.

picture here
http://i.imgur.com/TcsyTZW.png


https://github.com/techbliss/Python_editor
__________________
The devil whispered in my ear, "you're not strong enough to withstand the storm."

Today I whispered in the devils ear, "I am the storm."
Reply With Quote
The Following 3 Users Say Thank You to Storm Shadow For This Useful Post:
Artic (09-08-2015), b30wulf (09-18-2015), Indigo (07-19-2019)
  #5  
Old 09-06-2015, 17:58
Storm Shadow's Avatar
Storm Shadow Storm Shadow is offline
Family
 
Join Date: Jun 2014
Posts: 282
Rept. Given: 186
Rept. Rcvd 191 Times in 78 Posts
Thanks Given: 141
Thanks Rcvd at 245 Times in 97 Posts
Storm Shadow Reputation: 100-199 Storm Shadow Reputation: 100-199
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
__________________
The devil whispered in my ear, "you're not strong enough to withstand the storm."

Today I whispered in the devils ear, "I am the storm."
Reply With Quote
The Following 2 Users Say Thank You to Storm Shadow For This Useful Post:
Artic (09-08-2015), Indigo (07-19-2019)
  #6  
Old 09-18-2015, 20:09
quygia128's Avatar
quygia128 quygia128 is offline
Family
 
Join Date: Apr 2011
Location: SomeWhere
Posts: 109
Rept. Given: 242
Rept. Rcvd 182 Times in 47 Posts
Thanks Given: 121
Thanks Rcvd at 30 Times in 19 Posts
quygia128 Reputation: 100-199 quygia128 Reputation: 100-199
Greatz, Storm
Want to say thanks to you!
I'm very busy and so missing it on your site

quygia128
Reply With Quote
The Following 2 Users Say Thank You to quygia128 For This Useful Post:
Indigo (07-19-2019), Storm Shadow (09-19-2015)
  #7  
Old 12-05-2015, 02:32
Storm Shadow's Avatar
Storm Shadow Storm Shadow is offline
Family
 
Join Date: Jun 2014
Posts: 282
Rept. Given: 186
Rept. Rcvd 191 Times in 78 Posts
Thanks Given: 141
Thanks Rcvd at 245 Times in 97 Posts
Storm Shadow Reputation: 100-199 Storm Shadow Reputation: 100-199
version 0.3 out

PHP Code:
APi working
better path recognition
api on
/off toggle
run full python programs


Hotkeys
Code:
#############
# Author Storm Shadow #
# Hotkeys #
# NewFile: Ctrl+N #
# OpenFile: Ctrl+O #
# SaveFile: Ctrl+S #
# RunScript: Ctrl+E #
# Undo: Ctrl+Z #
# Redo: Ctrl+Y #
# SelectALL: Ctrl+A #
# Paste: Ctrl+V #
# ResetFolding: Ctrl+R #
# CircleFolding: Ctrl+C #
# PlainFolding: Ctrl+P #
# HEX-ray Home: Ctrl+W #
# Ida Pro Python SDK Ctrl+I #
# IDAPROPythonGit: Ctrl+G #
# Author: Ctrl+B #
# Enable Reg: Alt+E #
# Disable Reg: Alt+D #
##################
# IDA PRO python Editor #
##################
__________________
The devil whispered in my ear, "you're not strong enough to withstand the storm."

Today I whispered in the devils ear, "I am the storm."
Reply With Quote
The Following User Gave Reputation+1 to Storm Shadow For This Useful Post:
b30wulf (12-10-2015)
The Following User Says Thank You to Storm Shadow For This Useful Post:
Indigo (07-19-2019)
  #8  
Old 12-06-2015, 21:47
ricnar456 ricnar456 is offline
Friend
 
Join Date: May 2002
Posts: 290
Rept. Given: 1
Rept. Rcvd 28 Times in 10 Posts
Thanks Given: 0
Thanks Rcvd at 52 Times in 40 Posts
ricnar456 Reputation: 28
cannot install

Quote:
build yourself

https://github.com/techbliss/Ida_Pro_Ultimate_Qt_Build_Guide
or copy supplied Qsci.pyd in

C:\Python27\Lib\site-packages\PyQt4
I am very stupid too but i create the folder

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
Reply With Quote
The Following 2 Users Say Thank You to ricnar456 For This Useful Post:
Apuromafo (03-12-2019), Indigo (07-19-2019)
  #9  
Old 12-06-2015, 23:05
Storm Shadow's Avatar
Storm Shadow Storm Shadow is offline
Family
 
Join Date: Jun 2014
Posts: 282
Rept. Given: 186
Rept. Rcvd 191 Times in 78 Posts
Thanks Given: 141
Thanks Rcvd at 245 Times in 97 Posts
Storm Shadow Reputation: 100-199 Storm Shadow Reputation: 100-199
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 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
__________________
The devil whispered in my ear, "you're not strong enough to withstand the storm."

Today I whispered in the devils ear, "I am the storm."

Last edited by Storm Shadow; 12-06-2015 at 23:17.
Reply With Quote
The Following User Says Thank You to Storm Shadow For This Useful Post:
Indigo (07-19-2019)
  #10  
Old 12-08-2015, 18:47
ricnar456 ricnar456 is offline
Friend
 
Join Date: May 2002
Posts: 290
Rept. Given: 1
Rept. Rcvd 28 Times in 10 Posts
Thanks Given: 0
Thanks Rcvd at 52 Times in 40 Posts
ricnar456 Reputation: 28
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
Reply With Quote
The Following 3 Users Say Thank You to ricnar456 For This Useful Post:
Apuromafo (03-12-2019), Indigo (07-19-2019), Storm Shadow (12-08-2015)
  #11  
Old 12-08-2015, 19:04
Storm Shadow's Avatar
Storm Shadow Storm Shadow is offline
Family
 
Join Date: Jun 2014
Posts: 282
Rept. Given: 186
Rept. Rcvd 191 Times in 78 Posts
Thanks Given: 141
Thanks Rcvd at 245 Times in 97 Posts
Storm Shadow Reputation: 100-199 Storm Shadow Reputation: 100-199
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.
__________________
The devil whispered in my ear, "you're not strong enough to withstand the storm."

Today I whispered in the devils ear, "I am the storm."

Last edited by Storm Shadow; 12-08-2015 at 19:13.
Reply With Quote
The Following User Says Thank You to Storm Shadow For This Useful Post:
Indigo (07-19-2019)
  #12  
Old 12-08-2015, 19:31
Storm Shadow's Avatar
Storm Shadow Storm Shadow is offline
Family
 
Join Date: Jun 2014
Posts: 282
Rept. Given: 186
Rept. Rcvd 191 Times in 78 Posts
Thanks Given: 141
Thanks Rcvd at 245 Times in 97 Posts
Storm Shadow Reputation: 100-199 Storm Shadow Reputation: 100-199
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:
            os.chdir(str(self.path))
            os.path.join(os.path.expanduser('~'), os.path.expandvars(str(self.path)))
            sys.path.insert(0, str(self.path))
            exec (script, g)
            QtGui.QCloseEvent()

            if TypeError (QTextStream):
                g = globals()
                os.chdir(str(self.path))
                os.path.join(os.path.expanduser('~'), os.path.expandvars(str(self.path)))
                sys.path.insert(0, str(self.path))
                exec int(script)
                QtGui.QCloseEvent()

Did code recognition work also after you used the installer ?
__________________
The devil whispered in my ear, "you're not strong enough to withstand the storm."

Today I whispered in the devils ear, "I am the storm."

Last edited by Storm Shadow; 12-08-2015 at 19:56.
Reply With Quote
The Following User Says Thank You to Storm Shadow For This Useful Post:
Indigo (07-19-2019)
  #13  
Old 12-08-2015, 23:56
ricnar456 ricnar456 is offline
Friend
 
Join Date: May 2002
Posts: 290
Rept. Given: 1
Rept. Rcvd 28 Times in 10 Posts
Thanks Given: 0
Thanks Rcvd at 52 Times in 40 Posts
ricnar456 Reputation: 28
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
Reply With Quote
The Following 2 Users Say Thank You to ricnar456 For This Useful Post:
Apuromafo (03-12-2019), Indigo (07-19-2019)
  #14  
Old 12-09-2015, 01:48
Storm Shadow's Avatar
Storm Shadow Storm Shadow is offline
Family
 
Join Date: Jun 2014
Posts: 282
Rept. Given: 186
Rept. Rcvd 191 Times in 78 Posts
Thanks Given: 141
Thanks Rcvd at 245 Times in 97 Posts
Storm Shadow Reputation: 100-199 Storm Shadow Reputation: 100-199
Quote:
Originally Posted by ricnar456 View Post
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
yes then its working, the is code reconition for both ida pro python api , and all the satnadard finctions for python it self.
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.
__________________
The devil whispered in my ear, "you're not strong enough to withstand the storm."

Today I whispered in the devils ear, "I am the storm."

Last edited by Storm Shadow; 12-09-2015 at 02:11.
Reply With Quote
The Following User Says Thank You to Storm Shadow For This Useful Post:
Indigo (07-19-2019)
  #15  
Old 12-09-2015, 08:28
ricnar456 ricnar456 is offline
Friend
 
Join Date: May 2002
Posts: 290
Rept. Given: 1
Rept. Rcvd 28 Times in 10 Posts
Thanks Given: 0
Thanks Rcvd at 52 Times in 40 Posts
ricnar456 Reputation: 28
For fix the bug is necessary reinstall your compiled qt with a New version or only updating the editor is enough.
Reply With Quote
The Following 2 Users Say Thank You to ricnar456 For This Useful Post:
Apuromafo (03-12-2019), Indigo (07-19-2019)
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
x64dbg python Storm Shadow Developer Section 6 08-04-2017 15:29
ollydbg2-python sh3dow Community Tools 0 10-07-2014 04:48


All times are GMT +8. The time now is 05:41.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( 1998 - 2024 )