{"id":13831955,"url":"https://github.com/blacktop/go-apfs","last_synced_at":"2025-04-09T20:02:52.978Z","repository":{"id":38939850,"uuid":"404906255","full_name":"blacktop/go-apfs","owner":"blacktop","description":"APFS parser written in pure Go","archived":false,"fork":false,"pushed_at":"2025-02-27T07:11:37.000Z","size":387,"stargazers_count":73,"open_issues_count":4,"forks_count":5,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-09T20:02:31.613Z","etag":null,"topics":["apfs","apfs-volumes","dmg","file-recovery","golang","parser"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blacktop.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-10T00:16:49.000Z","updated_at":"2025-02-27T07:11:41.000Z","dependencies_parsed_at":"2023-12-15T17:27:46.412Z","dependency_job_id":"0fda1458-9e0b-4a73-aec3-a871579e6728","html_url":"https://github.com/blacktop/go-apfs","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blacktop%2Fgo-apfs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blacktop%2Fgo-apfs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blacktop%2Fgo-apfs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blacktop%2Fgo-apfs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blacktop","download_url":"https://codeload.github.com/blacktop/go-apfs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248103865,"owners_count":21048245,"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":["apfs","apfs-volumes","dmg","file-recovery","golang","parser"],"created_at":"2024-08-04T10:01:45.456Z","updated_at":"2025-04-09T20:02:52.926Z","avatar_url":"https://github.com/blacktop.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# [WIP] go-apfs 🚧\n\n[![Go](https://github.com/blacktop/go-apfs/actions/workflows/go.yml/badge.svg)](https://github.com/blacktop/go-apfs/actions/workflows/go.yml) [![Go Reference](https://pkg.go.dev/badge/github.com/blacktop/go-apfs.svg)](https://pkg.go.dev/github.com/blacktop/go-apfs) [![GitHub](https://img.shields.io/github/license/blacktop/go-apfs)](https://github.com/blacktop/go-apfs/blob/main/LICENSE)\n\n\u003e APFS parser written in pure Go\n\n---\n\nOriginally from this [ipsw branch](https://github.com/blacktop/ipsw/tree/feature/apfs-parser)\n\n## Install\n\n```bash\ngo get github.com/blacktop/go-apfs\n```\n\n### `apfs` *cli*\n\nInstall\n\n```bash\ngo install github.com/blacktop/go-apfs/cmd/apfs@latest\n```\n\nWith [Homebrew](https://brew.sh)\n\n```bash\nbrew install blacktop/tap/apfs\n```\n\n\u003e OR download from [Releases](https://github.com/blacktop/go-apfs/releases/latest)\n\nBuild\n\n```bash\ngit clone https://github.com/blacktop/go-apfs.git\ncd go-apfs\nmake build\n```\n\n#### List files\n\nExtract filesystem DMG from IPSW using [ipsw](https://github.com/blacktop/ipsw)\n\n```bash\n❯ ipsw extract --dmg IPSW\n   • Extracting File System DMG\n   • Created 018-62379-017.dmg\n```\n\nList the `/` directory\n\n```bash\n❯ apfs ls 018-62379-017.dmg\n\nDT_DIR - 06Jun21 02:54:21 - .ba\nDT_DIR - 06Jun21 02:54:22 - .mb\nDT_DIR - 06Jun21 02:54:22 - Applications\nDT_DIR - 06Jun21 02:54:54 - Developer\nDT_DIR - 06Jun21 02:54:54 - Library\nDT_DIR - 06Jun21 02:55:03 - System\nDT_DIR - 06Jun21 03:01:39 - bin\nDT_DIR - 06Jun21 03:01:39 - cores\nDT_DIR - 06Jun21 03:01:39 - dev\nDT_DIR - 06Jun21 03:01:39 - private\nDT_DIR - 06Jun21 03:01:39 - sbin\nDT_DIR - 06Jun21 03:01:39 - usr\nDT_LNK - 06Jun21 03:01:39 - etc\nDT_LNK - 06Jun21 03:01:39 - tmp\nDT_LNK - 06Jun21 03:01:53 - var\nDT_REG - 06Jun21 02:54:21 - .file\n```\n\n#### Cat files\n\n```bash\n❯ apfs cat APFS.dmg /System/Library/FeatureFlags/Global.plist\n```\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003c!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\"\u003e\n\u003cplist version=\"1.0\"\u003e\n\u003cdict\u003e\n        \u003ckey\u003eSiriUI\u003c/key\u003e\n        \u003cdict\u003e\n                \u003ckey\u003ePym\u003c/key\u003e\n                \u003cdict\u003e\n                        \u003ckey\u003eEnabled\u003c/key\u003e\n                        \u003ctrue/\u003e\n```\n\n#### Copy files\n\n```bash\n❯ apfs cp APFS.dmg /System/Library/Caches/com.apple.dyld/dyld_shared_cache_arm64e\n```\n\n```bash\n❯ ls -lah dyld_shared_cache_arm64e\n\n-rwxr-xr-x  1 blacktop  staff   1.4G Sep  9 23:56 dyld_shared_cache_arm64e\n```\n\n## Spec\n\nSupports up to version **2020-06-22** of the **APFS** [specification](https://developer.apple.com/support/downloads/Apple-File-System-Reference.pdf)\n\n## License\n\nApache 2.0 Copyright (c) 2020-2023 **blacktop**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblacktop%2Fgo-apfs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblacktop%2Fgo-apfs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblacktop%2Fgo-apfs/lists"}