Challenge Author: LT ‘SYREAL’ JONES
Category: General Skills
Difficulty: Easy
Description
Fix the syntax error in the Python script to print the flag
Process / Notes
wgetthe script- flag encoded in hex, could decode manually but there should be another way
- In the flag decoding function, the key is set to ’enkidu’ - but up avoce
new_keyit is ste to key, but key is never defined - Going to try to set
key = 'enkidu'below import and above the defstr_xor() - Realized that wasn’t necessary - tried running it in the wb-shell, and the error pointed me to the fact that the flag was
flag = (flag_enc, 'enkidu')rather than==like it should have been - Making the change and running it
- The flag is revealed
12 minutes 30 seconds to complete
Hints
- Are equality and assignment the same symbol?
Core Lessons
- Understand Python assignment vs equality syntax and when to apply each one
- Know how to run a Python script
- Understand the error messages Python gives you and what to do about them