{"id":13845361,"url":"https://github.com/helviojunior/shellcodetester","last_synced_at":"2025-04-04T14:08:00.755Z","repository":{"id":47513343,"uuid":"191294929","full_name":"helviojunior/shellcodetester","owner":"helviojunior","description":"An application to test windows and linux shellcodes","archived":false,"fork":false,"pushed_at":"2024-11-06T00:48:22.000Z","size":26120,"stargazers_count":92,"open_issues_count":0,"forks_count":30,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-28T13:09:01.771Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/helviojunior.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":"2019-06-11T04:39:58.000Z","updated_at":"2025-03-18T11:12:06.000Z","dependencies_parsed_at":"2022-09-23T12:01:29.125Z","dependency_job_id":"375160df-3ebd-4c2d-bd7e-9c58ea79c431","html_url":"https://github.com/helviojunior/shellcodetester","commit_stats":{"total_commits":50,"total_committers":3,"mean_commits":"16.666666666666668","dds":0.09999999999999998,"last_synced_commit":"21d04ef8ded1eb9d4dd036f2649be744799cfb62"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helviojunior%2Fshellcodetester","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helviojunior%2Fshellcodetester/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helviojunior%2Fshellcodetester/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helviojunior%2Fshellcodetester/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/helviojunior","download_url":"https://codeload.github.com/helviojunior/shellcodetester/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247190250,"owners_count":20898702,"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":[],"created_at":"2024-08-04T17:03:21.665Z","updated_at":"2025-04-04T14:08:00.736Z","avatar_url":"https://github.com/helviojunior.png","language":"Python","readme":"# Shellcode Tester\r\n\r\n[![Build](https://github.com/helviojunior/shellcodetester/actions/workflows/build_and_publish.yml/badge.svg)](https://github.com/helviojunior/shellcodetester/actions/workflows/build_and_publish.yml)\r\n[![Build](https://github.com/helviojunior/shellcodetester/actions/workflows/build_and_test.yml/badge.svg)](https://github.com/helviojunior/shellcodetester/actions/workflows/build_and_test.yml)\r\n[![Downloads](https://pepy.tech/badge/shellcodetester)](https://pepy.tech/project/shellcodetester)\r\n[![Supported Versions](https://img.shields.io/pypi/pyversions/shellcodetester.svg)](https://pypi.org/project/shellcodetester)\r\n[![Contributors](https://img.shields.io/github/contributors/helviojunior/shellcodetester.svg)](https://github.com/helviojunior/shellcodetester/graphs/contributors)\r\n[![PyPI version](https://img.shields.io/pypi/v/shellcodetester.svg)](https://pypi.org/project/shellcodetester/)\r\n[![License: GPL-3.0](https://img.shields.io/pypi/l/shellcodetester.svg)](https://github.com/helviojunior/shellcodetester/blob/master/LICENSE)\r\n\r\nShellcodeTester officially supports Python 3.8+.\r\n\r\n## Main features\r\n\r\n* [x] Assembly ASM file (32 and 64 bits)\r\n* [x] Assembly ASM file to Windows, Linux and MacOS\r\n* [x] Check badchars\r\n* [x] Output to several formats\r\n* [x] NASM Shell\r\n* [x] Other amazing features...\r\n\r\n## Shellcode Tester - Getting stats\r\n\r\n```bash\r\nshellcodetester -asm file.asm\r\n```\r\n\r\nThis command will assembly the ASM file and compile an ELF binary\r\n\r\n```bash\r\n\r\nShellcodeTester v0.2.0 by Helvio Junior (M4v3r1ck)\r\nShellcodeTester is a tool to assembly, compile and test ASM shellcode.\r\nhttps://github.com/helviojunior/shellcodetester\r\n\r\n [+] Startup parameters\r\n     command line: shellcodetester -asm test_linux.asm\r\n     log level: NOTSET\r\n     transform format: RAW\r\n     bad chars: 0x00\r\n\r\n [+] start time 2023-02-12 01:53:56\r\n [+] Assembling x86 file teste_linux.asm to /home/shellcodetester/st_test_linux.o\r\n [+] Compiling x86 binary to /home/shellcodetester/st_test_linux.elf32\r\n [+] Payload size: 65 bytes\r\n [+] Final size of RAW data: 160 bytes\r\n31c0b00431dbb301eb1259ba00000000b220cd8031c0b00131dbcd80e8e9ffffff4c616220303120636f6d706c657461646f20636f6d207375636573736f210a00\r\n\r\n [+] End time 2023-02-12 01:53:56\r\n\r\n```\r\n\r\n## Nasm Shell - Getting stats\r\n\r\n### Assembling\r\n\r\n```bash\r\n$ nasm_shell\r\n┌─[NASM Shell]─[x86 linux]─[ASM → Hex]\r\n└──╼➤ push eax\r\n[+] Payload size: 1 bytes\r\n[+] Final size of RAW data: 2 bytes\r\n50\r\n\r\n[+] Disassembly\r\n   0:\t50                   \tpush   eax\r\n\r\n┌─[NASM Shell]─[x86 linux]─[ASM → Hex]\r\n└──╼➤ push eax ; retn 4\r\n[+] Payload size: 4 bytes\r\n[+] Final size of RAW data: 8 bytes\r\n50c20400\r\n\r\n[+] Disassembly\r\n   0:\t50                   \tpush   eax\r\n   1:\tc2 04 00             \tret    0x4\r\n```\r\n\r\n### Disassembling\r\n\r\n```bash\r\n$ nasm_shell --mode dis\r\n┌─[NASM Shell]─[x86 linux]─[Hex → ASM]\r\n└──╼➤ 50ff501c\r\n[+] Payload size: 4 bytes\r\n[+] Final size of RAW data: 8 bytes\r\n50ff501c\r\n\r\n[+] Disassembly\r\n   0:\t50                   \tpush   eax\r\n   1:\tff 50 1c             \tcall   DWORD PTR [eax+0x1c]\r\n```\r\n\r\n### 64 bits (x86-64)\r\n\r\n```bash\r\n$ nasm_shell --arch x86_64\r\n┌─[NASM Shell]─[x86_64 linux]─[ASM → Hex]\r\n└──╼➤ push rax\r\n[+] Payload size: 1 bytes\r\n[+] Final size of RAW data: 2 bytes\r\n50\r\n\r\n[+] Disassembly\r\n   0:\t50                   \tpush   rax\r\n\r\n┌─[NASM Shell]─[x86_64 linux]─[ASM → Hex]\r\n└──╼➤ push rax ; push rbx\r\n[+] Payload size: 2 bytes\r\n[+] Final size of RAW data: 4 bytes\r\n5053\r\n\r\n[+] Disassembly\r\n   0:\t50                   \tpush   rax\r\n   1:\t53                   \tpush   rbx\r\n```\r\n\r\n## Installation\r\n\r\n```bash\r\npip3 install --upgrade shellcodetester\r\n```\r\n\r\n# Help\r\n\r\n## Shellcodetester\r\n\r\n```bash\r\n$ shellcodetester -h\r\n\r\nShellcodeTester v0.X.X by Helvio Junior (M4v3r1ck)\r\nShellcodeTester is a tool to assembly, compile and test ASM shellcode.\r\nhttps://github.com/helviojunior/shellcodetester\r\n\r\noptions:\r\n  -h, --help                      show this help message and exit\r\n\r\nGeneral Setting:\r\n  -asm [ASM file name]            Assembly file to be assembled\r\n  -o [output file]                Save output to disk (default: none)\r\n\r\nCustom Settings:\r\n  --break-point                   Set software breakpoint (INT3) before shellcode (default: false)\r\n  --bad-chars [bad char list]     List of bad chars to highlight (ex: \\x00\\x0a, default: \\0x00)\r\n  --remove                        Remove bad chars from final binary executable (EXE, ELF and Mach-O). (default: false)\r\n  --cave-size [size]              Code cave size (default: 1024)\r\n  --fill-with-nop                 Fill entire page with NOP (default: false)\r\n  --list                          List all supported output format\r\n  -f [format], --format [format]  Output format (use --list formats to list)\r\n  -v, --verbose                   Shows more options (-h -v). Prints commands and outputs. (default: quiet)\r\n\r\n```\r\n\r\n## Nasmshell\r\n\r\n```bash\r\n$ nasm_shell -h\r\noptions:\r\n  -h, --help                      show this help message and exit\r\n\r\nGeneral Setting:\r\n  --mode [mode]                   Operation mode. (default: assembly, permitted: assembly and disassembly)\r\n  --arch [architecture]           Architecture to assembly/disassembly. (default: x86, permitted: x86_64 and x86)\r\n  --platform [platform]           Platform. (permitted: linux, windows and darwin)\r\n\r\nCustom Settings:\r\n  --bad-chars [bad char list]     List of bad chars to highlight (ex: \\x00\\x0a, default: \\0x00)\r\n  --list                          List all supported output format\r\n  -f [format], --format [format]  Output format (use --list formats to list)\r\n  -v, --verbose                   Shows more options (-h -v). Prints commands and outputs. (default: quiet)\r\n  -q, --quiet                     Quiet mode, not show banners. (default: false)\r\n```\r\n\r\n# Windows Users\r\n\r\nCheck specific instructions by Windows Users\r\n\r\n[Windows Instructions](https://github.com/helviojunior/shellcodetester/blob/master/WINDOWS.md)","funding_links":[],"categories":["Python","Pentesting"],"sub_categories":["ShellCodes"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelviojunior%2Fshellcodetester","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhelviojunior%2Fshellcodetester","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelviojunior%2Fshellcodetester/lists"}