Bonsoir à tous!!!
Est-ce que vous allez bien ce soir???
Voila, je cherche à comprendre un code source en assembleur mais j’avoue que j’ai quelques difficultés.
[code];pyrofreak.asm
[SECTION .text]
global _start
_start:
jmp short ender
starter:
xor eax, eax ;clean up the registers
xor ebx, ebx
xor edx, edx
xor ecx, ecx
mov al, 4 ;syscall write
mov bl, 1 ;stdout is 1
pop ecx ;get the address of the string from the stack
mov dl, 26 ;length of the string
int 0x80
xor eax, eax
mov al, 1 ;exit the shellcode
xor ebx,ebx
int 0x80
ender:
call starter ;put the address of the string on the stack
db 'hello world '[/code]Il est censé affiché hello world mais a chaque fois que je test j'obtiens un segfault.
2 questions :
- Le sources n’etant pas de moi serait il possible que l’on puisse me donner quelques infos dessus.
- Il y a t il une erreur dans ce code source qui me fasse ce segfault ou est ce a cause de ma compilation???