Add mini RSA

This commit is contained in:
lucky-vers 2023-11-03 13:35:51 +05:30
parent 714ad3ff52
commit d191803455
2 changed files with 15 additions and 0 deletions

BIN
Images/minirsa.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 436 KiB

View file

@ -2,6 +2,21 @@
# miniRSA
**Flag:** `picoCTF{n33d_a_lArg3r_e_d0cd6eae}`
Here, we get a file `ciphertext` with the following contents
```
N: 29331922499794985782735976045591164936683059380558950386560160105740343201513369939006307531165922708949619162698623675349030430859547825708994708321803705309459438099340427770580064400911431856656901982789948285309956111848686906152664473350940486507451771223435835260168971210087470894448460745593956840586530527915802541450092946574694809584880896601317519794442862977471129319781313161842056501715040555964011899589002863730868679527184420789010551475067862907739054966183120621407246398518098981106431219207697870293412176440482900183550467375190239898455201170831410460483829448603477361305838743852756938687673
e: 3
ciphertext (c): 2205316413931134031074603746928247799030155221252519872650080519263755075355825243327515211479747536697517688468095325517209911688684309894900992899707504087647575997847717180766377832435022794675332132906451858990782325436498952049751141
```
It looks like a simple RSA encrypted cipher text. Notice the small value of `e` (`3`). It ideally be something much larger like `65537` or the cipher can be easily brute-forced. We do exactly that, using the [dcode RSA decryptor](https://www.dcode.fr/rsa-cipher)
![Result](../Images/minirsa.png)
# basic-mod1
**Flag:** `picoCTF{R0UND_N_R0UND_ADD17EC2}`