Vulnerability Development mailing list archives

Re: Generating shellcode


From: Ulf H{rnhammar <ulfh () Update UU SE>
Date: Sun, 19 May 2002 19:02:18 +0200

On Sun, May 19, 2002 at 10:29:05AM -0400, Ryn wrote:
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.

The documentation for the processor usually lists the op-codes. If it doesn't, it should be available for downloading 
at the processor vendor's web site.

// Ulf Harnhammar
ulfh () update uu se


Current thread: