← Back to Writeups
CUSTOMMediumReversing

Qwe

XESXOR9/10/20261 min read
#reversing#custom#medium#java_bytecode_analysis#linear_system_solving#big_integer_arithmetic

Qwe

Platform: rev-kids20.forkbomb.ru | Category: Reversing | Type: Challenge | Difficulty: Medium | OS: NA | Author: XESXOR | Date: 2026-03-09 | Status: Solved Techniques: java_bytecode_analysis, linear_system_solving, big_integer_arithmetic

Summary

"Disassembly is ready, mylord!" Download: Qwe.java.dis (Java disassembly).

Qwe — Reverse Kids 2.0

Description

"Disassembly is ready, mylord!" Download: Qwe.java.dis (Java disassembly).

Analysis

The Java disassembly contains a system of 3 linear equations:

5a + 4b + 4c = 11
4a + 5b + 4c = 8
4a + 4b + 5c = 7

Solution: a=3, b=0, c=-1.

Then the following is computed: 0xcafebabedeadbeef × (b-1) × a × c

Solution

python
a, b, c = 3, 0, -1
base = 0xcafebabedeadbeef
result = base * (b - 1) * a * c
# = 0xcafebabedeadbeef * (-1) * 3 * (-1)
# = 0xcafebabedeadbeef * 3
# = REDACTED
flag = f"spbctf{{{result}}}"

‍​‌‌​​​​‌​‌‌​​‌‌​​‌‌​​‌‌​​‌‌​​‌​​​​‌‌​​​​​‌‌​​‌‌​​‌‌​​‌​‌​‌‌​​‌​‌‍