feat(ghidra): admit explicit DOS COM analysis (#702)

* feat(ghidra): admit explicit DOS COM analysis

Carry caller-selected COM interpretation through CLI, MCP and target
identity, seed real-mode entry/context before Ghidra analysis, and verify
complete loaded bytes, source mappings and measured register context.
Keep original binaries unchanged and PSP/runtime coverage explicit.

Assisted-by: Nitori (gensokyo-skills:nitori-reverse-engineering)

* fix(verification): validate COM package selection before allocating fixtures
This commit is contained in:
N0zoM1z0
2026-10-06 16:26:40 +08:00
committed by GitHub
parent d565ecdc25
commit 5bcb6645b5
45 changed files with 1104 additions and 75 deletions
+1
View File
@@ -89,6 +89,7 @@ export const hopperLoaderArgsForTarget = (
case "pe":
return ok(["-l", "WinPE", flag]);
case "dos-mz":
case "dos-com":
return err(
new ProviderAdapterError("hopper", "resolve_analysis_profile"),
);
+3 -2
View File
@@ -157,11 +157,12 @@ export class HopperProvider implements AnalysisProviderCandidate {
reason: null,
diagnostics,
};
if (target.format === "dos-mz")
if (target.format === "dos-mz" || target.format === "dos-com")
return {
status: "unsupported",
code: "target_format_unsupported",
reason: "DOS MZ analysis requires the Ghidra 16-bit real-mode adapter.",
reason:
"DOS MZ/COM analysis requires the Ghidra 16-bit real-mode adapter.",
diagnostics,
};
return {