403Webshell
Server IP : 104.21.38.3  /  Your IP : 162.158.108.7
Web Server : Apache
System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64
User : www ( 1000)
PHP Version : 7.4.33
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /www/wwwroot/lapma.in/airpay_php_v3/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wwwroot/lapma.in/airpay_php_v3/validation.php
<?php
	
	// if($buyerEmail=='' && $buyerPhone =='' && $buyerFirstName =='' && $buyerLastName == '' && $amount == '')
	// {
	// 	createsendBack($sendBack='',$error='ALL', $id,$value,'error.php');
	// }
	if($buyerFirstName =='' && $buyerLastName == '' && $amount == '')
	{
		createsendBack($sendBack='',$error='ALL', $id,$value,'error.php');
	}
	if($buyerEmail=='')
	{
		//createsendBack($sendBack='',$error='E', $id,$value,'error.php');
	}
	else
	{	
		if (!filter_var($buyerEmail, FILTER_VALIDATE_EMAIL) ||  (strlen($buyerEmail) > 50) ){

			createsendBack($sendBack='',$error='VE', $id,$value,'error.php');	
		}
	}
	if($buyerPhone=='')
	{
		//createsendBack($sendBack='',$error='BP', $id,$value,'error.php');	
	}
	else
	{
		$regex = '/^[0-9- ]{8,15}$/i'; 
		if(!preg_match($regex,$buyerPhone)) {
			createsendBack($sendBack='',$error='VBP', $id,$value,'error.php');	
		}
	}
	if($buyerEmail=='' && $buyerPhone== '')
	{ 
       createsendBack($sendBack='',$error='EP', $id,$value,'error.php');
	}
	if($buyerFirstName=='')
	{
		createsendBack($sendBack='',$error='FN', $id,$value,'error.php');	
	}
	else
	{
		$regex = '/^[a-z \d]{1,50}$/i'; 
		if(!preg_match($regex,$buyerFirstName)) {
			createsendBack($sendBack='',$error='VFN', $id,$value,'error.php');	
		}
	}
	if($buyerLastName=='')
	{
		createsendBack($sendBack='',$error='LN', $id,$value,'error.php');	
	}
	else
	{
		$regex = '/^[a-z \d]{1,50}$/i'; 
		if(!preg_match($regex,$buyerLastName)) {
			createsendBack($sendBack='',$error='VLN', $id,$value,'error.php');	
		}
	}
	
	if($buyerAddress!='')
	{
		$regex =  '/^[a-z ,;.#$\/( )-_\d]{4,255}$/i';
		if(!preg_match($regex,$buyerAddress)) {
			createsendBack($sendBack='',$error='VADD', $id,$value,'error.php?a='.$buyerAddress);	
		}
	}
	if($buyerCity!='')
	{
		$regex =  '/^[a-z \d]{2,50}$/i';
		if(!preg_match($regex,$buyerCity)) {
			createsendBack($sendBack='',$error='VCIT', $id,$value,'error.php');	
		}
	}
	if($buyerState!='')
	{
		$regex =  '/^[a-z \d]{2,50}$/i';
		if(!preg_match($regex,$buyerState)) {
			createsendBack($sendBack='',$error='VSTA', $id,$value,'error.php');	
		}
	}
	if($buyerCountry!='')
	{
		$regex =  '/^[a-z \d]{2,50}$/i';
		if(!preg_match($regex,$buyerCountry)) {
			createsendBack($sendBack='',$error='VCON', $id,$value,'error.php');	
		}
	}

	if($buyerPinCode!='')
	{
		$regex = '/^[a-z\d]{4,8}$/i';
		if(!preg_match($regex,$buyerPinCode)) {
			createsendBack($sendBack='',$error='VPIN', $id,$value,'error.php');	
		}
	}
	
	if($amount=='')
	{
		createsendBack($sendBack='',$error='A', $id,$value,'error.php');	
	}
	else
	{
		$regex = '/^[0-9]{1,6}\.[0-9]{2,2}$/';
		if(!preg_match($regex,$amount)) {
			createsendBack($sendBack='',$error='VA', $id,$value,'error.php');	
		}
	}


function createsendBack($sendBack,$err='', $id, $value, $action){
	echo '<!DOCTYPE HTML>';
	echo '<html lang="en">';
	echo '<head>';
	echo '<meta charset="utf-8" />';
	echo '</head>';
	echo '<body onLoad="javascript:document.errorform.submit();">';
	echo '<form name="errorform" id="errorform" method="post" action="'.$action.'">';
	echo '<input type="hidden" id="bac" name="bac" value="'.htmlspecialchars($sendBack).'">';
	echo '<input type="hidden" id="status" name="status" value="'.$err.'">';
	echo '<input type="hidden" id="statusmsg" name="statusmsg" value="'.$statusmsg.'">';
	echo '<input type="hidden" id="'.$id.'" name="'.$id.'" value="'.$value.'">';
	echo '</form>';
	echo '</body>';
	echo '</html>';
	exit();
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit