Skip to content

Instantly share code, notes, and snippets.

@lolarobins
Created June 14, 2022 01:03
Show Gist options
  • Save lolarobins/43363f2c1599022fc2a79e62c4b168da to your computer and use it in GitHub Desktop.
Save lolarobins/43363f2c1599022fc2a79e62c4b168da to your computer and use it in GitHub Desktop.
trans flag in assembly
global _start
section .data
msg db 0x1b, "[46;1m ", 0x1b, "[0m", 0x0a, 0x1b, "[45;1m ", 0x1b, "[0m", 0x0a, 0x1b, "[47;1m ", 0x1b, "[0m", 0x0a, 0x1b, "[45;1m ", 0x1b, "[0m", 0x0a, 0x1b, "[46;1m ", 0x1b, "[0m", 0x0a
len equ $ - msg
section .print
_start:
mov eax, 4
mov ebx, 1
mov ecx, msg
mov edx, len
int 0x80
mov eax, 1
mov ebx, 0
int 0x80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment