Conversation

I made a 🦋Bluesky bot that posts hourly control-flow-graphs.
Because why not.

https://bsky.app/profile/cfgbot.bsky.social

Currently taking random functions from CPython's source code.

1
1
0
@tmr232 Fedi version wen eta? Also, I think I'll have to do Ghidra graph export script to support binaries...
2
0
0

@buherator as soon as I decide which server to put the bot on 🙃

As for Ghidra - that would be awesome! I always wanted to do that with IDA, but licensing made it tricky...

1
0
1

@buherator if we wanna style it the same, it's probably better to export a JSON of the nodes & edges (including edge types) so that we can use the same templates.

Then it's either we have the CI run Ghidra (probably not...), or we run it locally every now and then to generate a large collection of graphs, then post them gradually.

2
0
0

@buherator TBH, not feeling like doing the Ghidra work right now, but if you're up for writing the code and workshopping this a little, I'd be happy to find a way to integrate it.

0
0
0
@tmr232 could you share the expected JSON schema?
1
0
0

@buherator I'll need to generate that...
Probably best if we do something that graphology can read (https://graphology.github.io/serialization.html#format) as it's the graph library I'm currently using.

I'll try to serialize graphs from my code to see which attributes are actually relevant and let you know.

1
0
0

@buherator Thinned the export down to this - https://gist.github.com/tmr232/09e4b1d5edf89a2c718a9d73aa6cec2f

This will still require some changes to the code to make this work, but should be rather straightforward once graphology imports the graph.

1
0
1