Coder Social home page Coder Social logo

Comments (2)

jrmd54 avatar jrmd54 commented on June 4, 2024 1

It works, thank you!

from headless-ida.

DennyDai avatar DennyDai commented on June 4, 2024

When dealing with multiple HeadlessIda instances within a single Python script, it's essential to import the ida packages individually for each instance. Here's how to implement this in your code:

def idapython_run_on_file(file_path):
    headlessida = HeadlessIda(IDA64, file_path)
    ida_nalt = headlessida.import_module("ida_nalt")
    print("Loading", file_path)
    if os.path.basename(ida_nalt.get_input_file_path()) != os.path.basename(file_path):
        print("ERROR! file", ida_nalt.get_input_file_path(), "loaded instead of", file_path)
        sys.exit(1)
    headlessida.conn.close()

Please note that this project was originally designed to operate with 'idat64' rather than 'ida64'. The additional 't' is noteworthy. Although it's encouraging to see that the normal GUI 'ida64' appears functional, it's important to mention that this compatibility hasn't been formally tested.

from headless-ida.

Related Issues (9)

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.