Disinvolute
1 | sakii@ubuntu:~/Desktop/Crypto/2022ASISCTF/Disinvolute$ nc 65.21.255.31 12431 |
The facts gives us an equation that :
It reminds me of cycling attack, but I can't factorize
Noticing the description: I have used safe primes.
Using safe primes means:
either s or t is a prime.
So , we could express
Since,
Finally, we get an equation:
In this challenge,
1 | from Crypto.Util.number import * |
Binned
ez
1 | from gmpy2 import * |
Mariana
1 | #!/usr/bin/env python3 |
Looks like to solve transcendental equations?
In fact the exponent could be negative..
1 | from pwn import * |
Chaffymasking
1 | #!/usr/bin/env python3 |
Noticing that the algorithm is reversible because of the
1 | #!/usr/bin/env python3 |