-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathsolve.py
More file actions
executable file
·15 lines (13 loc) · 1.11 KB
/
Copy pathsolve.py
File metadata and controls
executable file
·15 lines (13 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env python3
from math import gcd
from Crypto.Util.number import *
n1 = 102815498666444790908088416845311058971290136502084812193038486955491469564100644478195468143076663960743406145541368131794828802112573270053308604587370714882229809141520526607646259885374333332251169465006963241042083153232145845148709642100346509834666919080230017299186925827929693098133856670875762776279
n2 = 140172203283000096696573503825073981402393904105268464525025140126348146961666450511372465911258841227662511822780904778840347778179350584950593803549375018557823516823559540891604001516786640554926191440436561712764734638796831766121197534804849534440171662800184057912560866633954230791571797229441419468599
c = 60173829390233216984943213136099972548075360997121288503124727414391173698107768179110102733482006116315041367528062791925809728600176124037170445788724747820333141808899440680141722760000830352898041444600012346277348441218808217369733597630579271216610507380137477174995848197286721932399822727469340035366
n = n1
p = gcd(n1, n2)
q = n // p
e = 65537
d = inverse(e, (p - 1) * (q - 1))
m = pow(c, d, n)
print(long_to_bytes(m))