Friday, March 27, 2015

IDA Python




debug


pycharm pro
  • copy pycharm-debug.egg from /path/to/pycharm/debug-eggs to remote computer if nessery
  • add code to IDA python script

import sys
import os
current_path = os.path.dirname(__file__)
egg_loc = os.path.join(current_path, "pycharm-debug.egg")
sys.path.append(egg_loc)
print egg_loc
import pydevd
pydevd.settrace("host ip/name", port=12345, stdoutToServer=True, stderrToServer=True)


  • config pycharm (Run/Debug Configuration)

add Python Remote Debug



  • Run Debug server




References

https://www.hex-rays.com/products/ida/support/idapython_docs/
http://www.slideshare.net/geeksec80/introduction-to-ida-python
http://reverseengineering.stackexchange.com/questions/2190/how-to-debug-an-idapython-script-from-within-ida/2885#2885
http://www.offensivecomputing.net/papers/IDAPythonIntro.pdf

http://www.slideshare.net/geeksec80/python-arsenal-for-re-1?related=1

No comments: