├── ImportRadare2.py └── README.md /ImportRadare2.py: -------------------------------------------------------------------------------- 1 | import r2pipe 2 | 3 | doc = Document.getCurrentDocument() 4 | segment = doc.getCurrentSegment() 5 | 6 | r2p = r2pipe.open(doc.getExecutableFilePath()) 7 | r2p.cmd('aaa') 8 | r2functions = r2p.cmdj('aflj') 9 | r2p.quit() 10 | 11 | for r2function in r2functions: 12 | doc.setNameAtAddress(r2function['offset'], r2function['name']) 13 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # hopper-radare2 2 | 3 | Based on https://github.com/Manouchehri/binaryninja-radare2 4 | 5 | A script for [Hopper](https://www.hopperapp.com/) that uses [Radare2](https://radare.org) to find functions that Hopper misses. 6 | 7 | Requires radare2 to be installed and r2pipe: `sudo pip install r2pipe` 8 | 9 | Before: 10 | 11 | before 12 | 13 | After: 14 | 15 | after 16 | --------------------------------------------------------------------------------