PWN入门的入门——工具安装

安装pwntool:

命令行运行:

1 pip install pwntools
1 python
2 import pwn
3 pwn.asm("xor eax,eax")

出现'1\xc0' 说明安装成功

在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

安装checksec :

命令行运行:

1 apt-get install checksec

攻防世界的一道题试验一下:

get_shell

最佳Writeup由w0odpeck3r • 老王提供
难度系数: 
题目来源: 暂无
题目描述:运行就能拿到shell呢,真的
题目场景:
点击获取在线场景
题目附件: 附件1
 

猜你喜欢

转载自www.cnblogs.com/chrysanthemum/p/11650944.html