Assembly Language Hackery

For a guy who got his start with computers when I did, reverse engineering and assembly language were a way of life. Over the years, I've done less and less work in assembly, though it never seems to go away completely. This page is a collection of miscellany devoted to asm hackery, and is usually updated whenever I'm dragged back into the fray.

x86 References and Resources

Debugging

Handy tip for debugging assembly from GDB (originally from Dmitry Bakhvalov.

   (gdb) disassemble _start
   (Place a breakpoint at _start+1) (If placed at _start the breakpoint
   (gdb) b *0x8048075

   To step thru the code I use the following macro:
   (gdb)define n
   >ni
   >printf "eax=%x ebx=%x ...etc...",$eax,$ebx,...etc...
   >x /8i $pc
   >end

   Then start the program with r command and debug with n.

Reverse Engineering

Reverse engineering is the start of any good hack. Fravia's site is an oldie, but a goodie. CrackZ has a good tutorial page. A list of tools can be found at protools.

Miscellany

One that I've always enjoyed: +ORC stalking.

pintday.org » Fresh every Tuesday.