Exploit databaseDownload repository ZIP
GH-9a0e4face203bb2d404b8aadf03b5c5e
cronus-security/xinhu-v2.3.2
Sources for CVE-2023-1773
2 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files46
cronus-security/xinhu-v2.3.2Revision 08599f237697
- ↑..Parent directory
- JPushChajian.php
- PHPExcelChajian.php
- PHPExcelReaderChajian.php
- PHPWordChajian.php
- alismsChajian.php
- arrayChajian.php
- cacheChajian.php
- calendarChajian.php
- checkChajian.php
- colorChajian.php
- curlChajian.php
- dateChajian.php
- downChajian.php
- editChajian.php
- fileChajian.php
- htmlChajian.php
- hwpushChajian.php
- imageChajian.php
- imapChajian.php
- imgcodeChajian.php
- inputChajian.php
- jmChajian.php
- langChajian.php
- lang_en_USChajian.php
- lang_zh_CNChajian.php
- libreofficeChajian.php
- mailerChajian.php
- mapqqChajian.php
- mysmsChajian.php
- officeChajian.php
- pingyinChajian.php
- qcloudCosChajian.php
- qrcodeChajian.php
- rockeditChajian.php
- rockfileChajian.php
- rockqueueChajian.php
- socketChajian.php
- threadChajian.php
- upfileChajian.php
- wxxcyChajian.php
- xinhuChajian.php
- xinhuapiChajian.php
- xinhudocChajian.php
- xmpushChajian.php
- yunpsmsChajian.php
- zipChajian.php
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
xinhu-cb732f46f8f1e4614c8cfbef47a0bcbde6ecce34/include/chajian/mailerChajian.php
PHP · 2,841 bytes<?php
/**
PHPMailer 读取插件类
*/
include_once(ROOT_PATH.'/include/PHPMailer/class.phpmailer.php');
include_once(ROOT_PATH.'/include/PHPMailer/class.smtp.php');
class mailerChajian extends Chajian{
private $mail;
private $mailbool;
public function initChajian(){
$this->mail = new PHPMailer();
$this->mail->IsSMTP();
$this->mail->SMTPAuth = true;
$this->mail->SMTPDebug = 0;
$this->mail->CharSet = 'UTF-8';
$this->mailbool = false;
}
public function setHost($host, $port=25, $secure=''){
$this->mail->Host = $host;
$this->mail->SMTPSecure = $secure;
$this->mail->Port = (int)$port;
}
public function setUser($email, $pass){
$this->mail->Username = $email;
$this->mail->Password = $pass;
$this->setFrom($email);
$this->addReplyTo($email);
}
//发件人邮箱地址
public function setFrom($from, $name=''){
$this->mail->SetFrom($from, $this->tojoin($name));
}
//设置回复
public function addReplyTo($address, $name=''){
$this->mail->AddReplyTo($address, $this->tojoin($name));
}
//添加抄送
public function addCC($address, $name=''){
$a1 = explode(',', $address);
$n1 = array();
if($name != '')$n1 = explode(',', $name);
for($i=0; $i<count($a1); $i++){
$na = '';
if(isset($n1[$i]))$na = $n1[$i];
$this->mail->AddCC($a1[$i], $this->tojoin($na));
}
}
//添加秘密送
public function addBCC($address, $name=''){
$a1 = explode(',', $address);
$n1 = array();
if($name != '')$n1 = explode(',', $name);
for($i=0; $i<count($a1); $i++){
$na = '';
if(isset($n1[$i]))$na = $n1[$i];
$this->mail->AddBCC($a1[$i], $this->tojoin($na));
}
}
//添加收件人
public function addAddress($address, $name=''){
$a1 = explode(',', $address);
$n1 = array();
if($name != '')$n1 = explode(',', $name);
for($i=0; $i<count($a1); $i++){
$na = '';
if(isset($n1[$i]))$na = $n1[$i];
$this->mail->AddAddress($a1[$i], $this->tojoin($na));
}
}
//添加附件
public function addAttachment($address, $name=''){
if($this->rock->isempt($address))return;
$a1 = explode(',', $address);
$n1 = array();
if($name != '')$n1 = explode(',', $name);
for($i=0; $i<count($a1); $i++){
$na = '';
if(isset($n1[$i]))$na = $n1[$i];
$this->mail->AddAttachment(ROOT_PATH.'/'.$a1[$i], $this->tojoin($na));
}
}
//发送邮件
public function sendMail($Subject, $body=''){
$this->mail->Subject = $this->tojoin($Subject);
$this->mail->Body = $body;
$this->mail->IsHTML(true);
$this->mailbool = $this->mail->Send();
}
public function isSuccess(){
return $this->mailbool;
}
public function getErrror(){
return $this->mail->ErrorInfo;
}
private function tojoin($name='')
{
if($name=='')return '';
return "=?UTF-8?B?".base64_encode($name)."?=";
}
}