Skip to content

Instantly share code, notes, and snippets.

@olivierlemoal
Last active August 29, 2015 14:27
Show Gist options
  • Save olivierlemoal/e5962d196848e9de9904 to your computer and use it in GitHub Desktop.
Save olivierlemoal/e5962d196848e9de9904 to your computer and use it in GitHub Desktop.
section .text
global _start
_start:
call obfuscate
str1:
msg db 'Hello World!',0xa
len equ $ - msg
obfuscate:
mov edx,len ;message length
pop ecx ;ecx is now a pointer to msg
mov ebx,1 ;file descriptor (stdout)
mov eax,4 ;system call number (sys_write)
int 0x80 ;call kernel
mov eax,1 ;system call number (sys_exit)
int 0x80 ;call kernel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment