{"id":14241743,"url":"https://github.com/rednaga/frida-stack","last_synced_at":"2026-02-27T20:37:08.656Z","repository":{"id":243952509,"uuid":"813865061","full_name":"rednaga/frida-stack","owner":"rednaga","description":"Getting better stacks and backtraces in Frida","archived":false,"fork":false,"pushed_at":"2026-02-20T20:06:48.000Z","size":50,"stargazers_count":61,"open_issues_count":0,"forks_count":14,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-21T01:41:51.433Z","etag":null,"topics":["android","frida","reverse-engineering","security","stacks"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/frida-stack","language":"TypeScript","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/rednaga.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-06-11T22:31:56.000Z","updated_at":"2026-02-20T20:06:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"85f28618-cca4-41ba-b77c-96314c323fbd","html_url":"https://github.com/rednaga/frida-stack","commit_stats":null,"previous_names":["rednaga/frida-stack"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/rednaga/frida-stack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rednaga%2Ffrida-stack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rednaga%2Ffrida-stack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rednaga%2Ffrida-stack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rednaga%2Ffrida-stack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rednaga","download_url":"https://codeload.github.com/rednaga/frida-stack/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rednaga%2Ffrida-stack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29912362,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T19:37:42.220Z","status":"ssl_error","status_checked_at":"2026-02-27T19:37:41.463Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["android","frida","reverse-engineering","security","stacks"],"created_at":"2024-08-21T11:01:05.809Z","updated_at":"2026-02-27T20:37:08.636Z","avatar_url":"https://github.com/rednaga.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# frida-stack\n\nSmall frida module for ensuring you get the stack information you wanted.\n\n## What?\n\nOften when using [Frida](https://github.com/frida/frida), I would run into issues\nwith wanting specific stack traces. Then I realized I didn't have a specific context\nwindow, or the stack traces didn't contain the correct shared libraries in them. This\nresulted in me re-writing the same functions all the time.\n\nIn other instances, mostly when reverse engineering heavily obfuscated or packed code,\nI would have discovered functions or places in memory which had been created without any\nexports available. This would lead to questions like, what process/library owned this? Where\nam I inside those libraries?\n\nTo answer the above questions, I wrapped some of the standard `Thread.Backtrace` functions\nand added some scanning of the `Process` memory ranges.\n\n## Installing\n\n```sh\n$ npm install frida-stack\n```\n\n## Usage\n\n```typescript\n\nimport { Stack } from 'frida-stack'\n\nfunction hook_exit() {\n  const _exitPtr = Process.findModuleByName(\"libc.so\")?.findExportByName(\"_exit\");\n\n  if (_exitPtr) {\n    const _exit = new NativeFunction(_exitPtr, 'int', ['int']);\n\n    Interceptor.replace(\n      _exitPtr,\n      new NativeCallback(\n        function (status) {\n          console.log(`[+] _exit : ${status} from ${Stack.getModuleInfo(this.context.pc)}`);\n\t        console.log(Stack.native(this.context)\n          return _exit(status);\n        },\n        'int',\n        ['int'],\n      ),\n    );\n  }\n}\n```\n\nOutput:\n```\n[Pixel 4::com.example.package ]-\u003e [+] _exit : 0 from 0x7713d25000 libexamplesharedlib.so:0x1aae8\n0x7713d25000 libexamplesharedlib.so:0x1aae8\n```\n\nNow you have a library and the exact offset into the library for reversing.\n\n\n## License\n\n```\nCopyright 2020-2025 Tim 'diff' Strazzere \u003cdiff@protonmail.com\u003e\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n   http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frednaga%2Ffrida-stack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frednaga%2Ffrida-stack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frednaga%2Ffrida-stack/lists"}