Search

5/23/2006

How Shellcodes Work

How Shellcodes Work

  • shell code不能有data segment
    The problem is that both programs use their own data segments, which means that they cannot execute inside another application. This means in chain that an exploit will not be able to inject the required code into the stack and execute it.
  • eax存的是function codes(can be found in /usr/include/asm/unistd.h), ebx存的是第一各parameter, ecx存的是第二各parameter,...
  • array的話反著push進去stack, esp(enhanced stack pointer)會儲存stack的top element address
  • int 0x80 ; Call the kernel to make the system call happen

Related Shellcodes links

tag: hack shell code programming

沒有留言: