type
status
date
slug
summary
tags
category
icon
password
环境:phpstudy php5.4.45nts
注意:通过蚁剑连接,使用eval大多都无法成功,且编解码器使用default会失败,编码器只要不使用default,解码器随意选都会连接成功。蚁剑不支持$_GET,需要使用$_POST等测试
参考链接:https://www.freebuf.com/articles/web/194243.html 等baidu
register_tick_function
http://localhost/haha.php 连接密码:a
declare(ticks=1);
ticks 是 PHP 中的一种事件机制,它允许在每个 N 个低级操作或语句执行时执行一段代码。
设置为
1 表示在每个低级操作或语句执行时都会触发 tick 函数。call_user_func_array()
蚁剑连接:密码:a 编码器不选择default,解码器随意
同理,使用call_user_func试试
create_function()
此函数内部执行eval
create_function(string
$args, string $code): string