← Back to Writeups
CUSTOMEasyReversing

Pytask

XESXOR9/2/20261 min read
#reversing#custom#easy#hex_pair_reversal#pyc_decompilation

Pytask

Platform: CUSTOM | Category: Reversing | Type: Challenge | Difficulty: Easy | OS: N/A | **Author: XESXOR Techniques: hex_pair_reversal, pyc_decompilation

Summary

Walkthrough of the CUSTOM Reversing Pytask. Download binary: pytask.pyc. Python compiled bytecode file.

Description

Download binary: pytask.pyc. Python compiled bytecode file.

Analysis

Decompiling the .pyc file with uncompyle6 reveals that the flag is encoded by reversing each hex pair (e.g., character 'S' = 0x53 → '35x0').

Solution

Decompile the .pyc, analyze the encoding algorithm, apply the reverse operation — flip each hex pair back. ‍​‌‌​​​​‌​‌‌​​‌‌​​‌‌​​‌‌​​‌‌​​‌​​​​‌‌​​​​​‌‌​​‌‌​​‌‌​​‌​‌​‌‌​​‌​‌‍

Key Takeaways / Lessons

  • Mastering hex_pair_reversal, pyc_decompilation was key to this challenge.
  • Always check for common misconfigurations and verify assumptions.

Crafted by XESXOR Research • 2026-03-09 • CUSTOM • Pytask • Difficulty: Easy