403Webshell
Server IP : 123.56.80.60  /  Your IP : 216.73.216.33
Web Server : Apache/2.4.54 (Win32) OpenSSL/1.1.1s PHP/7.4.33 mod_fcgid/2.3.10-dev
System : Windows NT iZhx3sob14hnz7Z 10.0 build 14393 (Windows Server 2016) i586
User : SYSTEM ( 0)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /wamp/scripts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /wamp/scripts/getInstalledBrowsers.php
<?php

if(!defined('WAMPTRACE_PROCESS')) require 'config.trace.php';
if(WAMPTRACE_PROCESS) {
	$errorTxt = "script ".__FILE__;
	$iw = 1; while(!empty($_SERVER['argv'][$iw])) {$errorTxt .= " ".$_SERVER['argv'][$iw];$iw++;}
	error_log($errorTxt."\n",3,WAMPTRACE_FILE);
}

require 'config.inc.php';
require 'wampserver.lib.php';

//Search for different browsers installed on the system
clearstatcache(true);
$commandStr = 'HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet';
$command = 'CMD /D /C reg query '.$commandStr;
exec($command, $output);
$clients = $browser = array();
foreach($output as $value) {
	if(strpos($value,$commandStr) !== false) {
		$temp = str_replace($commandStr,'',$value,$count);
		if(!empty($temp) && $count > 0) {
			$clients[] = str_replace('\\','',$temp);
		}
	}
}
unset($value);
//Search for the names and paths of the various installed browsers
foreach($clients as $value) {
	unset($output);
	$command = 'CMD /D /C reg query "'.$commandStr.'\\'.$value.'" /ve';
	exec($command, $output);
	foreach($output as $name) {
		if(strpos($name, 'REG_SZ') !== false) {
			preg_match('~^\s+.+REG_SZ\s+(.*)\r?$~mi',$name,$matches);
			$temp = $matches[1];
			if(stripos($temp,'Google') !== false && stripos($temp,'Chrome') !== false) {
				$temp = "Google Chrome";
			}
			$browser['name'][] = $temp;
		}
	}
	unset($output);
	$command = 'CMD /D /C reg query "'.$commandStr.'\\'.$value.'\\shell\\open\\command"';
	exec($command, $output);
	foreach($output as $path) {
		if(strpos($path, 'REG_SZ') !== false) {
			preg_match('~^\s+.+REG_SZ\s+(.*)\r?$~mi',$path,$matches);
			$temp = str_replace(array('"','\\'),array('','/'),$matches[1]);
			if(file_exists($temp)) {
				$browser['path'][] = $temp;
			}
			else {
				$browser['path'][] = '';
			}
		}
	}
}

$FileContents = '<?php'."\n\n".'$browser = '.var_export($browser, true).';'."\n\n?>\n";
write_file('ListBrowsers.txt',$FileContents);

?>

Youez - 2016 - github.com/yon3zu
LinuXploit