[ pwn 学习 ] CTFshow-pwn3
2026-08-22 20:36:38

pwn3

1
2
3
4
5
6
7
8
9
You can call the following function:
1._start
2.main
3.hello_ctfshow
4.ctfshow('echo /ctfshow_flag')
5.print('/ctfshow_flag')
6.system('cat /ctfshow_flag')
7.puts('/ctfshow_flag')
8.exit

4 5 7都是打印路径字符串

只有6是读取文件内容


相关笔记

  • pwn2 — 同样是 system() 后门直接读 flag
  • pwn17system() 参数可控的命令注入漏洞
  • pwn4 — 通过 strcmp 口令校验才能触发后门
上一页
2026-08-22 20:36:38
下一页