dvwa updated
This commit is contained in:
parent
8f3c3af4fb
commit
c37af6fc80
84 changed files with 1873 additions and 605 deletions
14
dvwa/vulnerabilities/weak_id/source/high.php
Normal file
14
dvwa/vulnerabilities/weak_id/source/high.php
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
|
||||
$html = "";
|
||||
|
||||
if ($_SERVER['REQUEST_METHOD'] == "POST") {
|
||||
if (!isset ($_SESSION['last_session_id_high'])) {
|
||||
$_SESSION['last_session_id_high'] = 0;
|
||||
}
|
||||
$_SESSION['last_session_id_high']++;
|
||||
$cookie_value = md5($_SESSION['last_session_id_high']);
|
||||
setcookie("dvwaSession", $cookie_value, time()+3600, "/vulnerabilities/weak_id/", $_SERVER['HTTP_HOST'], false, false);
|
||||
}
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue