ďťż

Ładny brzuch

.global _start _start:    call _tutaj _tutaj:    popl %ebx    addl _str - _tutaj, %ebx    movl %ebx, 0x8(%ebx)    xor %ecx, %ecx    movl %ecx, 0xc(%ebx)    mov %ebx, %ecx    inc %ecx    inc %ecx    inc %ecx    inc %ecx    inc %ecx    inc %ecx    inc %ecx    inc %ecx    mov %ecx, %edx    movl $11, %eax    int $0x80 _str:    .string "/bin/sh"

Powinno odpalic /bin/sh, a dostaje blad segmentacji (segmentation fault (core dumped)). Ktos wie co jest nie tak ? Kompiluje to pod FreeBSD.



Czytałeś? http://www.linuxfan.....2002/3621.php3

  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • zsf.htw.pl
  •