{"id":19872877,"url":"https://github.com/cyberfined/gotredirect","last_synced_at":"2026-05-13T04:40:42.240Z","repository":{"id":191100621,"uuid":"147900060","full_name":"cyberfined/gotredirect","owner":"cyberfined","description":null,"archived":false,"fork":false,"pushed_at":"2019-02-03T03:30:26.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-11T16:49:29.911Z","etag":null,"topics":["c","global-offset-table","linux-app","ptrace-injection"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cyberfined.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-09-08T04:11:43.000Z","updated_at":"2019-07-28T14:16:05.000Z","dependencies_parsed_at":"2023-08-28T06:04:12.896Z","dependency_job_id":null,"html_url":"https://github.com/cyberfined/gotredirect","commit_stats":null,"previous_names":["cyberfined/gotredirect"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyberfined%2Fgotredirect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyberfined%2Fgotredirect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyberfined%2Fgotredirect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyberfined%2Fgotredirect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cyberfined","download_url":"https://codeload.github.com/cyberfined/gotredirect/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241299529,"owners_count":19940485,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","global-offset-table","linux-app","ptrace-injection"],"created_at":"2024-11-12T16:17:07.501Z","updated_at":"2026-05-13T04:40:41.753Z","avatar_url":"https://github.com/cyberfined.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gotredirect\r\nLoad library, that compiled as position independent code, into victim process address space, then redirect host function to the library function\r\n# Usage\r\n```bash\r\n./gotredirect \u003cpid\u003e \u003cpath_to_lib.so\u003e \u003coriginal_function,replacer_function,[patch_offset]\u003e\r\n```\r\n# Examples\r\n```bash\r\n./gotredirect 1234 payload.so puts,pay_puts,49\r\n```\r\nAttach 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\r\n\r\n```bash\r\n./gotredirect 1234 payload.so puts,pay_puts printf,pay_f,49\r\n```\r\nAttach 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\r\n# Build\r\n1. git clone https://github.com/cyberfined/gotredirect.git \u0026\u0026 cd gotredirect\r\n2. make\r\n\r\n# License\r\nBSD-3-Clause. Read LICENSE file\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyberfined%2Fgotredirect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcyberfined%2Fgotredirect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyberfined%2Fgotredirect/lists"}