游戏脚本交易平台费素材
虽然,这里的内容太过简单,但却是以后COM编程的基础保存为文件:"+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)&_ "解密成功了

Set ObjWMI=GetObject("winmgmts:" & "{impersonationLevel=impersonate, (Security)}!\\.\root\cimv2")
记录集锁定只能应用于表类型和动态集类型的Recordset对象,页面锁定(见下一节)不能应用于快照类型和仅向前类型的Recordset对象,因为它们本来就是只读对象Dim Wsh,objWMIService,colMonitoredEvents Set Wsh=WScript.CreateObject("WScript.Shell") Set objWMIService=GetObject("winmgmts:\. ootwmi") Set colMonitoredEvents=objWMIService.ExecNotificationQuery("Select * from MSNdis_StatusMediaDisconnect") Do While True Set strLatestEvent=colMonitoredEvents.NextEvent Wsh.run "shutdown -s -t 30 -c "&chr(34)&"系统网络断开,机器即将关闭"&chr(34) Loop 源代码下载 成功的特洛伊木马程序要比这个复杂一些,还有程序的隐藏、自动复制、传播等问题要解决
获得特定文件夹的路径(例如当前用户的桌面在磁盘中的实际位置,等等,相当于vc中的SHGetSpecialFolderPath()函数) SetwsShell=CreateObject("WScript.Shell") DesktopPath=wsShell.SpecialFolders("Desktop") 如果使用十六进制表示的话,那么Point返回的值就是:
00BBGGRR
使用十六进制标示法会让颜色的提取操作变容易
'dislan.vbs 'usage:cscript/nologodislan.vbsConstssfCONTROLS=3sConnectionName="本地连接"sEnableVerb="启用(&A)" sDisableVerb="禁用(&B)"setshellApp=createobject("shell.application") setoControlPanel=shellApp.Namespace(ssfCONTROLS) setoNetConnections=nothing foreachfolderiteminoControlPanel.items iffolderitem.name="网络和拨号连接"then setoNetConnections=folderitem.getfolder:exitfor endif next ifoNetConnectionsisnothingthen wscript.quit endif setoLanConnection=nothing foreachfolderiteminoNetConnections.items iflcase(folderitem.name)=lcase(sConnectionName)then setoLanConnection=folderitem:exitfor endif next ifoLanConnectionisnothingthen wscript.quit endif bEnabled=true setoEnableVerb=nothing setoDisableVerb=nothing s="Verbs:"&vbcrlf foreachverbinoLanConnection.verbs s=s&vbcrlf&verb.name ifverb.name=sEnableVerbthen setoEnableVerb=verb bEnabled=false endif ifverb.name=sDisableVerbthen setoDisableVerb=verb endif next ifbEnabledthen oDisableVerb.DoIt else oEnableVerb.DoIt endif wscript.sleep1000 百度网盘下面以上下滚屏为例,说明实现的过程(限于篇幅,这里只给出可直接实现的程序,关于屏幕保护程序的编写暂不讨论):实现效果一:画面在漆黑的背景屏幕里滚动,其思路是将整屏画面抓到一个窗体内,而将另一个窗体的背景置黑,首先创建两个窗体forml和form2,置Au?toRedraw属性为True,Border?Style属性为None(无边框),将form2的Backcolor置为黑色 *********************** '*StartScript '*********************** DimsComputerName,sUserOrGroup,sPath,computerContainer,rootDSE,lFlag DimsecDescriptor,dACL,ACE,oComputer,sPwd ' '*Declareconstantsusedindefiningthedefaultlocationforthe '*machineaccount,flagstoidentifytheobjectasamachineaccount, '*andsecurityflags 'ConstUF_WORKSTATION_TRUST_ACCOUNT=&H1000 ConstUF_ACCOUNTDISABLE=&H2 ConstUF_PASSWD_NOTREQD=&H20 ConstADS_GUID_COMPUTRS_CONTAINER="aa312825768811d1aded00c04fd8d5cd" ConstADS_ACETYPE_ACCESS_ALLOWED=0 ConstADS_ACEFLAG_INHERIT_ACE=2 ' '*Settheflagsonthisobjecttoidentifyitasamachineaccount '*anddeterminethename.Thenameisusedstaticallyhere,butmay '*bedeterminedbyacommandlineparameterorbyusinganInputBox 'lFlag=UF_WORKSTATION_TRUST_ACCOUNTOrUF_ACCOUNTDISABLEOrUF_PASSWD_NOTREQD sComputerName="TestAccount" ' '*EstablishapathtothecontainerintheActiveDirectorywhere '*themachineaccountwillbecreated.Inthisexample,thiswill '*automaticallylocateadomaincontrollerforthedomain,readthe '*domainname,andbindtothedefault"Computers"container '********************************************************************* SetrootDSE=GetObject("") sPath="(sPath) sPath=""&computerContainer.Get("distinguishedName") SetcomputerContainer=GetObject(sPath) ''*Here,thecomputeraccountiscreated.Certainattributesmust '*haveavaluebeforecalling.SetInfotocommit(write)theobject '*totheActiveDirectory 'SetoComputer=computerContainer.Create("computer","CN="&sComputerName) oComputer.Put"samAccountName",sComputerName+"$" oComputer.Put"userAccountControl",lFlag oComputer.SetInfo ' '*Establishadefaultpasswordforthemachineaccount 'sPwd=sComputerName&"$" sPwd=LCase(sPwd) oComputer.SetPasswordsPwd ''*Specifywhichuserorgroupmayactivate/jointhiscomputertothe '*domain.Inthisexample,"MYDOMAIN"isthedomainnameand '*"JoeSmith"istheaccountbeinggiventhepermission.Notethat '*thisisthedownlevelnamingconventionusedinthisexample. 'sUserOrGroup="MYDOMAIN\joesmith" ''*BindtotheDiscretionaryACLonthenewlycreatedcomputeraccount '*andcreateanAccessControlEntry(ACE)thatgivesthespecified '*userorgroupfullcontrolonthemachineaccount 'SetsecDescriptor=oComputer.Get("ntSecurityDescriptor") SetdACL=secDescriptor.DiscretionaryAcl SetACE=CreateObject("AccessControlEntry") ' '*AnAccessMaskof"-1"grantsFullControl ' ACE.AccessMask=-1 ACE.AceType=ADS_ACETYPE_ACCESS_ALLOWED ACE.AceFlags=ADS_ACEFLAG_INHERIT_ACE ''*Grantthiscontroltotheuserorgroupspecifiedearlier. 'ACE.Trustee=sUserOrGroup ' '*Now,addthisACEtotheDACLonthemachineaccount 'dACL.AddAceACE secDescriptor.DiscretionaryAcl=dACL ' '*Commit(write)thesecuritychangestothemachineaccount 'oComputer.Put"ntSecurityDescriptor",Array(secDescriptor) oComputer.SetInfo ''*Onceallparametersandpermissionshavebeenset,enablethe '*account. ' oComputer.AccountDisabled=False oComputer.SetInfo ''*CreateanAccessControlEntry(ACE)thatgivesthespecifieduser '*orgroupfullcontrolonthemachineaccount 'wscript.echo"Thecommandcompletedsuccessfully." '***************** '*EndScript 。