Skip to content
shellcodes
Authorized Use Only100% local WASM

Shellcode Generator

Quick Start

Target

More techniques are listed as backlog until matching templates exist.

Payload ID:linux/x64/shell_reverse_tcp

Parameters

Transformations

No encoders in pipeline. Add one below.

Available Encoders / Transforms

Transform-only options mutate bytes for formatting or analysis but do not emit a runtime decoder stub. Shikata is self-decoding and limited to x86 payloads.

transform
transform
transform
transform
transform
transform
transform
Bad Characters

0 bad chars selected

Output

Output

Loading WASM…
Local onlyQueued
output
Output appears here after generation.
listener.sh
$nc -lvnp 4444
listener.sh
$nc -lvnp 4444
output
Output auto-generates when the configuration is valid.

How this shellcode generator works

Pick a payload, fill in its parameters (LHOST and LPORT for a reverse shell, a command for exec, a file path for read), optionally chain encoders, and copy the result in the language your exploit is written in. The assembler templates, encoders and output formatting are compiled to WebAssembly and run in your browser tab: no bytes are sent to a server.

Payloads

  • Linux x64: reverse TCP shell, bind TCP shell, exec, setuid + execve, read file, chmod.
  • Linux x86: reverse TCP shell, bind TCP shell, exec, setuid + execve.
  • Windows x64: reverse TCP shell, bind TCP shell, exec.
  • Windows x86: reverse TCP shell, bind TCP shell, exec, MessageBox.
  • macOS x64: exec.

Encoders and bad characters

XOR (single byte), XOR with a 32-bit key, NOT, ADD, SUB and ROT encoders each prepend a small decoder stub. Steps run in the order you stack them. Declare the bytes your target cannot accept (presets for null, CR/LF, space, non-printable and non-alphanumeric bytes, or pick your own) and the generator reports the offset of every forbidden byte still left in the output, instead of silently handing you shellcode that will break. Why the order of encoder passes matters is covered in encoder pipeline order, and null bytes in null bytes in shellcode.

Output formats

C array, C uint8_t array, Python, Go, Rust, PowerShell, Ruby, NASM, hex string, Base64 and raw bytes.

Decoding or checking existing shellcode

To turn shellcode you already have back into readable form, paste it into the converter to switch between formats, or into the assembly playground to disassemble x86, x64, ARM and ARM64 bytes. The walkthrough in how to decode and disassemble shellcode shows the steps.

Compared with msfvenom or writing the assembly yourself, see how to generate shellcode (3 ways, compared). Use the output only on systems you are authorized to test.