Ghidra 12.1.2 headless decompilation of Steam client version 1788652215: - decomp/linux64_steamclient.so, ubuntu12_32_steamclient.so, ubuntu12_32_steam: per-class pseudo-C (RTTI class recovery + Class::Method string naming), functions.tsv and strings.tsv - decomp/protos: 107 .proto files and descriptors.pb extracted from steamclient.so - decomp/steamui: prettified Library UI JS; steamclient_js_api.txt lists the SteamClient.* backend API it calls - tools/: decompile/recover/export scripts and proto extractor GCC exception-handler analysis is disabled: it truncated ~47% of function bodies on these binaries. Co-Authored-By: Claude Opus 5.5 <[email protected]>
21 lines
618 B
Java
21 lines
618 B
Java
// Pre-analysis script: sets analyzer options from "Name=value" script args,
|
|
// e.g. -preScript SetAnalysisOptions.java "GCC Exception Handlers=false"
|
|
//@category Analysis
|
|
|
|
import ghidra.app.script.GhidraScript;
|
|
|
|
public class SetAnalysisOptions extends GhidraScript {
|
|
|
|
@Override
|
|
protected void run() throws Exception {
|
|
for (String arg : getScriptArgs()) {
|
|
int eq = arg.indexOf('=');
|
|
if (eq < 0) {
|
|
throw new IllegalArgumentException("expected Name=value, got: " + arg);
|
|
}
|
|
setAnalysisOption(currentProgram, arg.substring(0, eq), arg.substring(eq + 1));
|
|
println("Analysis option " + arg);
|
|
}
|
|
}
|
|
}
|