web21
右键查看源代码
CTF-论剑场 web21

这里利用php://input 给$user传值,然后利用下面include()函数包含class.php
CTF-论剑场 web21
php://filter/read=convert.base64-encode/resource=class.php
将class.php的源码转换为base64编码;
没读出来抓包看一下
CTF-论剑场 web21
不知道为啥多加了一个‘=’,
CTF-论剑场 web21
解码看一下
CTF-论剑场 web21
反序列化 __toString()
#当一个对象被当作一个字符串使用时被调用
构造payload
CTF-论剑场 web21
看一下f1a9.php啥也没有,再读一下index.php
CTF-论剑场 web21
pass就是class.php反序列化序列化的参数
CTF-论剑场 web21

相关文章:

  • 2021-06-03
  • 2021-10-05
  • 2021-04-11
  • 2021-09-30
  • 2021-11-06
  • 2021-10-08
  • 2021-10-31
  • 2021-07-31
猜你喜欢
  • 2021-11-10
  • 2021-04-22
  • 2022-01-11
  • 2021-04-26
  • 2021-09-03
  • 2021-04-05
相关资源
相似解决方案