Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cyberfined/gotredirect


https://github.com/cyberfined/gotredirect

c global-offset-table linux-app ptrace-injection

Last synced: 6 days ago
JSON representation

Awesome Lists containing this project

README

        

# gotredirect
Load library, that compiled as position independent code, into victim process address space, then redirect host function to the library function
# Usage
```bash
./gotredirect
```
# Examples
```bash
./gotredirect 1234 payload.so puts,pay_puts,49
```
Attach to the process with id 1234, load payload.so to it address space, then rewrite puts GOT entry by pay_puts address. Write real puts address to pay_puts+49

```bash
./gotredirect 1234 payload.so puts,pay_puts printf,pay_f,49
```
Attach to the process with id 1234, load payload.so to it address space, then rewrite puts GOT entry by pay_puts address, then rewrite printf GOT entry by pay_f address. Write real printf address to pay_f+49
# Build
1. git clone https://github.com/cyberfined/gotredirect.git && cd gotredirect
2. make

# License
BSD-3-Clause. Read LICENSE file