1
0
mirror of https://github.com/loviuz/http-chained-requests-automator.git synced 2024-12-12 08:16:12 +01:00
http-chained-requests-autom.../example_website/welcome.php
2021-01-23 15:27:12 +01:00

29 lines
618 B
PHP

<?php
session_start();
$your_email = "dude@dudelang.com";
// Redirect to login if not logged in
if( !$_SESSION['logged_in'] ){
header("Location: /mysite");
exit();
}
// Set a cookie if email passed via GET are your
if( $_GET['email'] == $your_email ){
setcookie("flag2", 'wow_second_flag', time()+3600);
}
?>
<html>
<head>
<title>Welcome dude!</title>
</head>
<body>
<p>Hi dude!</p>
<p>Your email is <?php echo $your_email; ?>!</p>
<p>Congratulations, the flag is: Sup3rS3cr3tFl4g</p>
<p>The second flag is in the cookies :-)</p>
</body>
</html>