CTF 框架和利用发展图书馆
Pwntools是一个CTF框架并开发开发库. 由Python编写而成,为快速原型和开发所设计,意在使开发性写作尽可能简单.
(原始内容存档于2019-09-29) (英语). ```python from pwn import * context(arch = 'i386', os = 'linux')
r = remote('exploitme.example.com', 31337)
r.send(asm(shellcraft.sh())) r.interactive()
# 文档
我们的文件可在[docs.pwntools.com](https://docs.pwntools.com/)查阅。
一系列辅导课程也[在线](https://github.com/Gallopsled/pwntools-tutorial#readme)
为了让你开始,我们在我们的[写出-ups source](https://github.com/Gallopsled/pwntools-write-ups)中为过去的CTF挑战提供了一些实例解决方案.
安装
Pwntools在64位的Ubuntu LTS发布(22.04和24.04)上得到最好的支持. 大多数功能应该工作于任何类似"Posix"的分布(Debian,Arch,FreeBSD,OSX等).
Pwntools支持自5.0.0版本起的Python 3.10+. 旧版本使用Pwntools 4.x并使用Python 2.7. pwntools的大部分功能是自成一体的和Python只使用. 你应该能跑得很快
ZZ1ZZ
然而,一些特征(组装/拆分外国建筑)需要非Python依赖性. 更多信息见[此处的完整安装指 (https://docs.pwntools.com/en/stable/install.html).
# 贡献
见[Contributing.md] (Contributing.md).
联系和社区
如果您有任何问题不值得 [错误报告] (ZZURL4Z), 请加入 https://discord.gg/96VA2zvjCB 的 Discord 服务器Sphinx doctest 失败输出不包含行号
Ret2dlresolve 应检查 VERSYM[ ELF32_R_SYM(reloc->r_info)] 是否有效
在 pip 上的最新 pwntools 无法安装,因为它使用了一个较旧的 unicorn,无法编译
管道下载文件助手
`ssh.interactive()` 不解析输出中的 ANSI 逃逸码
在设置 `context.arch` 两次时,`context.bits` 不会自动切换。
ssh proxy_sock 发生故障
关于 `ssh.process` 和 `ssh.system` 之间不一致的 `env` 行为的问题
GDB 卡在 kitty 中
在网络不稳定时无法使用 Ctrl-C 远程连接