{"id":16820788,"url":"https://github.com/erdii/dumptext","last_synced_at":"2025-08-04T02:12:17.748Z","repository":{"id":202881631,"uuid":"708344549","full_name":"erdii/dumptext","owner":"erdii","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-22T09:34:08.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-24T02:16:17.615Z","etag":null,"topics":["shellcode-development"],"latest_commit_sha":null,"homepage":"","language":"Go","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/erdii.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}},"created_at":"2023-10-22T09:30:51.000Z","updated_at":"2023-10-22T09:32:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"f5a6fc95-d9fd-4421-a861-13a6fe26eaaa","html_url":"https://github.com/erdii/dumptext","commit_stats":null,"previous_names":["erdii/dumptext"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erdii%2Fdumptext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erdii%2Fdumptext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erdii%2Fdumptext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erdii%2Fdumptext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erdii","download_url":"https://codeload.github.com/erdii/dumptext/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244060543,"owners_count":20391553,"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":["shellcode-development"],"created_at":"2024-10-13T10:58:07.129Z","updated_at":"2025-03-17T15:45:50.057Z","avatar_url":"https://github.com/erdii.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dumptext\n\ndump an ELF's .text section in various formats and optionally verify that it does not contain any null bytes.\n\n## Installation\n\n`go install github.com/erdii/dumptext@main`\n\n\n## Usage\n\n```\nUsage: dumptext path/to/elf/binary\nUsage: cat path/to/elf/binary | dumptext\nDescription: Reads the .text section from an ELF binary and dumps (optionally formatted) bytes to stdout.\nFlags:\n        Envvar: FORMAT=escape(default)|dump|raw - specifies output format.\n        Envvar: VALIDATE=1 - validates that there are no null bytes in the data.\n```\n\n## Formats\n\n### Raw\n\nDumps raw bytes from the `.text` section in the host's native endianness.\n\n### Escape\n\nDumps the bytes from the `.text` section as a hex-escaped string. Handy for copy-pasting into terminals or code.\n\nExample:\n\n```bash\nnasm -f elf64 misc/example-shellcode.asm -o /dev/stdout | FORMAT=escape dumptext\n# =\u003e\n# \\x6a\\x31\\x58\\x99\\xcd\\x80\\x89\\xc3\\x89\\xc1\\x6a\\x46\\x58\\xcd\\x80\\xb0\\x0b\\x52\\x68\\x6e\\x2f\\x73\\x68\\x68\\x2f\\x2f\\x62\\x69\\x89\\xe3\\x89\\xd1\\xcd\\x80\n```\n\n### Dump\n\nPrints a hexdump of the bytes in the `.text section`.\n\nExample:\n\n```bash\nnasm -f elf64 misc/example-shellcode.asm -o /dev/stdout | FORMAT=dump dumptext\n# =\u003e\n# 00000000  6a 31 58 99 cd 80 89 c3  89 c1 6a 46 58 cd 80 b0  |j1X.......jFX...|\n# 00000010  0b 52 68 6e 2f 73 68 68  2f 2f 62 69 89 e3 89 d1  |.Rhn/shh//bi....|\n# 00000020  cd 80                                             |..|\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferdii%2Fdumptext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferdii%2Fdumptext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferdii%2Fdumptext/lists"}