安装pwntool:
命令行运行:
1 pip install pwntools
1 python 2 import pwn 3 pwn.asm("xor eax,eax")
出现'1xc0'
说明安装成功
在pycharm中运行出错:_curses.error: must call (at least) setupterm() first
解决方案:https://stackoverflow.com/questions/9485699/setupterm-could-not-find-terminal-in-python-program-using-curses/21571407#21571407
1 sudo vi /usr/lib/pycharm-community/bin/pycharm.sh 2 #set env for pwntools 3 export TERM=linux 4 export TERMINFO=/etc/terminfo
如果是一台刚刚安装好的虚拟机[神码配置都没有],如果安装中出现报错,可能是漏装了依赖,下面给出官方的安装教程:
apt-get update apt-get install python3 python3-pip python3-dev git libssl-dev libffi-dev build-essential python3 -m pip install --upgrade pip python3 -m pip install --upgrade git+https://github.com/Gallopsled/pwntools.git@dev
对unbuntu16+默认python2 安装pwntools:
sudo apt install python-pip # 没有pip安装pip mkdir GitHub cd GitHub sudo apt install git git clone https://github.com/Gallopsled/pwntools apt-get install libssl-dev libffi-dev build-essential python setup.py install
安装checksec :
命令行运行:
1 apt-get install checksec
攻防世界的一道题试验一下:
get_shell
4 最佳Writeup由w0odpeck3r • 老王提供难度系数:题目来源: 暂无题目描述:运行就能拿到shell呢,真的题目场景:点击获取在线场景