403Webshell
Server IP : 123.56.80.60  /  Your IP : 216.73.216.78
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/switchApacheMod.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';


$httpdFileContents = @file_get_contents($c_apacheConfFile ) or die ("httpd.conf file not found");

//Uncomment or comment LoadModule line
if($_SERVER['argv'][2] == 'on')
{
    $findTxt  = 'LoadModule '.$_SERVER['argv'][1];
    $replaceTxt  = '#LoadModule '.$_SERVER['argv'][1];
}
else
{
    $findTxt  = '#LoadModule '.$_SERVER['argv'][1];
    $replaceTxt  = 'LoadModule '.$_SERVER['argv'][1];
}

$httpdFileContents = str_replace($findTxt,$replaceTxt,$httpdFileContents);

//Comment or Uncomment #Include conf/extra/httpd-autoindex.conf line
if($_SERVER['argv'][1] == "autoindex_module") {
	if($_SERVER['argv'][2] == 'on') {
	    $findTxt  = 'Include conf/extra/httpd-autoindex.conf';
	    $replaceTxt  = '#Include conf/extra/httpd-autoindex.conf';
	}
	else	{
	    $findTxt  = '#Include conf/extra/httpd-autoindex.conf';
	    $replaceTxt  = 'Include conf/extra/httpd-autoindex.conf';
	}
	$httpdFileContents = str_replace($findTxt,$replaceTxt,$httpdFileContents);
}

write_file($c_apacheConfFile,$httpdFileContents);

?>

Youez - 2016 - github.com/yon3zu
LinuXploit