Skip to content

Commit

Permalink
Update wwctf.md
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackAnon22 authored Dec 1, 2024
1 parent 43bc72a commit 8fb4e0b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions posts/CTF Competitions/wwctf.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,20 @@ Now, determining e is unnecessary, as `d` can be directly computed using the pri

![image](https://github.com/user-attachments/assets/e0dcdc3e-ea53-4556-8ad2-c95b88095006)

To solve this, I used this python script

```pytho
from Crypto.Util.number import inverse, long_to_bytes
p=20322136122026329892580404875086132520732558134579258531781672192065024437324055172065343417524169304918928056147680414370351055409439818026607876517460045945556933456319117456860928521423787112252544266864178773974904640732880445449138842965327995838722222110164109025916914430044528254715080648900354468118393295346137198518513075775514617222780524163798065365970392865107270392212968677531885628998155305428785133820145555740608026626724539584106018453003156159305252013173659975815845286802275956807162426425721298560633326719023970391963404981189820163950120529861779878077006530640930032570206978446007206971761
q=19097560527100693557502945814016176943507375936656621847599300620729196257594977906326233653252987169303598004653720974045696589437233399711658994040877123702369987961301047714594623670674571987772814959679153558360152976652255742578324469478560556855210734037861198243000935281050776548747455717266013266531885744852759548255091579407464355390341944708706006878618904548103612995804547530724085856234186750409404880456083750984829553552127853848824218180459231650990529456828407224866655873224370892839628814748212142246752082561042142636866939231370987974125358875253454199574864895153300338298982667319003886687691
c=4281681357519343869235268029657832985104802601857889851833662824770073601279722389949102805423012693423900316266993146428480448851806951090530135683459342224839031144425810971344588481297094697047852347659595441639804230546879345999083627138617034295731725402645279785129174304818023129638779656619113578465655082808462489379872294929944719545647280271454196700396004152529288987570497804498041888697213294509916951489315431831556860863264254674452235360890586742441263188663158067860877772336480637257856658858967478284817730555629113613134338975168062044831796369552664256963808360408525644200922627703094455580032
d = inverse(p, q-1)
pt = long_to_bytes(pow(c, d, q))
print(pt)
```




Expand Down

0 comments on commit 8fb4e0b

Please sign in to comment.