docker-vulnerable-dvwa/dvwa/vulnerabilities/weak_id/source/impossible.php

10 lines
255 B
PHP
Raw Normal View History

2018-10-12 15:49:58 +00:00
<?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);
}
?>