利用php反射破解部分站点加密文件


Class [ <user> class app\controller\api\Test extends \basic\BaseController ] { @@ /data/app/controller/api/Test.php 26-35 - Constants [0] { } - Static properties [0] { } - Static methods [0] { } - Properties [5] { Property [ <default> protected $request ] Property [ <default> protected $app ] Property [ <default> protected $batchValidate ] Property [ <default> protected $adminInfo ] Property [ <default> protected $middleware ] } - Methods [7] { Method [ <user> public method test ] { @@ /data/app/controller/api/Test.php 28 - 33 } /** * 构造方法 * @access public * @param App $app 应用对象 */ Method [ <user, inherits data\BaseController, ctor> public method __construct ] { @@ /data/BaseController.php 55 - 70 - Parameters [1] { Parameter #0 [ <required> think\App $app ] } } Method [ <user, inherits data\BaseController> protected method initialize ] { @@ /data/BaseController.php 73 - 75 } /** * 验证数据 * @access protected * @param array $data 数据 * @param string|array $validate 验证器名或者验证规则数组 * @param array $message 提示信息 * @param bool $batch 是否批量验证 * @return array|string|true * @throws ValidateException */ Method [ <user, inherits data\BaseController> protected method validate ] { @@ /data/BaseController.php 87 - 112 - Parameters [4] { Parameter #0 [ <required> array $data ] Parameter #1 [ <required> $validate ] Parameter #2 [ <optional> array $message = Array ] Parameter #3 [ <optional> bool $batch = false ] } } /** * 设置分页数据 * @access protected * @return array * @throws ValidateException */ Method [ <user, inherits data\BaseController> protected method getPage ] { @@ /data/BaseController.php 120 - 125 } /** * @return mixed */ Method [ <user, inherits data\BaseController> final protected method getAuth ] { @@ /data/BaseController.php 157 - 211 } } }
 $ref = new \ReflectionClass($this);
// var_dump($ref->getMethods()); 
 \Reflection::export($ref); 
 
posted @ 2020-12-30 14:32  ziyoujike  阅读(263)  评论(0)    收藏  举报