CTF-RSA-tool 安装篇

CTF中RSA题型解题思路及技巧,附小白福利

http://www.freebuf.com/articles/others-articles/161475.html

安装libnum

1
2
3
git clone https://github.com/hellman/libnum.git
cd libnum
python setup.py install

安装gmpy2

原文:https://www.cnblogs.com/pcat/p/5746821.html

  • 建立2个文件夹
1
2
mkdir -p $HOME/src
mkdir -p $HOME/static
  • 安装GMP
1
2
3
4
5
6
cd $HOME/src
wget https://gmplib.org/download/gmp/gmp-6.1.1.tar.bz2
tar -jxvf gmp-6.1.1.tar.bz2
cd gmp-6.1.1
./configure --prefix=$HOME/static --enable-static --disable-shared --with-pic
make && make check && make install
  • 安装MPFR
1
2
3
4
5
6
cd $HOME/src
wget http://www.mpfr.org/mpfr-current/mpfr-4.0.0.tar.bz2
tar -jxvf mpfr-4.0.0.tar.bz2
cd mpfr-4.0.0
./configure --prefix=$HOME/static --enable-static --disable-shared --with-pic --with-gmp=$HOME/static
make && make check && make install
  • 安装MPC
1
2
3
4
5
6
cd $HOME/src
wget https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz
tar -zxvf mpc-1.1.0.tar.gz
cd mpc-1.1.0
./configure --prefix=$HOME/static --enable-static --disable-shared --with-pic --with-gmp=$HOME/static --with-mpfr=$HOME/static
make && make check && make install
  • 安装gmpy2
1
2
3
4
cd $HOME/src
git clone https://github.com/aleaxit/gmpy
cd gmpy
python setup.py build_ext --static=$HOME/static install

克隆仓库,安装依赖

1
2
3
4
cd $HOME
git clone https://github.com/4Five/CTF-RSA-tool.git
cd CTF-RSA-tool
pip install -r "requirements.txt"
  • 安装sagemath

https://3summer.github.io/2017/12/06/sage/