RSA recently did some of ctf topic, feel RsaCtfTool is very troublesome thing, but found installed on kali download is very simple, so look for a number of tutorials, to sum up
Reference Links: http://www.sohu.com/a/257869763_354899
https://blog.csdn.net/wanzt123/article/details/71036184
https://blog.csdn.net/qq_40657585/article/details/84865285
1. Install RsaCtfTool
Command: git clone https://github.com/Ganapati/RsaCtfTool.git
Installed after the next RsaCtfTool directory
2. Install the appropriate environment
RsaCtfTool.py run need to install some libraries are in requirements.txt, PyCrypto GMPY2 SymPy Requests the four library, but the library also want to install gmpy2 need some appropriate environment mpfr and mpc, so let's install both
First blackout mpfr, because you want to install mpc must install mpfr
The original version is 4.0.1 tutorial to try several times will not work, go to the official web looked at, the latest version is 4.0.2, so if there is a problem you can download Quguan network https://www.mpfr.org/mpfr- current / look, another link to download
Command: wget https://www.mpfr.org/mpfr-current/mpfr-4.0.2.tar.bz2
After it is finished
v = 4.0.2
tar -jxvf mpfr-${v}.tar.bz2 && cd mpfr-${v}
./configure
make && make check && make install
Installation is complete
The second no problem
In turn directly execute the following command at the command line
v = 1.1.0
wget ftp://ftp.gnu.org/gnu/mpc/mpc-${v}.tar.gz
tar -zxvf mpc-${v}.tar.gz && cd mpc-${v}
./configure
make && make check && make install
After a successful installation can begin to install the corresponding python library
3. Configuration Repository
pip install -r requirements.txt
After installation run python RsaCtfTool.py
success.
If there are some unexpected error can look at my drawing blog, I have already given out.