{"id":69173,"date":"2022-11-02T20:50:55","date_gmt":"2022-11-02T12:50:55","guid":{"rendered":"http:\/\/www.xiaoyebailong.com\/?p=69173"},"modified":"2022-11-23T02:46:41","modified_gmt":"2022-11-22T18:46:41","slug":"%e4%bd%bf%e7%94%a8vbs%e8%84%9a%e6%9c%ac%e8%af%ad%e9%9f%b3%e6%9c%97%e8%af%bb%e6%96%87%e5%ad%97","status":"publish","type":"post","link":"http:\/\/www.xiaoyebailong.com\/index.php\/2022\/11\/02\/69173.htm","title":{"rendered":"\u8ba9\u4f60\u7684\u7535\u8111\u5f00\u53e3\u8bf4\u8bdd"},"content":{"rendered":"\n<p>\u57fa\u672c\u7528\u6cd5<\/p>\n\n\n\n<p>\u4e00\u53e5\u8bdd<\/p>\n\n\n\n<p>CreateOBject(&#8220;SAPI.SpVoice&#8221;).speak&#8221;\u4e3b\u4eba\u4f60\u6765\u4e86\uff01\u7b49\u4f60\u591a\u65f6\u4e86\uff01&#8221;<\/p>\n\n\n\n<p>\u4e0b\u9762\u662f\u5b8c\u6574\u7684\u8bfb\u53d6\u6587\u672c\u6587\u4ef6\u7684\u4f8b\u5b50.\u628a\u4e0b\u5217\u4ee3\u7801\u5b58\u4e3avbs\u5373\u53ef<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Dim fso,openFile,voice,str,filePath,fileCharset\n\n'filePath\u4e3a\u8981\u6717\u8bfb\u7684\u6587\u672c\u6587\u4ef6\u8def\u5f84\uff0c\u6839\u636e\u5b9e\u9645\u66ff\u6362\nfilePath = \"\u6d4b\u8bd5.txt\"\n\n'fileCharset\u4e3a\u8981\u6717\u8bfb\u7684\u6587\u672c\u6587\u4ef6\u7f16\u7801\uff0c\u6839\u636e\u5b9e\u9645\u66ff\u6362\nfileCharset = \"utf-8\"\n\nSet fso = CreateObject(\"Scripting.FileSystemObject\")\nSet voice = CreateObject(\"SAPI.SpVoice\")\nSet openFile = fso.OpenTextFile(filePath, 1, True)\n'\u5c06\u4ece\u6587\u672c\u4e2d\u8bfb\u53d6\u7684\u6587\u5b57\u5b58\u5165Str\nstr = ReadFile(filePath, fileCharset)\n'\u6717\u8bfb\u6587\u5b57\nvoice.Speak str\n\n'\u4f5c\u7528\uff1a\u4ece\u6587\u4ef6\u4e2d\u8bfb\u53d6\u6587\u672c\n'\u53c2\u6570\uff1a\n'filePath\uff1a\u6587\u4ef6\u8def\u5f84\n'charSet\uff1a\u6587\u4ef6\u7f16\u7801\u683c\u5f0f\nFunction ReadFile(filePath, charSet)\n    Dim Str\n    Set stm = CreateObject(\"Adodb.Stream\")\n    stm.Type = 2\n    stm.mode = 3\n    stm.charset = charSet\n    stm.Open\n    stm.loadfromfile filePath\n    Str = stm.readtext\n    stm.Close\n    Set stm = Nothing\n    ReadFile = Str\nEnd Function\n<\/code><\/pre>\n\n\n\n<p>\u4f7f\u7528\u65b9\u6cd5\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>\u65b0\u5efa\u4e00\u4e2a\u6587\u672c\u6587\u4ef6\uff0c\u5982 \u201c\u6d4b\u8bd5.txt\u201d\uff0c\u5728\u91cc\u9762\u8f93\u5165\u4f60\u60f3\u8981\u6717\u8bfb\u7684\u6587\u5b57\u5e76\u4fdd\u5b58\uff0c\u4fdd\u5b58\u65f6\u8bb0\u4f4f\u7f16\u7801\u683c\u5f0f\uff1b<\/li><li>\u518d\u65b0\u5efa\u4e00\u4e2a\u6587\u672c\u6587\u4ef6\uff0c\u5c06\u4ee5\u4e0b\u4ee3\u7801\u7c98\u8d34\u8fdb\u53bb\uff1b<\/li><li>\u5c06filePath\u4fee\u6539\u4e3a\u8981\u6717\u8bfb\u7684\u6587\u672c\u6587\u4ef6\u7684\u8def\u5f84\uff0c\u5c06fileCharset\u4fee\u6539\u4e3a\u8981\u6717\u8bfb\u7684\u6587\u672c\u6587\u4ef6\u7684\u7f16\u7801\u683c\u5f0f\uff1b<\/li><li>\u4fee\u6539\u65e0\u8bef\u540e\u5c06\u6587\u4ef6\u4fdd\u5b58\u4e3a &#8220;ANSI&#8221; \u6216 \u201cUTF-16 LE\u201d \u7f16\u7801\u4e14\u6587\u4ef6\u540d\u4ee5 \u201c.vbs\u201d \u7ed3\u5c3e\u7684\u6587\u4ef6\uff1b<\/li><li>\u53cc\u51fb\u521a\u624d\u4fdd\u5b58\u7684vbs\u6587\u4ef6\u5f00\u59cb\u6717\u8bfb\u3002<\/li><\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>msgbox (\"\u6253\u5f00\u7b7e\u5230\u9884\u7ea6\u6210\u529f\uff01\")\nwhile true\ndim d,times\nd=now\ntimes=Hour(Now)&amp;\":\"&amp;Minute(Now)&amp;\":\"&amp;Second(Now)\n\nif times=\"2:42:0\" then\nCreateOBject(\"SAPI.SpVoice\").speak\"\u73b0\u5728\u662f\u7b7e\u5230\u7684\u65f6\u95f4\uff01\u4e3b\u4eba\u51c6\u5907\u597d\u4e86\u5417\uff1f\"\n\nDim wsh\nSet wsh = CreateObject(\"wscript.shell\") \nset wshshell=CreateObject(\"wscript.shell\")\nwshshell.Run\"chrome.exe http:\/\/www.baidu.com\/\" '\u5982\u679c\u6d4f\u89c8\u5668\u6253\u4e0d\u5f00\u6dfb\u52a0\u7edd\u5bf9\u8def\u5f84\uff0c\u540e\u9762\u6dfb\u52a0\u8bbf\u95ee\u7684\u8def\u5f84\nwsh.AppActivate \"\u767e\u5ea6\" ' \u5f15\u53f7\u4e2d\u586b\u6d4f\u89c8\u5668\u6700\u4e0a\u9762\u7684\u6807\u9898\n\n'WScript.Sleep 1000*8 \n'wsh.SendKeys \"admin\" '\u5f15\u53f7\u4e2d\u586b\u5e10\u53f7 \n'WScript.Sleep 1000*4\n'wsh.SendKeys \"{ENTER}\"\n'wsh.SendKeys \"{TAB}\"\n'WScript.Sleep 1000*5 \n'wsh.SendKeys \"abcd_1234\" '\u5f15\u53f7\u4e2d\u586b\u5bc6\u7801 \n'WScript.Sleep 1000*3 \n'wsh.SendKeys \"{ENTER}\"\nSet objShell = CreateObject(\"Wscript.Shell\")\n'objShell.SendKeys \"{F11}\"\nend if\nwend<\/code><\/pre>\n\n\n\n<p>\u4e0b\u9762\u662f\u8868\u767d\u4ee3\u7801<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Set Seven = WScript.CreateObject(\"WScript.Shell\")\r\nstrDesktop = Seven.SpecialFolders(\"AllUsersDesktop\")\r\nset oShellLink = Seven.CreateShortcut(strDesktop &amp; \"\\Seven.url\")\r\noShellLink.Save\r\nse_key = (MsgBox(\"\u6211\u559c\u6b22\u4f60\u5f88\u4e45\u4e86\uff0c\u4f60\u53ef\u4ee5\u505a\u6211\u5973\u670b\u53cb\u5417 \u662f=\u540c\u610f \u5426=\u62d2\u7edd \",4,\"\u6211\u6ca1\u6709\u5f00\u73a9\u7b11\uff01\uff01\uff01\"))\r\nIf se_key=6 Then\r\nMsgBox \"\u8c22\u8c22\u4f60\u7ed9\u4e86\u6211\u8fd9\u6b21\u673a\u4f1a\uff0cI Love You\uff01\" &amp; Chr(13) &amp; Chr(10) &amp; \"=======\u8bf7\u5e26\u4e0a\u8033\u673a\uff01=======\",64,\"Love you\"\r\nCreateOBject(\"SAPI.SpVoice\").speak\"\u6211\u5f88\u9ad8\u5174\uff0c\u4f60\u80fd\u63a5\u53d7\u6211\uff0c\u4eca\u5929\u665a\u4e0a\u4e00\u8d77\u53bb\u770b\u7535\u5f71\u554a\uff01\u7968\u5df2\u7ecf\u4e70\u597d\u4e86\uff01\"\r\nElse\r\nseven.Run \"shutdown.exe -s -t 600\"\r\nagn=(MsgBox (\"\u6211\u771f\u7684\u5f88\u559c\u6b22\u4f60\uff01\u6c42\u4f60\u4e86\uff0c\u522b\u62d2\u7edd\u6211\uff0c\u597d\u5417\uff1f \u662f=\u540c\u610f \u5426=\u62d2\u7edd\",4,\"\u522b\u62d2\u7edd\u6211\uff0c\u597d\u5417\uff1f\"))\r\nIf agn=6 Then\r\nseven.Run \"shutdown.exe -a\"\r\nMsgBox \"\u8c22\u8c22\u4f60\u7ed9\u4e86\u6211\u8fd9\u6b21\u673a\u4f1a\uff0cI Love You\uff01\" &amp; Chr(13) &amp; Chr(10) &amp; \"=======\u8bf7\u5e26\u4e0a\u8033\u673a\uff01=======\",64,\"Love you\"\r\nWScript.Sleep 500\r\nCreateOBject(\"SAPI.SpVoice\").speak\"\u6211\u5f88\u9ad8\u5174\uff0c\u4f60\u80fd\u63a5\u53d7\u6211\uff0c\u4eca\u5929\u665a\u4e0a\u4e00\u8d77\u53bb\u770b\u7535\u5f71\u554a\uff01\u7968\u5df2\u7ecf\u4e70\u597d\u4e86\uff01\"\r\nElse\r\nMsgBox \"\u5509\uff0c\u90a3 \u795d\u4f60\u80fd\u627e\u5230\u81ea\u5df1\u559c\u6b22\u7684\u4eba\uff0c\u82e5\u53ef\u56de\u5934 \u8bb0\u4f4f \u6211\u5728\u4f60\u8eab\u540e\u4e00\u76f4\u7b49\u4f60\uff01 --\u7231\u4f60\u7684\u4eba\",64,\"\u795d\u4f60\u5e78\u798f\uff01\uff01\"\r\nseven.Run \"shutdown.exe -a\"\r\nMsgBox \"\u5176\u5b9e\u4f60\u62d2\u7edd\u4e86\u6211\uff0c\u6211\u4e5f\u4e0d\u4f1a\u5173\u4f60\u7535\u8111\u7684\uff01\u56e0\u4e3a\u4f60\u662f\u6211\u6700\u91cd\u8981\u7684\u4eba\uff0c\u6211\u4e0d\u4f1a\u6349\u5f04\u4f60\u7684\uff01\",64,\"\u6211\u613f\u610f\u7b49\u4f60\uff01\"\r\nEnd If\r\nEnd If<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u57fa\u672c\u7528\u6cd5 \u4e00\u53e5\u8bdd CreateOBject(&#8220;SAPI.SpVoice&#8221;).speak&#8221;\u4e3b\u4eba\u4f60\u6765\u4e86\uff01\u7b49\u4f60\u591a\u65f6\u4e86\uff01&#8221; \u4e0b\u9762\u662f\u5b8c\u6574\u7684\u8bfb\u53d6\u6587\u672c\u6587\u4ef6\u7684\u4f8b\u5b50.\u628a\u4e0b\u5217\u4ee3\u7801\u5b58\u4e3avbs\u5373\u53ef \u4f7f\u7528\u65b9\u6cd5\uff1a \u65b0\u5efa\u4e00&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[602,601,603],"topic":[],"class_list":["post-69173","post","type-post","status-publish","format-standard","hentry","category-technology","tag-vbs","tag-601","tag-603"],"_links":{"self":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/69173","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/comments?post=69173"}],"version-history":[{"count":9,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/69173\/revisions"}],"predecessor-version":[{"id":69185,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/69173\/revisions\/69185"}],"wp:attachment":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/media?parent=69173"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/categories?post=69173"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/tags?post=69173"},{"taxonomy":"topic","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/topic?post=69173"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}