Skip to content
Adam Omar Saleh

hiCTF 2026 placeholder badge (unofficial)hiCTF 2026Reverse Engineering

Obfuscated Flow

Mathematical checks / elliptic-curve stage / ELF

Competition
hiCTF 2026 placeholder badge (unofficial)hiCTF 2026
Category
Reverse EngineeringHard · estimated
Analysis status
Locally verified
Document
Original PDF

01Challenge analysis

The problem

The ELF executable concealed input validation in complicated arithmetic and a final elliptic-curve discrete-log step. Static extraction of text alone was insufficient.

02Exploit or recovery path

How I solved it

  1. 01

    I inspected the ELF and identified sequential mathematical conditions constraining successive parts of the expected input.

  2. 02

    I simplified the arithmetic checks and recovered the beginning of the secret string, including the m4th_c0n prefix.

  3. 03

    I then resolved the elliptic-curve discrete-logarithm portion to determine the remaining required bytes.

  4. 04

    Finally, I provided the reconstructed input to the executable and checked the success branch.

Result

RECOVERED FLAG

hiCTF{m4th_c0ntr0l_fl0w_3ll1pt1c_dlog_4f7b2c9e}

Locally verified

Local Verification
The target executable printed ACCESS GRANTED for the recovered input; platform acceptance was not recorded.
Evidence Limitation
The exact curve parameters and command transcript are not preserved in the retrieved conversation.

Original document

Original PDF

The writeup as I first documented it.