added official hacktheboo2024 writeups
This commit is contained in:
parent
1f7a9b0566
commit
e3c46450f7
327 changed files with 14303 additions and 0 deletions
|
@ -0,0 +1 @@
|
|||
HTB{__protecting_the_secret_in_equations_is_not_secure__}
|
|
@ -0,0 +1,4 @@
|
|||
v1 = 4196604293528562019178729176959696479940189487937638820300425092623669070870963842968690664766177268414970591786532318240478088400508536
|
||||
v2 = 11553755018372917030893247277947844502733193007054515695939193023629350385471097895533448484666684220755712537476486600303519342608532236
|
||||
v3 = 14943875659428467087081841480998474044007665197104764079769879270204055794811591927815227928936527971132575961879124968229204795457570030
|
||||
v4 = 6336816260107995932250378492551290960420748628
|
|
@ -0,0 +1,14 @@
|
|||
from Crypto.Util.number import bytes_to_long
|
||||
|
||||
FLAG = open("flag.txt", "rb").read()
|
||||
|
||||
step = len(FLAG) // 3
|
||||
candies = [bytes_to_long(FLAG[i:i+step]) for i in range(0, len(FLAG), step)]
|
||||
|
||||
cnd1, cnd2, cnd3 = candies
|
||||
|
||||
with open('output.txt', 'w') as f:
|
||||
f.write(f'v1 = {cnd1**3 + cnd3**2 + cnd2}\n')
|
||||
f.write(f'v2 = {cnd2**3 + cnd1**2 + cnd3}\n')
|
||||
f.write(f'v3 = {cnd3**3 + cnd2**2 + cnd1}\n')
|
||||
f.write(f'v4 = {cnd1 + cnd2 + cnd3}\n')
|
Loading…
Add table
Add a link
Reference in a new issue