sslab-gatech / winnie

Winnie is an end-to-end system that makes fuzzing Windows applications easy
MIT License
534 stars 74 forks source link

Generating basic block file #41

Closed Mipam closed 2 years ago

Mipam commented 2 years ago

Is there anybody who can point me how to corectly use IDAPython script scripts/ida_basic_blocks.py or scripts for Ghidra to generate basicblocks.bb file?or give me a sample what is inside basic blocks file?

stong commented 2 years ago

See scripts/ghidra_basic_blocks.py

However, I recommend using IDA Pro over Ghidra.

Basic blocks file looks like this

[example_library.dll]
0x1000,0x400
0x1010,0x410
0x1070,0x470
0x109c,0x49c
0x10ad,0x4ad
...
[other_module.dll]
0x143e,0x83e
0x1445,0x845
0x144d,0x84d
0x1459,0x859
0x1463,0x863
0x1477,0x877
...

List of rva,fileoffset