shellcode_to_exe
Convert raw shellcode from a file into a Windows executable for execution. Use when you have shellcode from Cobalt Strike, custom C, or malware extraction and need to package it as an EXE.
Instructions
Convert raw shellcode from a file into a Windows executable. Use when you have shellcode from another source (Cobalt Strike, custom C code, or extracted from malware) and need to package it as an EXE for execution. Output: path to the generated executable file.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"shellcode_file": "<shellcode_file>"
},
"name": "shellcode_to_exe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| arch | No | Architecture of the shellcode: x86 (32-bit, default) or x64 (64-bit) | |
| outfile | No | Output executable path (default: auto-generated temp file) | |
| shellcode_file | Yes | Path to file containing raw shellcode bytes |