23
Irfann
7y

section .text
global _start

_start:
mov edx,len
mov ecx,msg
mov ebx,1
mov eax,4
int 0x80
mov eax,1
int 0x80

section .data

msg db 'Yo Mama So Fat',0xa
len equ $ - msg

Comments
  • 2
    But but... This uses Linux kernel
  • 1
    Very Nice
  • 1
    What's the difference between int and syscall?
  • 1
    @ynnuW AFAIK, an Interruption it's a direct call to the hardware, whereas a syscall it's about calling a software function (usually defined in the kernel running)
  • 0
    @FrodoSwaggins Yeah, I was just saying in general so to speak. I've had my fair share of fun with NASM and x64, it drove me nuts sometimes, but having a syscall table and Linux docs at reach, it all went well.
  • 0
    @ynnuW int is a syscall :P
  • 1
    You using a bizarre way of feeding the data. I usually feed in the order
    Eax
    Ebx
    Ecx
    Edx
Add Comment