Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inquiry on Converting Binary Files to graph or JSON #1

Open
xhh-an opened this issue Dec 4, 2024 · 1 comment
Open

Inquiry on Converting Binary Files to graph or JSON #1

xhh-an opened this issue Dec 4, 2024 · 1 comment

Comments

@xhh-an
Copy link

xhh-an commented Dec 4, 2024

Hi,

I came across this repository, which appears to be focused on model-related tasks. However, I am currently looking for information regarding the process of converting a binary file into an graph or transforming it into JSON format.

Could you please help me understand which part of the code is responsible for this process?I have read the generate_dataset.py but it seems to convert the JSON file into a Graph structure.If the code for converting binary files to graph or JSON is part of another repository, I would appreciate it if you could point me to the relevant resources or links(maybe bin2ml but I want to know where the function entry is).

Thanks in advance for your help!

Best regards.

@br0kej
Copy link
Owner

br0kej commented Dec 6, 2024

Hey - to turn binaries into the JSON format used in the 'generate_datasets.py' script, head over to the bin2ml repository here -> https://github.com/br0kej/bin2ml

To generate the same data, you want to extract the finfo and cg data types from each binary of interest and then use the generate graph command to make onehopcgcaller graphs.

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

No branches or pull requests

2 participants