Skip to content

Running BSim Search and retrieving the results headlessly. #6299

Discussion options

You must be logged in to vote

Yes, that script can run with an H2 BSim database. Assuming you want to run it over a non-shared Ghidra project that already has analyzed files in it, the command would be:

./analyzeHeadless [path_to_ghidra_project_dir] [ghidra_project_name] -process -noAnalysis -readOnly 
 -postScript ExampleOverviewQueryScript.java file:/[path_to_h2_db_file]

Your understanding of an overview query is correct. If you want to do a regular query you'll have to modify the script accordingly. One change is that you'll have to specify which functions you want to query (that step isn't needed for an overview query since it always queries all functions in a program).

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
5 replies
@MohamedTalaatAfify
Comment options

@ghidracadabra
Comment options

@MohamedTalaatAfify
Comment options

@ghidracadabra
Comment options

Answer selected by MohamedTalaatAfify
@MohamedTalaatAfify
Comment options

Comment options

You must be logged in to vote
3 replies
@MohamedTalaatAfify
Comment options

@ghidracadabra
Comment options

@MohamedTalaatAfify
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants