ubuntu 安装pocsuite

ubuntu 安装pocsuite

 

1      生成ssh rsa

在终端输入。

 ssh-keygen-t rsa -C "forwhat.cn"//注意。forwhat.cn为用户名

如果执行成功。返回

Generatingpublic/private rsa key pair.
Enter file in which to save the key (/home/forwhat.cn/.ssh/id_rsa): 
在这里就是设置存储地址了.反正我是直接按的回车

然后还会返回

Enterpassphrase (empty for no passphrase):

再次直接回车。
Enter same passphrase again:

再次回车。

Youridentification has been saved in /home/forwhat.cn/.ssh/id_rsa.
Your public key has been saved in /home/forwhat.cn/.ssh/id_rsa.pub.
The key fingerprint is:
这里有一串数。我把他屏蔽了。
The key's randomart p_w_picpath is:
+--[ RSA 2048]----+
|                |
|                |
|                |
|   o            |
|   + .  S        |
|  . = .  o       |
|   o + +o.o      |
|E o . o.=+.      |
|.+   ==+ooo.     |
+-----------------+
这样SSH key就生成了。直接cat一下就好了。

000000:~/a$cat /home/forwhat.cn/.ssh/id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQ(
我屏蔽了)

把显示出来的直接添加到github账户设置里边的SSHkeys

 

2      安装setuptools

  1. 到这个地址https://pypi.python.org/pypi/setuptools下载setuptools

2、进入setuptools解压文件所在目录

sudo python setup.py build

sudo python setup.py install

 

 

3      安装pocsuite

1、  下载pocsuite

$ wgethttps://github.com/knownsec/Pocsuite/archive/master.zip

$ unzip master.zip

$ cd Pocsuite

进入pocsuit解压文件所在目录

sudo python setup.py build

sudo python setup.py install

安装完成。