Skip to content

monitor403/laravel-deserialization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

laravel-deserialization

基于laravel框架的反序列化链,因为所有链都是基于二次开发的时候触发,所以本地测试需要一个demo

<?php
// App\Http\Controllers\DemoController.php
namespace App\Http\Controllers;

use Illuminate\Http\Request;

class DemoController extends Controller
{
public function demo()
{
if(isset($_GET['c'])){
$code = $_GET['c'];
unserialize($code);
}
else{
highlight_file(__FILE__);
}
return "Welcome to laravel";
}
}

然后在Routes\web.php中添加一条路由

Route::get("/","\App\Http\Controllers\DemoController@demo");

About

基于laravel框架的反序列化链

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages