Skip to content

dalctf 2026

Bandaids Help me Heal

Pwn challenge from DALCTF 2026.

Challenge Description:

This program is supposed to print the flag for me but for some reason it's got a security system attached to it

the binary hides the flag behind a slow wait loop

main starts with counter = 0xff and key = 0

for each nonzero counter value it xors key with the counter calls usleep(0x3b9aca00) and decrements the counter

the xor of all values from 1 to 255 is 0 so key stays 0

then main xors key with 0x5a so the final key becomes 0x5a

the integrity check compares against 0x5a passes and calls decrypt_and_print_flag(0x5a)

decrypt_and_print_flag xors the ciphertext with that key and prints the flag

the patch was to copy the elf to a temporary file and replace the five byte call to usleep@plt at virtual address 0x40120c with nops

that keeps the loop logic the same but removes the wait so the program finishes instantly and prints the flag

Flag

dalctf{binary_patched}

Discussion

Loading discussion…

Related solves

Keep reading

Complete archive