Suninatas Game 31
challenges
Game 31
Challenge statement:
1 | * Info : This PDF file don't attack your PC. Just using for study. |
Initial PDF triage
1 | $ pdfid Hello_SuNiNaTaS.pdf |
pdfid shows JavaScript indicators, but the interesting
part is a nested object tree.
Main solve path (works)
Search for JavaScript references and inspect container objects:
1 | $ pdf-parser -s JavaScript Hello_SuNiNaTaS.pdf |
Follow embedded-file references:
1 | $ pdf-parser -o 38 Hello_SuNiNaTaS.pdf |
Now analyze extracted nested.pdf:
1 | $ pdfid nested.pdf |
Flag:
SunINatAsGOodWeLL!@#$Decoy path (time sink)
You can also extract object 37 as JavaScript
payload:
1 | $ pdf-parser -o 37 -d payload.js Hello_SuNiNaTaS.pdf |
Repeated Base64 decoding eventually gives:
1 | I am sorry, This is not Key~!! |
So object 37 is a distraction; the real flag is in the
decrypted nested PDF JavaScript stream.