利用php反射破解部分站點加密檔案
阿新 • • 發佈:2020-12-30
$ref=new\ReflectionClass($this); //var_dump($ref->getMethods()); \Reflection::export($ref);
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 } } }