Skip to content

Improved function bytes extraction to JSON file with masks#55

Closed
valbucci wants to merge 76 commits into
br0kej:mainfrom
valbucci:function-bytes
Closed

Improved function bytes extraction to JSON file with masks#55
valbucci wants to merge 76 commits into
br0kej:mainfrom
valbucci:function-bytes

Conversation

@valbucci

@valbucci valbucci commented Oct 9, 2025

Copy link
Copy Markdown
Contributor

Radare2 v6.0.0 introduced a new command p8fmj. This provides not only a function's raw bytes but some additional information as follows:

{
    "type": "function",
    "linear": true,
    "addr": 5368720672,
    "size": 6,
    "data": "ff254a970400",
    "mask": "7f0c00000000"
}

This PR proposes a new implementation of the bytes extraction mode, which extracts all function's byte data with p8fmj @@f and stores the dictionaries into an array which is then serialised and stored inside a single JSON file, instead of a folder.

The functions write_to_bin and get_bytes are therefore no longer used. They are retained in case we intend to implement a different extraction mode for retro-compatibility.

valbucci and others added 30 commits March 27, 2025 20:30
Fixed BinInfo bug due to optional BinEntry attributes
Option `--use-curl-pdb` set to false as default
valbucci and others added 27 commits April 15, 2025 16:18
Minor error handling in decomp and reg
Default to X86 architecture for ACFG generation
@valbucci valbucci closed this Oct 13, 2025
@valbucci

Copy link
Copy Markdown
Contributor Author

I accidentally tried to merge this PR into main. Fixing it now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants