Skip to main content
Back to challenges

Reverse Engineering · Capture the flag

Simple Password Check

Beginner · 2/5
FreeApprentice rank required60 points on first solo solve

Challenge brief

Analyze this password checking function and find the correct password.

Disassembly

check_password:
    push rbp
    mov rbp, rsp
    mov rax, [rdi]                    ; Load first 8 bytes of input
    mov rcx, 0x1337133713371337       ; XOR key
    xor rax, rcx
    mov rdx, 0x324120454c45234f       ; Expected result
    cmp rax, rdx
    jne .fail
    mov eax, 1
    jmp .done
.fail:
    xor eax, eax
.done:
    pop rbp
    ret

Analyze the comparison and the XOR operation to determine what input passes the check. Submit the password wrapped in FLAG{}.

Solo practice

Sign in to submit an answer and save your progress.

Sign in to practice