Skip to content

Instantly share code, notes, and snippets.

@itsecurityco
Created January 28, 2018 05:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save itsecurityco/52866d2cbb8b38666e94923b2a171266 to your computer and use it in GitHub Desktop.
Save itsecurityco/52866d2cbb8b38666e94923b2a171266 to your computer and use it in GitHub Desktop.
x86 instructions to opcode
#!/bin/bash
# x86 instructions to opcode
# Autor: @itseco
# Usage: ./shell_nasm "Here the shellcode..."
perl -e 'print "'$1'"' > /tmp/shellcode && ndisasm -b 32 /tmp/shellcode && rm -f /tmp/shellcode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment