NationalSecurityAgency / ghidra

Ghidra is a software reverse engineering (SRE) framework
https://www.nsa.gov/ghidra
Apache License 2.0
52.22k stars 5.91k forks source link

Replicating headlessAnalyzer's functionality in a script. #2013

Open sajjadirn opened 4 years ago

sajjadirn commented 4 years ago

Hi, Can the functionality of headlessAnalyzer be replicated in a python script? By this I mean, the way in which headlessAnalyzer loops through a folder and analyzes each binary file in it and then runs a script on the analyzed file (using -postScript).

What I want to do is, go to a directory with multiple exe files in it, then analyze each one at a time, perform some further analysis on it and save the output.

ightelsentearten commented 4 years ago

Couldn't you run the headlessAnalyzer with popen?