Shellcode Formatter

Convert raw or hex shellcode between C, Python, JavaScript, PowerShell, Bash and Base64 formats, with byte count and bad-character detection. Everything runs offline in your browser session; nothing is uploaded.

8 bytes

  • C
    unsigned char buf[] = "\x31\xc0\x50\x68\x2f\x2f\x73\x68";
  • Python
    buf =  b"\x31\xc0\x50\x68\x2f\x2f\x73\x68"
  • JavaScript
    var buf = "\x31\xc0\x50\x68\x2f\x2f\x73\x68";
  • PowerShell
    [Byte[]] $buf = 0x31,0xc0,0x50,0x68,0x2f,0x2f,0x73,0x68
  • Bash (printf)
    printf '\x31\xc0\x50\x68\x2f\x2f\x73\x68'
  • Hex
    31c050682f2f7368
  • Base64
    McBQaC8vc2g=