{"id":19299013,"url":"https://github.com/guitmz/offsetter","last_synced_at":"2026-06-13T02:32:30.408Z","repository":{"id":57562556,"uuid":"202329943","full_name":"guitmz/offsetter","owner":"guitmz","description":"Convert between file offsets and virtual addresses with Go","archived":false,"fork":false,"pushed_at":"2019-08-22T09:36:23.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-17T02:03:53.517Z","etag":null,"topics":["debugging","golang","reverse-engineering"],"latest_commit_sha":null,"homepage":"https://www.guitmz.com","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/guitmz.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}},"created_at":"2019-08-14T10:39:15.000Z","updated_at":"2022-11-09T18:04:15.000Z","dependencies_parsed_at":"2022-09-16T10:40:35.181Z","dependency_job_id":null,"html_url":"https://github.com/guitmz/offsetter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/guitmz/offsetter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guitmz%2Foffsetter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guitmz%2Foffsetter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guitmz%2Foffsetter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guitmz%2Foffsetter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guitmz","download_url":"https://codeload.github.com/guitmz/offsetter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guitmz%2Foffsetter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34270414,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["debugging","golang","reverse-engineering"],"created_at":"2024-11-09T23:09:49.858Z","updated_at":"2026-06-13T02:32:30.388Z","avatar_url":"https://github.com/guitmz.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# offsetter\n[![Go Report Card](https://goreportcard.com/badge/github.com/guitmz/offsetter)](https://goreportcard.com/report/github.com/guitmz/offsetter)\n\nSmall package to convert between file offsets and virtual addresses (partialy inspired by some code of [pwnlib](https://github.com/Gallopsled/pwntools/tree/dev/pwnlib)). For the moment, only `ELF` files are supported.\n\n# Install\nInstall with `go get -u github.com/guitmz/offsetter`\n\n# Example\n```\n$ cat example.go\n```\n\n ```go\n package main\n\nimport (\n\t\"debug/elf\"\n\t\"fmt\"\n\n\t\"github.com/guitmz/offsetter\"\n)\n\nfunc check(err error) {\n\tif err != nil {\n\t\tpanic(err)\n\t}\n}\n\nfunc main() {\n\ttargetFile, err := elf.Open(\"/bin/ls\")\n\tcheck(err)\n\tdefer targetFile.Close()\n\n\tloadAddress, err := offsetter.GetLoadAddress(targetFile)\n\tcheck(err)\n\n\thexOffset, uintOffset, err := offsetter.VaddrToOffset(targetFile, loadAddress, targetFile.Entry)\n\tcheck(err)\n\tfmt.Printf(\"Offset: %s (%d)\\n\", hexOffset, uintOffset)\n\n\thexVaddr, uintVaddr, err := offsetter.OffsetToVaddr(targetFile, uintOffset)\n\tcheck(err)\n\tfmt.Printf(\"Vaddr: %s (%d)\\n\", hexVaddr, uintVaddr)\n}\n```\n\n```\n$ go run example.go\nOffset: 0x42d4 (17108)\nVaddr: 0x4042d4 (4211412)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguitmz%2Foffsetter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguitmz%2Foffsetter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguitmz%2Foffsetter/lists"}