CTFer弄好LINUX的pwn环境

前一阵时间把自己的LINUX虚拟机玩崩溃了,导致啥也干不了,镜像也没有留好,需要全部重新弄一遍。留下个记录来比较好。。。


A:下载个64位的ISO镜像

B:到根目录安装好git

 

cd ~
sudo apt-get install git


C:配置vim成8.0(为了方便安装vim的各种IDE插件)

 

sudo add-apt-repository ppa:jonathonf/vim
sudo apt update
sudo apt install vim


D:安装补全插件YouCompleteMe

http://blog.csdn.net/eagleqingluo/article/details/40751661

 

 

报错1:

svn没有

解决方案:sudo apt-get install svn

报错2:

checking tool compatibility... configure:error: g++|clang++|icc required but not found

解决方案:sudo apt-get install g++

YCM这个插件不来回折腾很多次是搞不好的,可以用git,也可以用bundle(vim下的偷懒神器)来安装

 

E:配置vim成类似IDE的插件

这里有很多的基本的set设置,比如设置行列高亮,设置tab,设置空格,百度一下就能搜到很多

这里贴几个vim的网址

www.vimer.cn

https://www.cnblogs.com/highway-9/p/5984285.html

https://github.com/ma6174/vim-deprecated

 

 

 

F:安装pwndbg

这个工具是调试pwn中的堆和栈很有用的工具,和OD类似

https://github.com/pwndbg/pwndbg

 

G:安装pwntools

这个工具是写py脚本对pwn题进行漏洞利用时的一个工具

https://github.com/Gallopsled/pwntools

 

剩下的就是一些问题的解决方案

H:想要升级pip

 

错误:Permission Denied:/usr/local/lib/python2.7/dist-packages/pip-9.0.1.dist-info

sudo pip install –upgrade pip –user

I:

 

error in cryptography setup command:Invalid environment marker: python_version < '3'

sudo pip install --upgrade setuptools

sudo apt-get install libffi-dev libssl-dev

J:

 

the pyflakes.vim plugin requires Vim to becompiled with +python
解决方案:

https://jingyan.baidu.com/article/3f16e00308b4482591c1030f.html

 

K:

python z3库,方便解方程

这个不能偷懒使用pip install,需要源码级别的安装:

https://blog.csdn.net/sky_xyc/article/details/79878211

 

L:

python numpy,sumpy

 

M:配置gmpy2,方便rsa等其他的数学操作

https://blog.csdn.net/zhuyunfei/article/details/81290764

 

还在继续补充之中~~~

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值