docker-vulnerable-dvwa/dvwa/vulnerabilities/weak_id/source/impossible.php
2018-10-12 15:49:58 +00:00

10 lines
255 B
PHP

<?php
$html = "";
if ($_SERVER['REQUEST_METHOD'] == "POST") {
$cookie_value = sha1(mt_rand() . time() . "Impossible");
setcookie("dvwaSession", $cookie_value, time()+3600, "/vulnerabilities/weak_id/", $_SERVER['HTTP_HOST'], true, true);
}
?>