-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsmall_trouble.py
More file actions
executable file
·14 lines (10 loc) · 2.03 KB
/
Copy pathsmall_trouble.py
File metadata and controls
executable file
·14 lines (10 loc) · 2.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env python3
import owiener
from Crypto.Util.number import long_to_bytes
n = 7831532088152907108872360145656738128940334500612235098574122097994201183693109854865869451019544534022905131607696765057482079721599266094452032529905131612005082709068662869731348927061258310094786583278199320826873596267172083513048328342998582364406850658621175803395350816589810368968754692537774553728384158773987611893747926214215834362939763782594858675650337062259098610912085815405262245380862050071324185543960965839865962554601405999715830539363225559524688474172294899981074294444511861262405609153211678472907116883297932117596881239661229555266493301540161820949911036795740413872874363392041971828318949828782326139
e = 1075545004280553700037757496149902528649656927979428575627594158378802284965533509567707646471734719471102809418349857271251907345252738469415008859474041297598342755563441608751268943344164332099044059347177796298562842539969644013501186314362241262533133992609895393772277196737748444759928678195892911954838797734005875292306570655664504426183260277714252688086741408112493160080623651802166275975334466637270439960851018814164115322141119885058864525183734914439587088772861763771466764522062589744428604611837935132855132360430197179709267038945357368646489020539439574892938100980699193474451432083792466683525943562458858495
c = 5137665084826549655774986774448950533716783706614904265303728899727340598177868522540944951854431052655141563555932043891575486724007144742918822317440228009187230993680833888749030576821439786616504570969856001146256154188705759377266034248186047150152377409039755201581338482884739583979566804300688444144634312707552150760778481296167589760221084534378664613366414174119862251566741389004370543294082164727653869307981172324257774673007217203485060458413800302539359644735438893626128263478027138968532276035303950393225078428200940325037701676541285921612165337904746002114638869638668569769979018529102671033084315996226521232
d = owiener.attack(e, n)
m = pow(c, d, n)
flag = long_to_bytes(m).decode()
print(flag)