Challenge Author: SYREAL
Category: General Skills
Difficulty: Easy
Description
Python scripts are invoked kind of like programs in the Terminal… Can you run this Python script using this password to get the flag?
Process / Notes
- Running in the web-shell
cat ende.py–> grabbing some system arguments, probably need to grab the pw.txt and flag.txt.en to fill those out- Looks like there are specific options for each of our arguments
- Going to check those with the -h flag after I cat the other two
- Password is a long mess - looks like hex
- Flag is really a long encoded mess - glad we have the program
- Ran
python ende.py -h- said to run the program with the -d flag followed by the file name, so I’ll do that - Asked for the password
- -e and -d might be ’encrypt’ and ‘decrypt’ based on the script
- Copied the password manually from the password file
- The flag is revealed
10 minutes 19 seconds to complete
Hints
Core Lessons
- Understand how to input arguments and options as appropriate in concert with Python scripts