dvwa updated
This commit is contained in:
parent
8f3c3af4fb
commit
c37af6fc80
84 changed files with 1873 additions and 605 deletions
13
dvwa/vulnerabilities/csp/source/jsonp.php
Normal file
13
dvwa/vulnerabilities/csp/source/jsonp.php
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
header("Content-Type: application/json; charset=UTF-8");
|
||||
|
||||
if (array_key_exists ("callback", $_GET)) {
|
||||
$callback = $_GET['callback'];
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
|
||||
$outp = array ("answer" => "15");
|
||||
|
||||
echo $callback . "(".json_encode($outp).")";
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue