Vulnerability Development mailing list archives

Re: Generating shellcode


From: Simon 'corecode' Schubert <corecode () corecode ath cx>
Date: Sun, 19 May 2002 18:03:29 -0700

"Ryn" <mattyml () daemons net> wrote:

Howdy,

Do any documents exist explaining how to covert assembly op codes and
operands to hex? I can use "gdb" or "dis" on Solaris to get:

bc 10 20 00        clr          %fp
e0 03 a0 40        ld           [%sp + 64], %l0
a2 03 a0 44        add          %sp, 68, %l1
9c 23 a0 20        sub          %sp, 32, %sp
80 90 00 01        orcc         %g0, %g1, %g0

I want to see how to get column 1 - 4 by hand.

you write the assembler code (or c code) and compile it. after that use objdump to get the bytecode.

cheerz
  corecode


Current thread: