{"id":33196961,"url":"https://github.com/limneos/classdump-dyld","last_synced_at":"2025-11-25T21:01:07.602Z","repository":{"id":12139003,"uuid":"14731695","full_name":"limneos/classdump-dyld","owner":"limneos","description":"Class-dump any Mach-o file without extracting it from dyld_shared_cache","archived":false,"fork":false,"pushed_at":"2022-01-14T23:15:28.000Z","size":30414,"stargazers_count":564,"open_issues_count":13,"forks_count":97,"subscribers_count":38,"default_branch":"master","last_synced_at":"2024-05-18T10:33:52.371Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Logos","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/limneos.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}},"created_at":"2013-11-26T23:00:24.000Z","updated_at":"2024-04-16T02:23:17.000Z","dependencies_parsed_at":"2022-09-10T13:12:18.259Z","dependency_job_id":null,"html_url":"https://github.com/limneos/classdump-dyld","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/limneos/classdump-dyld","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/limneos%2Fclassdump-dyld","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/limneos%2Fclassdump-dyld/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/limneos%2Fclassdump-dyld/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/limneos%2Fclassdump-dyld/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/limneos","download_url":"https://codeload.github.com/limneos/classdump-dyld/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/limneos%2Fclassdump-dyld/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":[],"created_at":"2025-11-16T08:00:28.999Z","updated_at":"2025-11-25T21:01:07.590Z","avatar_url":"https://github.com/limneos.png","language":"Logos","funding_links":[],"categories":["\u003ca id=\"830f40713cef05f0665180d840d56f45\"\u003e\u003c/a\u003eMach-O"],"sub_categories":["\u003ca id=\"9b0f5682dc818c93c4de3f46fc3f43d0\"\u003e\u003c/a\u003e工具"],"readme":"classdump-dyld\n==============\n\nMajor update\n------------\n\nAs of February 5 2016, I have added cycript integration.\n\nYou can now dlopen /usr/lib/libclassdumpdyld.dylib in cycript after injecting any application, \n\nand dlsym the dumpClass and dumpBundle functions.\n\n\textern \"C\" NSString * dumpClass(Class *aClass);\n\t\n\textern \"C\" NSString * dumpBundle(NSBundle *aBundle);\n\t\n\textern \"C\" NSString * dumpBundleForClass(Class *aClass);\n\t\n\nThis is extremely useful in cases when classdump-dyld cannot inject and dump applications.\n\n(This makes weak_classdump project obsolete)\n\nA typical usage in cycript would be:\n\n\t#cycript -p SpringBoard\n\t\n\t@import net.limneos.classdumpdyld;\n\t\n\tclassdumpdyld.dumpClass(SpringBoard);\n\t@\"Wrote file /tmp/SpringBoard.h\"\n\t\n\tclassdumpdyld.dumpBundle([NSBundle mainBundle]);\n\t@\"Wrote all headers to /tmp/SpringBoard\"\n\t\n\t// Dump any bundle other than the main bundle \n\tclassdumpdyld.dumpBundle([NSBundle bundleWithIdentifier:@\"com.apple.UIKit\"]);\n\t@\"Wrote all headers to /tmp/UIKit\"\n\t\n\t// Dump any image loaded in the process using any class name it contains\n\tclassdumpdyld.dumpBundleForClass(CallBarControllerModern);\n\t@\"Wrote all headers to /tmp/CallBar7\"\n\t\n----------------------------- \n\nGeneral Info\n------------\nAdded 64bit executables dumping and single class dumping\n\nA class dumping command line tool that generates header files from app binaries, libraries, frameworks, bundles or the whole dyld_shared_cache.\n\nEliminates the need to extract files from the dyld_shared_cache in order to class-dump them or get symbols.\n\nMass-dumps whole dyld_shared_cache or directories containing any mach-o file recursively.\n\nYou can instantly classdump any compatible Mach-o file, either if it is physically stored on disk or it resides in the dyld_shared_cache.\n\nFeatures and options:\n\t\n   * Classdump files that appear malformed to the usual tools on device.\n   * Classdump files or frameworks on runtime without extracting them from dyld_shared_cache.\n   * Classdump files that reside on disk as usual\n   * Recursively search for compatible files and dump them (e.g. whole directory of \"/System/Library\", \"/Applications\" or \"/\" )\n   * Recursively dump all the images stored in dyld_shared_cache\n   * Generate symbols list for files that are stored in dyld_shared_cache without extracting them.\n   * Generation of all structs, symbols and necessary #imports to correctly fill up each header file. (I pray for that)\n\n\nYou can find a recursive sample output on this project under iphoneheaders. \nIt also works on a Mac for dyld_shared_cache and some libraries\n\n\n-------------------------------\n\n\tUsage: classdump-dyld [\u003coptions\u003e] \u003cfilename|framework\u003e\n\t\n\t\t   classdump-dyld [\u003coptions\u003e] -r \u003csourcePath\u003e\n\t\t   \n\n\tOptions:\n\t\n\t\tStructure:\n\t\t\t-g   Generate symbol names \n\t\t\t-h   Add a \\\"Headers\\\" directory to place headers in\n\t\t\t-b   Build original directory structure in output dir\n\t\t\t-u   Do not include framework when importing headers (\"Header.h\" instead of \u003cframeworkName/Header.h\u003e)\n\n\t\tOutput:\n\t\t\t-o   \u003coutputdir\u003e Save generated headers to defined path\n\n\t\tSingle Class:\n\t\t\t-j   \u003cclassName\u003e Dump only the specified class name. (Does not work with -c or -r )\n                        This might also dump additional imported or required headers.\n\t\t\n\t\tMass dumping: (requires -o)\n\t\t\t-c   Dump all images found in dyld_shared_cache \n\t\t\t-r   \u003csourcepath\u003e Recursively dump any compatible Mach-O file found in the given path (requires -o) \n\t\t\t-s   In a recursive dump, skip header files already found in the same output directory \n\t\t\n\t\tMiscellaneous: \n\t\t\t-D   Enable debug printing for troubleshooting errors\n\t\t\t-e   dpopen 32Bit executables instead of injecting them (iOS 5+, use if defaults fail.This will skip any 64bit executable) \n\t\t\t-a   In a recursive dump, include 'Applications' directories (skipped by default)\n\t\tExamples:\n    \t\tExample 1: classdump-dyld -o outdir /System/Library/Frameworks/UIKit.framework\n    \t\tExample 2: classdump-dyld -o outdir /usr/libexec/backboardd\n\t    \tExample 3 (recursive): classdump-dyld -o outdir -c  (Dumps all files residing in dyld_shared_cache)\n    \t\tExample 4 (recursive): classdump-dyld -o outdir -r /Applications\n    \t\tExample 5 (recursive): classdump-dyld -o outdir -r / -c  (Mass-dumps almost everything on device)\n\n\nUsage limitations\n----------------\nclassdump-dyld works with Mach-o files only.\nSome files have protection against being dynamically loaded from a different process.\nIn those cases, you can use weak_classdump or other tools.\n\t\n\nby Elias Limneos\n----------------\nweb: limneos.net\n\ntwitter: @limneos\n\n\nLicence\n-----------\n\nclassdump-dyld is Copyright (c) 2013-2016 Elias Limneos, licensed under GPLv3.\n\n\nEnvironment\n-----------\nclassdump-dyld works in a command line shell on any iOS 5+ device and Mac OS X. Tested from iOS 5.x to iOS 8.x and Mac OSX 10.8+.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flimneos%2Fclassdump-dyld","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flimneos%2Fclassdump-dyld","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flimneos%2Fclassdump-dyld/lists"}