Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jangaraj/d741a11ef59b6f5abe3ed534c66533c8 to your computer and use it in GitHub Desktop.
Save jangaraj/d741a11ef59b6f5abe3ed534c66533c8 to your computer and use it in GitHub Desktop.
Hello Docker World in 69 bytes
BITS 32
org 0x05000000
db 0x7F, "ELF"
dd 1
dd 0
dd $$
dw 2
dw 3
dd 0x0500001B
dd 0x0500001B
dd 4
mov dl, 19
mov ecx, msg
int 0x80
db 0x25
dw 0x20
dw 0x01
inc eax
int 0x80
msg db 'Hello Docker world!', 10
---------------
$ nasm -f bin -o hello <above_asm>.asm
$ chmod +x hello
$ ./hello
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment