Old school ascii shellcode -


this part of ascii shellcode set eax @ 0 , instruction (%...). in debugger , in pratice pic code work time why? , instruction algorithme is:

operand target ← operand target ∩ operande source flag cf ← 0 flag of ← 0  

it's possible eax register not set 0 if previous value of eax not good?

#include <stdlib.h>  int main() {     asm("\         , eax, 0x454e4f4a;\         , eax, 0x3a313035;\         ");      return 0; } 

compilation line:

gcc -m32  -w -wall -std=gnu99 -masm=intel -g eaxzero.c -o eaxzero 

gdb instruction:

    (gdb)   b 5 ..     (gdb)   r ..     (gdb)   x/i $eip ..     (gdb)   x/x $eax ..     (gdb)   nexti ..     (gdb)   x/x $eax ..     (gdb)   nexti ..     (gdb)   x/x $eax .. 


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -