Vulnerable-Web-Application/FileInclusion/pages/lvl1.php
2018-11-29 22:08:15 +03:00

31 lines
1.0 KiB
PHP

<html>
<head>
<meta charset="utf-8">
<link rel="shortcut icon" href="../../Resources/hmbct.png" />
<title> Level 1 </title>
</head>
<body>
<button type="button" name="homeButton" onclick="location.href='../../homepage.html';">Home Page</button>
<button type="button" name="mainButton" onclick="location.href='main.html';">Main Page</button>
<button type="button" name="nextButton" onclick="location.href='lvl2.php';">Next Level</button>
<div align="center"><b><h3>This is Level 1</h3></b></div>
<div align="center">
<a href=lvl1.php?file=1.php><button>Button</button></a>
<a href=lvl1.php?file=2.php><button>The Other Button!</button></a>
</div>
<?php
echo "</br></br>";
if (isset( $_GET[ 'file' ]))
{
@include($_GET[ 'file' ]);
echo"<div align='center'><b><h5>".$_GET[ 'file' ]."</h5></b></div> ";
}
?>
</body>
</html>