Git Product home page Git Product logo

idascript's Introduction

ABOUT

IDAScript is a wrapper around IDA Pro that makes it easy to automate the execution of IDA scripts 
against target files from the command line.

This version of idascript is based on the original idascript from Hex-Rays, but is written in Python
for platform independance (disclaimer: currently only tested on Linux and OSX!).

For more information on idascript, see the original idascript utility here: http://www.hexblog.com/?p=128

INSTALL

To install, run the included install.py script. You will be prompted for the path to your IDA install directory,
You will typically need to run the install.py script as root/admin.

On Linux/OSX platforms, idascript will be installed the first directory listed in $PATH.

On Windows, idascript will be placed in the specified IDA install directory.

USAGE

IDAScript usage is very straight forward:

	$ idascript ./target.bin ./myscript.py arg1 arg2 arg3
	$ idascript --64 ./target64.bin ./myscript.py arg1 arg2 arg3

IDASCRIPT SCRIPTS

All IDAPython scripts intended for use with idascript must import the idascript Python module. If you want
IDA to exit when the script is finished, the script must also call idascript.exit when done. Example:

	import idascript

	print "I am an IDA script. My first command line argument is:", sys.argv[1]

	idascript.exit()

Scripts written in this manner can be used either through idascript utility or manually from inside the IDA GUI. 
The idascript module will detect when it is not being run via the idascript utility and will disable itself.

idascript's People

Contributors

bengardiner avatar devttys0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

idascript's Issues

Cannot delete OUTFILE because its being used by another process

In the end of idascript, there is:
os.remove(OUTFILE)
that fails due to how tempfile.mkstemp() acts, it returns fd and the filename. The fd was remained open,
and thus the error (Error 32).
So I added this code before the os.remove:
os.close(fd)
And it solved the issue :)

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.