本文主要是介绍[网鼎杯 2020 半决赛]AliceWebsite,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
知识点:目录寻找
判断action是否存在,也就是我们可以一层一层的查文件,flag名试呗flag或者flag.php或者flag.txt
<!DOCTYPE html>
<html lang="zh-CN">
<head><meta charset="utf-8"><title>Wecome to Alice's Website!</title><link href="./bootstrap/css/bootstrap.min.css" rel="stylesheet">
</head>
<body><nav class="navbar navbar-inverse navbar-fixed-top"><div class="container"><div class="navbar-header"><button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"><span class="sr-only">Alice's Website</span><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></button><a class="navbar-brand" href="index.php?action=home.php">Alice's Website</a></div><div id="navbar" class="collapse navbar-collapse"><ul class="nav navbar-nav"><li class="active"><a href="index.php?action=home.php">Home</a></li><li><a href="index.php?action=about.php">About</a></li></ul></div></div></nav><div class="container" style="padding-top: 5%"><?php$action = (isset($_GET['action']) ? $_GET['action'] : 'home.php');if (file_exists($action)) {include $action;} else {echo "File not found!";}?></div>
</body>
</html>
这篇关于[网鼎杯 2020 半决赛]AliceWebsite的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!