{"id":34070694,"url":"https://github.com/sledgeh4w/fishbones","last_synced_at":"2025-12-14T07:28:55.885Z","repository":{"id":36959831,"uuid":"486485274","full_name":"sledgeh4w/fishbones","owner":"sledgeh4w","description":"Library for implementing decompiled code with Python.","archived":false,"fork":false,"pushed_at":"2023-08-31T07:34:02.000Z","size":208,"stargazers_count":36,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-28T03:27:20.627Z","etag":null,"topics":["decompile","ghidra","ida","python","reverse-engineering"],"latest_commit_sha":null,"homepage":"","language":"Python","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/sledgeh4w.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","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,"roadmap":null,"authors":null}},"created_at":"2022-04-28T07:11:23.000Z","updated_at":"2024-12-11T09:53:45.000Z","dependencies_parsed_at":"2024-01-09T07:33:41.531Z","dependency_job_id":"c5831cb0-96a6-4b8b-9227-fcba7f4909b6","html_url":"https://github.com/sledgeh4w/fishbones","commit_stats":null,"previous_names":["sh4ww/gravitum"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/sledgeh4w/fishbones","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sledgeh4w%2Ffishbones","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sledgeh4w%2Ffishbones/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sledgeh4w%2Ffishbones/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sledgeh4w%2Ffishbones/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sledgeh4w","download_url":"https://codeload.github.com/sledgeh4w/fishbones/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sledgeh4w%2Ffishbones/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286079811,"owners_count":27282121,"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","status":"online","status_checked_at":"2025-11-25T02:00:05.816Z","response_time":54,"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":["decompile","ghidra","ida","python","reverse-engineering"],"created_at":"2025-12-14T07:28:55.292Z","updated_at":"2025-12-14T07:28:55.879Z","avatar_url":"https://github.com/sledgeh4w.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fishbones\n\n[![build](https://github.com/sledgeh4w/fishbones/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/sledgeh4w/fishbones/actions/workflows/tests.yml)\n![PyPI](https://img.shields.io/pypi/v/fishbones)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/fishbones)\n[![GitHub license](https://img.shields.io/github/license/sledgeh4w/fishbones)](https://github.com/sledgeh4w/fishbones/blob/main/LICENSE)\n\nFishbones is a library for implementing decompiled code with Python.\n\n## Requirements\n\n- Python 3.6+\n\n## Installation\n\n```\n$ pip install fishbones\n```\n\n## Usage\n\nFishbones defines fixed-width integers. You can use shorthand functions (`int8`, `int16`, `int32`, `int64`, `uint8`, `uint16`, `uint32`, `uint64`) to create them.\n\n```python\nfrom fishbones import uint8\n\nv = uint8(0x53)\n```\n\nPointer operations are common in the decompiled code.\n\n```c\nunsigned __int8 data[8] = {71, 114, 97, 118, 105, 116, 117, 109};\n\nunsigned __int8 *p = data;\nunsigned __int8 v = p[4];\n\n*((unsigned __int32 *)p + 1) = v;\n```\n\nSo Fishbones provides `vptr`.\n\n```python\nfrom fishbones import vptr\n\ndata = bytearray([71, 114, 97, 118, 105, 116, 117, 109])\n\np = vptr(data, 'uint8')\nv = p.add(4).read()\n\np.cast('uint32').add(1).write(v)\n```\n\nIn some cases, decompilers may use their built-in functions in the output. Fishbones implements some functions from IDA and Ghidra. You can look up from `fishbones.decompiler_builtins`.\n\n```python\nfrom fishbones import uint32\nfrom fishbones.decompiler_builtins.ida import ror4\n\nv = uint32(0x53683477)\nv = ror4(v, 2)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsledgeh4w%2Ffishbones","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsledgeh4w%2Ffishbones","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsledgeh4w%2Ffishbones/lists"}