{"id":19851883,"url":"https://github.com/stackoverflowexcept1on/ld-preload-trick","last_synced_at":"2025-08-21T07:07:06.461Z","repository":{"id":138029506,"uuid":"599962606","full_name":"StackOverflowExcept1on/ld-preload-trick","owner":"StackOverflowExcept1on","description":"C++ library that is loaded before the binary and hooks the `time` function","archived":false,"fork":false,"pushed_at":"2023-02-13T10:22:30.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-11T13:23:57.966Z","etag":null,"topics":["cmake","cpp20","hooking-template","ld-preload","reverse-engineering"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StackOverflowExcept1on.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-10T09:14:42.000Z","updated_at":"2024-09-20T19:34:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"04b951da-8870-4c44-9cd3-bb9b0baffe60","html_url":"https://github.com/StackOverflowExcept1on/ld-preload-trick","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StackOverflowExcept1on%2Fld-preload-trick","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StackOverflowExcept1on%2Fld-preload-trick/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StackOverflowExcept1on%2Fld-preload-trick/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StackOverflowExcept1on%2Fld-preload-trick/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StackOverflowExcept1on","download_url":"https://codeload.github.com/StackOverflowExcept1on/ld-preload-trick/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241240784,"owners_count":19932620,"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":["cmake","cpp20","hooking-template","ld-preload","reverse-engineering"],"created_at":"2024-11-12T13:33:06.469Z","updated_at":"2025-02-28T21:16:23.033Z","avatar_url":"https://github.com/StackOverflowExcept1on.png","language":"C++","readme":"### ld-preload-trick\n\n[![Build Status](https://github.com/StackOverflowExcept1on/ld-preload-trick/actions/workflows/ci.yml/badge.svg)](https://github.com/StackOverflowExcept1on/ld-preload-trick/actions/workflows/ci.yml)\n\nC++ library that is loaded before the binary and hooks the `time` function\n\n### Requirements\n\n- cmake\n- g++ compiler\n\n### Building\n\n```bash\n./build.sh\n```\n\n### Running\n\n```bash\nLD_PRELOAD=./build/bin/libhook.so ./build/bin/demo\n```\n\n```\n[+] library is loaded\n\n[!] hooked time(...) function\n[!] original time(...) at 0x7fff261f2be0\n    original time(...) = 1675958710\n    patching result to 0\ntime(...) = 0 (in binary)\n\n[-] library has been unloaded\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackoverflowexcept1on%2Fld-preload-trick","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstackoverflowexcept1on%2Fld-preload-trick","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackoverflowexcept1on%2Fld-preload-trick/lists"}