🗒️关于代码执行的回调函数学习
2024-1-3
| 2024-1-3
字数 317阅读时长 1 分钟
type
status
date
slug
summary
tags
category
icon
password
环境:phpstudy php5.4.45nts
注意:通过蚁剑连接,使用eval大多都无法成功,且编解码器使用default会失败,编码器只要不使用default,解码器随意选都会连接成功。蚁剑不支持$_GET,需要使用$_POST等测试

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
 
  • 其他安全
  • go学习—基础小程序和app反编译代码
    Loading...