Golden Ticket:
Source:
Can you help Charles - who doesn’t have any knowledge about cryptography, get the golden ticket and have a trip to Willy Wonka’s factory ?
|
|
Solutions:
From the source, we can see that flag_chocolate is constructed by: $13^m+37^m ; % ; p$. The last 2 flag_chocolate will have relation:
$$a = 13^{m-1} + 37^{m-1}; % ;p$$
$$b = 13^{m} + 37^{m} ; % ; p$$
$$13^{m-1} = (1) \cdot (37-13)^{-1}$$
with all number in $Zmod(p)$. We notice that p-1 is smooth so apply Pohlig-Hellman to find m-1.
|
|
Baby Bundle:
Source:
A crane flew by, and delivered this baby chall. I can’t understand a word it speaks.
|
|
Solution:
After some conversation with chatGPT, i know some important facts about the algorithm 🥳, but know understand all the math behind.
|
|
Each element in $out$ array present for a sum of all:
|
|
This function will calculate - very simple as. First take $m$ from printable - array. And compare it will the password char.
- If m - password[i] >= 0 then adding to the sum m-password[i]+1
- Else adding 0.
Derive from that knowledge. I have write the script to solve the challenge.
|
|