{"id":20620583,"url":"https://github.com/blacklight/asmash","last_synced_at":"2025-07-23T12:03:38.484Z","repository":{"id":602210,"uuid":"238331","full_name":"blacklight/ASMash","owner":"blacklight","description":"A tiny library for runtime disassembling/assembling binary/Assembly code","archived":false,"fork":false,"pushed_at":"2009-06-30T15:59:21.000Z","size":114,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-15T12:17:46.749Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://0x00.ath.cx/prog/elfshark","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blacklight.png","metadata":{"files":{"readme":"README","changelog":"ChangeLog","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":"2009-06-28T18:32:28.000Z","updated_at":"2022-06-19T16:25:52.000Z","dependencies_parsed_at":"2022-08-06T09:16:00.861Z","dependency_job_id":null,"html_url":"https://github.com/blacklight/ASMash","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/blacklight/ASMash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blacklight%2FASMash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blacklight%2FASMash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blacklight%2FASMash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blacklight%2FASMash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blacklight","download_url":"https://codeload.github.com/blacklight/ASMash/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blacklight%2FASMash/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266673530,"owners_count":23966372,"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-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":"2024-11-16T12:14:55.304Z","updated_at":"2025-07-23T12:03:38.464Z","avatar_url":"https://github.com/blacklight.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"libASMash is a tiny library for disassembling and assembling (TODO) Assembly / machine code\nfor x86 architecture. It currently supports disassembling of binary \"as it is\" code (take a\nlook at the tiny example in the examples/ directory to understand what it means) and from ELF\nfiles (this feature is still *VERY* experimental and I suggest you not to try it until new\norder, as get_executable_elf_code() function is still an open yard and so far it can't\ncorrectly recognize the end of the .text segment inside an ELF file yet). TODO: disassembling\nWindows PE executable files.\n\nAll I suggest you to use now is decode_to_asm() function, that will get 4 parameters:\n\n1. Executable binary code, just as a unsigned char[] array;\n2. The length, in bytes, of the executable code;\n3. The initial address of the binary code (0 if it doesn't matter, the true address if you\n   disassembled that code from an ELF/PE executable file);\n4. Options. The only options you should care are INTEL_FLAVOUR and AT_FLAVOUR. They respectly\n   set the output format to Intel (default) or AT\u0026T format. Other options specified in elfshark.h\n   are generally just used by the library code and you should not care about, but if you *REALLY*\n   wish to add options you can just OR them together (e.g. AT_FLAVOUR|BITS_16).\n\nOnce installed, you can compile your source using ASMash by adding -lelfshark to your command\nline or by explicitly adding the library file to your linker options.\n\nby BlackLight \u003cblacklight@0x00.ath.cx\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblacklight%2Fasmash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblacklight%2Fasmash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblacklight%2Fasmash/lists"}