While working through some of the corelan.be
tutorials I came across the “assemble” functionality in windbg which
allows you to lookup the opcodes of assembly instructions. I have
previously used an online assembler for this sort of functionality
before located at
defuse.ca but I wanted
the ability to lookup the instructions on the command line without
going to the web. I looked into the functionality of gdb
and nasm
but it doesn’t appear that either provide this sort of functionality
so…
Here is a little shell function I put in my .bashrc
:
This lets us lookup opcodes for assembly like: