{"id":19446878,"url":"https://github.com/trimscash/texthex","last_synced_at":"2025-04-25T01:32:23.066Z","repository":{"id":118309210,"uuid":"610346423","full_name":"trimscash/texthex","owner":"trimscash","description":"Read text section bytes and format it for shellcode (64bit ELF only)","archived":true,"fork":false,"pushed_at":"2024-02-19T18:12:38.000Z","size":1671,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-25T08:44:39.643Z","etag":null,"topics":["cli","elf","elf-parser","exploiting","hex-converter","readelf","shellcode","shellcode-convert","tool"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/trimscash.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,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-03-06T15:35:00.000Z","updated_at":"2024-05-15T05:06:37.000Z","dependencies_parsed_at":"2024-02-19T19:34:40.961Z","dependency_job_id":"59dd8339-0e95-4aed-b3fd-de925457eadb","html_url":"https://github.com/trimscash/texthex","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trimscash%2Ftexthex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trimscash%2Ftexthex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trimscash%2Ftexthex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trimscash%2Ftexthex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trimscash","download_url":"https://codeload.github.com/trimscash/texthex/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250738188,"owners_count":21479145,"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":["cli","elf","elf-parser","exploiting","hex-converter","readelf","shellcode","shellcode-convert","tool"],"created_at":"2024-11-10T16:15:30.141Z","updated_at":"2025-04-25T01:32:22.804Z","avatar_url":"https://github.com/trimscash.png","language":"Rust","readme":"\nThere is a new version.\n### elfmt\nhttps://github.com/trimscash/elfmt\n\n# texthex\nRead text section bytes and format it for shellcode(64bit ELF only)\n![image](https://user-images.githubusercontent.com/42578480/223371873-dcd30c53-cd1e-44ad-882c-68c33c824e71.png)\n\n# Setup\n```\ngit clone https://github.com/trimscash/texthex ~\ncd texthex\ncargo build -r\necho \"export PATH=\\$PATH:\\$HOME/texthex/target/release\" \u003e\u003e ~/.zshrc\nsource ~/.zshrc\n```\nand use it. \nReplace .zshrc with the one you are using\n\n# Usage\n```\nRead text section bytes and format it (64bit ELF only)\nWithout option, it just print text section bytes\n\nUsage: texthex [OPTIONS] \u003cFILE\u003e\n\nArguments:\n  \u003cFILE\u003e\n\nOptions:\n  -s, --string-mode  Ex: \\x55\\x48\\x89\\xe5\\x48\n  -a, --array-mode   Ex: 0x55, 0x48, 0x89, 0xe5, 0x48\n  -p, --python-mode  Ex: python3 -c 'import sys; sys.stdout.buffer.write(b\"\\x55\\x48\\x89\\xe5\\x48\")'\n  -w, --write-mode   Direct stdout. If you choose this option, other option will be ignore\n  -h, --help         Print help\n```\n\n# Example\n```\n$ texthex test.elf\n554889e548c7c03b000000488d3c2524104000488d3425361040006a004889e20f05c9c32f62696e2f6361740063617400666c6167002d1040000000000031104000000000000000000000000000\n```\n\n```\n$ texthex test.elf -asp\n\\x55\\x48\\x89\\xe5\\x48\\xc7\\xc0\\x3b\\x00\\x00\\x00\\x48\\x8d\\x3c\\x25\\x24\\x10\\x40\\x00\\x48\\x8d\\x34\\x25\\x36\\x10\\x40\\x00\\x6a\\x00\\x48\\x89\\xe2\\x0f\\x05\\xc9\\xc3\\x2f\\x62\\x69\\x6e\\x2f\\x63\\x61\\x74\\x00\\x63\\x61\\x74\\x00\\x66\\x6c\\x61\\x67\\x00\\x2d\\x10\\x40\\x00\\x00\\x00\\x00\\x00\\x31\\x10\\x40\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\n\n0x55, 0x48, 0x89, 0xe5, 0x48, 0xc7, 0xc0, 0x3b, 0x00, 0x00, 0x00, 0x48, 0x8d, 0x3c, 0x25, 0x24, 0x10, 0x40, 0x00, 0x48, 0x8d, 0x34, 0x25, 0x36, 0x10, 0x40, 0x00, 0x6a, 0x00, 0x48, 0x89, 0xe2, 0x0f, 0x05, 0xc9, 0xc3, 0x2f, 0x62, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x74, 0x00, 0x63, 0x61, 0x74, 0x00, 0x66, 0x6c, 0x61, 0x67, 0x00, 0x2d, 0x10, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x31, 0x10, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00\n\npython3 -c 'import sys; sys.stdout.buffer.write(b\"\\x55\\x48\\x89\\xe5\\x48\\xc7\\xc0\\x3b\\x00\\x00\\x00\\x48\\x8d\\x3c\\x25\\x24\\x10\\x40\\x00\\x48\\x8d\\x34\\x25\\x36\\x10\\x40\\x00\\x6a\\x00\\x48\\x89\\xe2\\x0f\\x05\\xc9\\xc3\\x2f\\x62\\x69\\x6e\\x2f\\x63\\x61\\x74\\x00\\x63\\x61\\x74\\x00\\x66\\x6c\\x61\\x67\\x00\\x2d\\x10\\x40\\x00\\x00\\x00\\x00\\x00\\x31\\x10\\x40\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\")'\n```\n\n```\n$ texthex test.elf -w\nUH��H��;H�\u003c%$\u0010@H�4%6\u0010@jH��\u0005��/bin/catcatflag-\u0010@1\u0010@\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrimscash%2Ftexthex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrimscash%2Ftexthex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrimscash%2Ftexthex/lists"}