Back to challengesolution_viewer.sh
Hackemon 2.0 Writeup
Ditto's Transform
solution.md|15 lines(434 B)
Ditto's Transform - Solution
#Steps to Solve
Step 1: Decompile ditto.pyc with decompyle3 or pycdc
Step 2: Spot sys.gettrace() anti-debug check
Step 3: Patch the if _check_tracer() in the main function to always jump to the 'tracer detected' branch
Step 4: Realize _derive_key uses 42 + (pid % 2) -> even PID = 42 (correct), odd PID = 43 (wrong)
Step 5: XOR the list with 42
