<?php
$flag="flag{xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx}";
session_start();
$requset = array_merge($_GET, $_POST, $_SESSION,$_COOKIE);
if(isset($requset['token'])){
$login = unserialize(gzuncompress(base64_decode($requset['token'])));
if($login['user'] === 'ichunqiu')
{
echo $flag;
}
}
?>
最终需要的条件是$login=array(‘user’=>’array’) 也就是unserialize(gzuncompress(base64_decode($requset['token'])))==array('user'=>'ichunqiu')
->gzuncompress(base64_decode($requset['token']))==serialize(array('user'=>'ichunqiu'))
->base64_decode($requset['token'])==gzcompress(serialize(array('user'=>'ichunqiu'))
->$requset['token']==base64_encode(gzcompress(serialize(array('user'=>'ichunqiu'))))
因此最终传参eJxLtDK0qi62MrFSKi1OLVKyLraysFLKTM4ozSvMLFWyrgUAo4oKXA==
?token=eJxLtDK0qi62MrFSKi1OLVKyLraysFLKTM4ozSvMLFWyrgUAo4oKXA==
打赏我,让我更有动力~
© 2016 - 2024 掌控者 All Rights Reserved.
君叹
发表于 2023-6-15
源码在哪找啊
评论列表
加载数据中...