Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cyberfined/gotredrect-dl
Redirect library functions to yours ones
https://github.com/cyberfined/gotredrect-dl
c global-offset-table linux-app ptrace-injection
Last synced: 6 days ago
JSON representation
Redirect library functions to yours ones
- Host: GitHub
- URL: https://github.com/cyberfined/gotredrect-dl
- Owner: cyberfined
- License: bsd-3-clause
- Created: 2018-11-08T17:39:36.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-09T06:40:32.000Z (almost 6 years ago)
- Last Synced: 2024-11-12T16:17:04.191Z (2 months ago)
- Topics: c, global-offset-table, linux-app, ptrace-injection
- Language: C
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gotredirect-dl
Load library with __libc_dlopen_mode, into victim process address space, then find address of library function with __libc_dlsym, then redirect host function to the library function
# Usage
```bash
./gotredirect-dl
```
# 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/gotredrect-dl.git && cd gotredirect
2. make# License
BSD-3-Clause. Read LICENSE file