feat: scaffold v0.1 foundation
This commit is contained in:
parent
c4fb0c6a01
commit
170ca32f58
34 changed files with 6175 additions and 5 deletions
47
fixtures/golden/v1/decompilation.json
Normal file
47
fixtures/golden/v1/decompilation.json
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
{
|
||||
"schema_version": 1,
|
||||
"kind": "decompilation",
|
||||
"provenance": {
|
||||
"ghidr_version": "0.1.0",
|
||||
"adapter_protocol_version": 1,
|
||||
"ghidra_version": "12.1.2",
|
||||
"java_version": "21",
|
||||
"sample_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
||||
"source_path": { "encoding": "utf8", "value": "./sample" },
|
||||
"analysis_profile_sha256": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
|
||||
"target": {
|
||||
"loader": "ElfLoader",
|
||||
"format": "ELF",
|
||||
"processor_language": "x86:LE:64:default",
|
||||
"compiler_specification": "gcc",
|
||||
"verification": "verified"
|
||||
},
|
||||
"analysis_store": {
|
||||
"path": { "encoding": "utf8", "value": "/tmp/ghidr-store" },
|
||||
"source": "cli"
|
||||
},
|
||||
"sandbox": { "backend": "bubblewrap", "verification": "verified" },
|
||||
"limits": {
|
||||
"max_heap_mib": 2048,
|
||||
"max_cpu": 2,
|
||||
"analysis_timeout_seconds": 600,
|
||||
"decompile_timeout_seconds": 60,
|
||||
"child_watchdog_seconds": 780,
|
||||
"max_sample_bytes": 1073741824,
|
||||
"max_inline_bytes": 65536
|
||||
}
|
||||
},
|
||||
"data": {
|
||||
"requested_selector": { "kind": "name", "value": "main" },
|
||||
"function": {
|
||||
"name": "main",
|
||||
"qualified_name": "main",
|
||||
"entry": { "space": "ram", "offset": "0x0000000000401000" }
|
||||
},
|
||||
"decompilation": {
|
||||
"syntax": "ghidra_c",
|
||||
"text": "int main(void) {\n return 0;\n}\n"
|
||||
}
|
||||
},
|
||||
"warnings": []
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue