> For the complete documentation index, see [llms.txt](https://gitbook-88.gitbook.io/ctf-writeup/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook-88.gitbook.io/ctf-writeup/2020/2020-ctfshow-36d-bei/rsaez.md).

# rsaEZ

用CTF-RSA-tool，根据公钥获得私钥：

```
python solve.py --verbose --key test/public.key --private
```

根据私钥逐个进行解密。

```
openssl rsautl -decrypt -in encrypted.message1 -inkey private.key -out flag1.txt
openssl rsautl -decrypt -in encrypted.message2 -inkey private.key -out flag2.txt
openssl rsautl -decrypt -in encrypted.message3 -inkey private.key -out flag3.txt
```

拼接起来即可。

```
cat flag1.txt flag2.txt flag3.txt
```
