Created
June 14, 2022 01:03
-
-
Save lolarobins/43363f2c1599022fc2a79e62c4b168da to your computer and use it in GitHub Desktop.
trans flag in assembly
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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