dvwa updated
This commit is contained in:
parent
8f3c3af4fb
commit
c37af6fc80
84 changed files with 1873 additions and 605 deletions
9
dvwa/vulnerabilities/weak_id/source/impossible.php
Normal file
9
dvwa/vulnerabilities/weak_id/source/impossible.php
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<?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);
|
||||
}
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue