Code Monkey home page Code Monkey logo

ida_showcallstack's Introduction

ShowCallStack IdaPython Script

Often I encounter a problem during debugging with IDA, because I want check a call stack but there is no such option. There is trace availibity, but it is not user friendly. Therefore I decided to invent ShowCallStack.py script with IDAPython, which display call stack during debugging.

I used some ideas from "CallStackWalk.py" (https://github.com/EiNSTeiN-/idapython/blob/master/Scripts/CallStackWalk.py), eg. idea of determining of instruction.

Hotkey:

To add Hotkey to you IDA:

-place "ShowCallStack.py" in "<ida_dir>/python"
-add to "<ida_dir>/idc/ida.idc" above main function following lines:

static showCallStack()  
{  
     //it's not important there are '/' or '\\'  
     auto pythonCommand = "exec(open('" + idadir() + "/python/ShowCallStack.py').read())";  
     auto ret = exec_python(pythonCommand);  
     if(ret == 0)  
     {  
          print("showCallStack() Success! ");  
     }  
     else  
     {  
          print(ret);  
     }  
}  

-add at the beginning of main function this line:

  //script is binded to "z" key. Change your shortcut if you want  
  AddHotkey("z", "showCallStack");  

ida_showcallstack's People

Contributors

radkum avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.