Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jmpews/DobbyDrill
hook MachO file based on Dobby (NOT DONE)
https://github.com/jmpews/DobbyDrill
Last synced: 21 days ago
JSON representation
hook MachO file based on Dobby (NOT DONE)
- Host: GitHub
- URL: https://github.com/jmpews/DobbyDrill
- Owner: jmpews
- Created: 2019-12-23T16:55:15.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-23T17:56:19.000Z (almost 5 years ago)
- Last Synced: 2024-08-05T17:24:53.317Z (4 months ago)
- Language: C++
- Homepage:
- Size: 13.7 KB
- Stars: 40
- Watchers: 6
- Forks: 9
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-hacking-lists - jmpews/DobbyDrill - hook MachO file based on Dobby (NOT DONE) (C++)
README
## DobbyDrill
DobbyDrill is a static file hook tool by modify macho file, which is based on Dobby.
#### 1. Build DobbyDrill tool
DobbyDrill modify and insert an indirect branch stub at the target function which you want to hook. It's not enough, so RuntimeSupport library is necessary at runtime.
```
export DOBBY_SOURCE_DIR=/path/Dobby
cd DobbyDrill; mkdir build; cd build
cmake .. -DDOBBY_SOURCE_DIR=${DOBBY_SOURCE_DIR}
make -j4
```#### 2 Build RuntimeSupport library
The RuntimeSupport library do some auxiliary work and provide interface function(DobbyDrillHook).
#### 3. Static insert indirect branch stub to your binary
`function_vmaddr` is the virtual function address which is the same as the IDA pro show.
```
./DobbyDrill /YourBinaryApp/binary function_vmaddr1 function_vmaddr2
```## Epilogue
have fun.