leak = 12170789707638469557363249767228204966074269830454332436369564884472290413677806300009225162224310724599340622124020450112169555723085068166255950927734375 n = 85988668134257353631742597258304937106964673395852009846703777410474172989069717247424903079500594820235304351355706519069516847244761609583338251489134035212061654870087550317540291994559481862615812258493738064606592165529948648774081655902831715928483206013332330998262897765489820121129058926463847702821 e = 65537 c = 64708526479058278743788046708923650158905888858865427385501446781738669889375403360886995849554813207230509920789341593771929287415439407977283018525484281064769128358863513387658744063469874845446480637925790150835186431234289848506337341595817156444941964510251032210939739594241869190746437858135599624562
leak = (leak >> 256) t = bin(leak) print(len(t)) for i in tqdm.trange(2^8): ph = (leak << 8) phigh = ph + i phigh = (phigh << 248) #print(ph) R.<x> = PolynomialRing(Zmod(n)) f = phigh + x res = f.small_roots(X=2^248, beta=0.4, epsilon=0.01) if res != []: p = phigh + int(res[0]) q = n//p phi = (p-1)*(q-1) d = libnum.invmod(e,phi) m = pow(c,d,n) flag = libnum.n2s(int(m)) print(flag)
import libnum e1 = 55 e2 = 200 n = 19006830358118902392432453595802675566730850352890246995920642811967821259388009049803513102750594524106471709641202019832682438027312468849299985832675191795417160553379580813410722359089872519372049229233732405993062464286888889084640878784209014165871696882564834896322508054231777967011195636564463806270998326936161449009988434249178477100127347406759932149010712091376183710135615375272671888541233275415737155953323133439644529709898791881795186775830217884663044495979067807418758455237701315019683802437323177125493076113419739827430282311018083976114158159925450746712064639569301925672742186294237113199023 c1 = 276245243658976720066605903875366763552720328374098965164676247771817997950424168480909517684516498439306387133611184795758628248588201187138612090081389226321683486308199743311842513053259894661221013008371261704678716150646764446208833447643781574516045641493770778735363586857160147826684394417412837449465273160781074676966630398315417741542529612480836572205781076576325382832502694868883931680720558621770570349864399879523171995953720198118660355479626037129047327185224203109006251809257919143284157354935005710902589809259500117996982503679601132486140677013625335552533104471327456798955341220640782369529 c2 = 11734019659226247713821792108026989060106712358397514827024912309860741729438494689480531875833287268454669859568719053896346471360750027952226633173559594064466850413737504267807599435679616522026241111887294138123201104718849744300769676961585732810579953221056338076885840743126397063074940281522137794340822594577352361616598702143477379145284687427705913831885493512616944504612474278405909277188118896882441812469679494459216431405139478548192152811441169176134750079073317011232934250365454908280676079801770043968006983848495835089055956722848080915898151352242215210071011331098761828031786300276771001839021 r,s,tmp = libnum.xgcd(e1,e2) t = libnum.gcd(e1,e2) if r<0: r = -r c1 = libnum.invmod(c1,n) if s<0: s = -s c2 = libnum.invmod(c2,n) res = (pow(c1,r,n)*pow(c2,s,n))%n for k inrange(100): mt = res + k*n m = libnum.nroot(mt,t) flag = libnum.n2s(m) ifb"SICTF"in flag: print(flag) break
classSE{ public$year; publicfunction__set($name, $value){ echo' Welcome to new year! '; echo($this->year); } }
classCR{ public$last; public$newyear;
publicfunction__tostring() {
if (is_array($this->newyear)) { echo'nonono'; returnfalse; } if (!preg_match('/worries/i',$this->newyear)) { echo"empty it!"; return0; }
if(preg_match('/^.*(worries).*$/',$this->newyear)) { echo'Don\'t be worry'; } else { echo'Worries doesn\'t exists in the new year '; empty($this->last->worries); } returnfalse; } }
classET{
publicfunction__isset($name) { foreach ($_GET['get'] as$inject => $rce){ putenv("{$inject}={$rce}"); } system("echo \"Haven't you get the secret?\""); } } if(isset($_REQUEST['go'])){ unserialize(base64_decode($_REQUEST['go'])); } ?>
else: for i inrange(1, len(k)): for j inrange(1, len(k)): if j notin k[i]: s[cnt + 3735928559] = 0
else: for i inrange(1, len(k)): tmp = [] for j inrange(1, len(k)): tmp.append(k[j][i])
else: for j inrange(1, len(k)): if j notin tmp: s[cnt + 3735928559] = 1 else: for i inrange(1, len(k), int(len(k) ** 0.5)): for j inrange(1, len(k), int(len(k) ** 0.5)): square = [k[x][y] for x inrange(i, i + 3) for y inrange(j, j + 3)] for t inrange(1, len(k)): if t notin tmp: s[cnt + 3735928559] = 2
else: m = hashlib.md5(s.encode()[::-1]).hexdigest() if m == '6baacb4d700007be9de5f94512b8a8c1': print('SICTF{%s}' % hashlib.md5(s.encode()).hexdigest()) else: print('试着换一种解嘞qwq') input()
except Exception as e: try: pass finally: e = None del e