> For the complete documentation index, see [llms.txt](https://codingmace.gitbook.io/masterward/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://codingmace.gitbook.io/masterward/ctf/2021/tctf-2021.md).

# TCTF 2021

## Guthub - Misc \[144 pts]

> **Description**\
> What happens on GutHib, stays on GutHib.
>
> repo: [awesome-ctf/TCTF2021-Guthib](https://github.com/awesome-ctf/TCTF2021-Guthib)

<div align="left"><img src="/files/-MdsKfiMx6e-f5afNHie" alt=""></div>

Noticing on the second commit had a password that was removed. I saw that a lot of teams forked it so I did the same at first. Looking at each point I came up empty, what a shock. I realized at this point I was going to have to look at the specific change logs. \
If you go back you can find the link to the commit changing it and the flag can be found at `https://api.github.com/repos/awesome-ctf/TCTF2021-Guthib/commits/da883505ed6754f328296cac1ddb203593473967`

**Flag: flag{ZJaNicLjnDytwqosX8ebwiMdLGcMBL}**

## Check In - Math \[?? pts] \[Not Solved] <a href="#check-in" id="check-in"></a>

> Welcome to 0CTF/TCTF 2021!
>
> `111.186.59.11:16256`
>
> Nothing fancy, just do the math

So we are given when connected this equation, `x^y^z % a = 2 ^ 2 ^ z % a` I researched a little and turned it into => `2 ^ 2 * z % a so we can say 2 ^ 2z % a = x ^ y ^ z % a`. Then attempted1 to write a short program for that with many failures. First, it didn't finish in time, then it didn't get the right answer, and finally, I just gave up. In hindsight, I should have used gmpy to solve the problem but just didn't think about it.
