first commit
This commit is contained in:
parent
985a5c928c
commit
f40a84879c
551 changed files with 72374 additions and 24 deletions
26
dvwa/vulnerabilities/view_help.php
Normal file
26
dvwa/vulnerabilities/view_help.php
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<?php
|
||||
|
||||
define( 'DVWA_WEB_PAGE_TO_ROOT', '../' );
|
||||
require_once DVWA_WEB_PAGE_TO_ROOT . 'dvwa/includes/dvwaPage.inc.php';
|
||||
|
||||
dvwaPageStartup( array( 'authenticated', 'phpids' ) );
|
||||
|
||||
$page = dvwaPageNewGrab();
|
||||
$page[ 'title' ] = 'Help' . $page[ 'title_separator' ].$page[ 'title' ];
|
||||
|
||||
$id = $_GET[ 'id' ];
|
||||
$security = $_GET[ 'security' ];
|
||||
|
||||
ob_start();
|
||||
eval( '?>' . file_get_contents( DVWA_WEB_PAGE_TO_ROOT . "vulnerabilities/{$id}/help/help.php" ) . '<?php ' );
|
||||
$help = ob_get_contents();
|
||||
ob_end_clean();
|
||||
|
||||
$page[ 'body' ] .= "
|
||||
<div class=\"body_padded\">
|
||||
{$help}
|
||||
</div>\n";
|
||||
|
||||
dvwaHelpHtmlEcho( $page );
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue