← Back to Writeups
CUSTOMEasyReversing

MC 2 (Dynamic Analysis)

XESXOR9/10/20261 min read
#reversing#custom#easy#random_seed_analysis#static_analysis

MC 2 (Dynamic Analysis)

Platform: rev-kids20.forkbomb.ru | Category: Reversing | Type: Challenge | Difficulty: Easy | OS: NA | Author: XESXOR | Date: 2026-03-09 | Status: Solved Techniques: random_seed_analysis, static_analysis

Summary

Language: C. Binary only. "Guess the random number, and app will give you the flag."

MC 2 (Dynamic Analysis) — Reverse Kids 2.0

Description

Language: C. Binary only. "Guess the random number, and app will give you the flag."

ELF 64-bit, dynamically linked, not stripped.

Analysis

The program generates a "random" number using srand/rand with a predictable seed (e.g., fixed or based on time(NULL)). When the number is guessed correctly, the program outputs the flag.

Solution

Analysis of the disassembled code reveals the seed and generation logic. We calculate the number or patch the check. The flag is printed by the program upon correct input. ‍​‌‌​​‌​​​‌‌​​‌​​​​‌‌​‌​​​​‌‌‌​​‌​​‌‌​​​‌​​‌‌‌​​​​​‌‌​‌‌​​​‌‌​​​​‍