WannaGame Championship

WannaGame Championship 2023

CRYPTOGRAPHY WRITEUP

Author:

  • Pham Quoc Trung

Used Language:

  • Python3

Problem Solving

cossin

I here that one line crypto challenges are trending. Try this:

  • chall.sage: print((lambda x: (sin(x)*cos(x)).n(1337))(int.from_bytes(open("flag.txt", "rb").read(), "big")))

NOTE: FLAG is a readable string

Attachment: output.txt

-0.485299053406871278251006491694722007834238650283783529182391610856900053091072342569384613414742720641855490790461240852899350288280072305993228008096260187870917816030712286113220053439434851762423438010136608133662561275124101194472809756885647907717262697745396526025380800595185118739690636922816074026435450112655435095006364390082673418410069153276551846375507805947540946003578965083647629783181

Với challenge này, flag được chuyển thành một số nguyên x rồi sau đó thực hiện tính sin x * cos x và trả về kết quả có 1337 chữ số thập phân.

Ban đầu, mọi thứ có vẻ đơn giản khi áp hàm lượng giác vào sin(x)cos(x) = 1/2 * sin(2x). Khi đó, x sẽ bằng 1/2 * arcsin(2*kết quả). Tuy nhiên số này sẽ không đủ để khôi phục lại được đúng flag ban đầu.

Vì vậy, mình đã tìm được wu này: https://github.com/maple3142/My-CTF-Challenges/tree/master/ImaginaryCTF%202023/Tan. Nôm na là chúng ta sẽ sử dụng LLL để khôi phục. Giờ mình vẫn ngu lattice nên cứ đập code đã hiểu tính sau :v

Và mình ra được kết quả

Flag: W1{B4by_m4th_f0r_LLL_0dbb94edb18d7cba7b2bb20f9e}

Council of Sheep

The beauty of math is that it always tell the truth

Attachment: the_council_of_sheep.tar.gz

Author: here is the solution for the council of sheep chall, but from what I heard, almost all teams abuse the bug in the chall , which can print flag with out passing any challenge ( that is my mistake lmao ) 🤣

image

explain : the first stage is actually finding bridge problem, it can be solved using tarjan algorithm, and the idea for the second one is using error correcting code, the idea for the 2nd stage is actually taken from 1 challenge in wmctf 2022 (nanoDiamond). You can read the idea to solve in here : https://imp.ress.me/blog/2022-08-22/wmctf-2022#nanodiamond---rev-

Among SUS

Fact: Among SUS is the sussier version of Among US...

nc 157.245.147.89 12001

Attachment: public.zip

Author: https://github.com/viensea1106/my-ctf-challenges/tree/main/wannagame-championship-2023/AmongSUS

  • idk whats the intended, but we just received the player info then got a task, iterated over players and generated the key, then check if the mac decrypt works with that key, if it does not its not the impostor, else it is the impostor and we can send the server that name. ah that's the unintended

  • oh that is unintended, so sad, when I originally created this challenge, I considered to leave only the decrypt functionality (do_task)

  • damn, I should keep things simpler, sth like, for example, decrypt orcale

  • make things more complicated can lead to unintended 😭

ezCurve

Can you see that? It's not too complicated!

Attachment: public.zip

Author: https://github.com/viensea1106/my-ctf-challenges/tree/main/wannagame-championship-2023/ezCurve

© 2023,Pham Quoc Trung. All rights reserved.

Last updated