2013-10-07 14 views
0

所以我有一個感染通過我的整個網站,其中一個編碼(base64())被注入,它增加了很多隱藏的內容放到人們無法看到的頁面上,但爬蟲可以。我經歷了,我刪除了很多代碼。但接下來發生的事情讓我感到困惑。當通過谷歌訪問網站顯示爲空白,但加載正常,如果你去index.php頁

如果我要去谷歌和搜索巴基網,鏈接出現#5,應該帶你到頁面www.buckynet.org/index.php,它不會,它會直接空白頁面,並坐在那裏......如果我要在瀏覽器中鍵入buckynet.org,它會把我帶到正確的位置......我搞砸了什麼?

+1

請閱讀:http://meta.stackexchange.com/questions/125997/something-in-my-web-site-or-project-doesnt-work-can-i-just-paste-a-link-到它 –

回答

0

我不認爲這是你的代碼的問題...我認爲這是你的虛擬主機的問題。

當我點擊在谷歌搜索鏈接上,我得到以下標題:

Request URL:http://www.buckynet.org/ 
Request Method:GET 
Status Code:200 OK 

**Request Headers:** 
Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 
Accept-Encoding:gzip,deflate,sdch 
Accept-Language:en-US,en;q=0.8 
Connection:keep-alive 
Cookie:PHPSESSID=lebmk3p73rpnralugsecmnvhk3; __qca=P0-875483401-1381177673275 
Host:www.buckynet.org 
Referer:https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=4&ved=0CEUQFjAD&url=http%3A%2F%2Fwww.buckynet.org%2F&ei=MxlTUpjdDeboiALH8IDYAQ&usg=AFQjCNFQkHsKVWhjSyMkEQe67t0jpl6pCQ&sig2=kvqItrvhgwvdx0bZf2lZLQ&bvm=bv.53537100,d.cGE 
User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.69 Safari/537.36 

**Response Headers** 
Connection:Keep-Alive 
Content-Length:0 
Content-Type:text/html 
Date:Mon, 07 Oct 2013 20:34:09 GMT 
Keep-Alive:timeout=5, max=100 
Server:Apache 

在哪裏,當我直接去www.buckynet.org,我得到這些標題:

Request URL:http://www.buckynet.org/ 
Request Method:GET 
Status Code:301 Moved Permanently 

**Request Headers** 
Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 
Accept-Encoding:gzip,deflate,sdch 
Accept-Language:en-US,en;q=0.8 
Cache-Control:max-age=0 
Connection:keep-alive 
Cookie:PHPSESSID=lebmk3p73rpnralugsecmnvhk3; __qca=P0-875483401-1381177673275 
Host:www.buckynet.org 
User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.69 Safari/537.36 

**Response Headers** 
Cache-Control:no-store, no-cache, must-revalidate, post-check=0, pre-check=0 
Connection:Keep-Alive 
Content-Length:0 
Content-Type:text/html; charset=UTF-8 
Date:Mon, 07 Oct 2013 20:38:25 GMT 
Expires:Thu, 19 Nov 1981 08:52:00 GMT 
Keep-Alive:timeout=5, max=100 
Location:http://buckynet.org/ 
Pragma:no-cache 
Server:Apache 
X-Pingback:http://buckynet.org/wordpress/xmlrpc.php 

在第一種情況下請注意狀態碼200 OK,在第二種情況下請注意301永久移動。

但是,Diodeus是正確的... ..沒有你的index.php代碼和可能的.htaccess你在該網站上,我們無法確定。

0

看起來好像您設置了重定向,以便在用戶嘗試訪問您的網站時從網址中刪除www

當用戶進入到您的網站 - http://www.mysite.com - 它正確地重定向 - http://mysite.com - 但是當請求來自谷歌似乎並不重定向,從而顯示一個空白頁。


我開始參數亂搞和以爲我擁有收窄直到我檢查,它現在似乎工作...你有沒有改變任何東西?

0

檢查您的.htaccess文件。大多數情況下,攻擊者在那裏注入代碼,檢查引用者,並將你的頁面重定向到其他網站,如果它來自Google/Yahoo等。如果你直接訪問你的網站,它將不會重定向。

相關問題