Tags: gsheet 

Rating:

# 回到12歲

## Description

If you can beat me in the game I'll give you the flag!

https://scratch.mit.edu/projects/596813541/

## Writeup
First off, open the scratch project. Upon checking the code, we know we need to win it in order to solve the challenge. We forced our way through to win the game by adding the block
```
set globalCurrentPlayer to X
```
and spamming it manually to win. Then we got a prompt that checks our flag. By checking the codes again, and removing the sticky note that hiding the code in Title object, we know that our input will be shifted by this line o f code:
```
set result to join result item item # of letter i of item 10 of globalGameState in chars + 18 mod length of chars + 1 of chars
```
Then we entered alphabets to try how many characters it shifted and logged it in a [spreadsheet](https://docs.google.com/spreadsheets/d/1fkpd4ReVCNndQRLFGAph-XBYUIU9Gf4RlK83OJX4ZTE/edit). As I am lazy, I used `VLOOKUP`, `SPLIT` and `CONCATENATE` function to reduce a little time, which returns me the flag.

## Flag
`hkcert21{hello_caesar_cipher}`

Original writeup (https://github.com/Noskcid-Dev/hkcert-ctf-2021-writeup/blob/main/%E5%9B%9E%E5%88%B012%E6%AD%B2/writeup.md).