Created
February 22, 2021 05:25
-
-
Save kos0ng/33e3ca5bd806048e6d262beaf5de297e to your computer and use it in GitHub Desktop.
darkCON CTF 2021 - fire in the androiddd [ RE ]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def looper(n): | |
if (n == 0 or n == 1): | |
return 1 | |
v2 = [0 for i in range(n + 1)] | |
v2[0] = 1 | |
v2[1] = 1 | |
for i in range(2, n + 1): | |
v2[i] = 0 | |
for j in range(i): | |
v2[i] = v2[i] + v2[j] * v2[i-j-1] | |
return v2[n]%2**32 | |
enc = [101,96,112,110,77,101,202,470,1506,4758,16815,58877,208123,742855,2674489,9694735,35357570,129644713,477638735,1767263206,2269153033,2991430638,1288250377,3757197244,1413958429,43422424,2072914473,2325361044,2600037558,3008195127,3276256895,4169229947,300814809,3929270464,2526730686,2527522239,645964816,1351610749,573153031,1347646066,1945953402,3824419424,480774039,2833665279,2366904092,2809807660,3295802436,3644429150,720643560,906311378,992169127,1211139059,1465960990,4269303883,3179939394,4095898594,580984841,3596758568,1063564231,3288906933] | |
flag = "" | |
for i, j in enumerate(enc): | |
flag+=chr(j ^ looper(i)) | |
print(flag) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment