{"id":3547,"date":"2024-11-10T14:44:44","date_gmt":"2024-11-10T06:44:44","guid":{"rendered":"https:\/\/fwq.ai\/blog\/3547\/"},"modified":"2024-11-10T14:44:44","modified_gmt":"2024-11-10T06:44:44","slug":"%e8%bf%99%e4%b8%aa-windows-%e8%84%9a%e6%9c%ac%e5%b9%b6%e4%b8%8d%e6%98%af%e5%9c%a8%e5%af%bb%e6%b1%82%e5%b8%ae%e5%8a%a9","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/3547\/","title":{"rendered":"\u8fd9\u4e2a Windows \u811a\u672c\u5e76\u4e0d\u662f\u5728\u5bfb\u6c42\u5e2e\u52a9"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/173105526174376.jpg\" class=\"aligncenter\" title=\"\u8fd9\u4e2a Windows \u811a\u672c\u5e76\u4e0d\u662f\u5728\u5bfb\u6c42\u5e2e\u52a9\u63d2\u56fe\" alt=\"\u8fd9\u4e2a Windows \u811a\u672c\u5e76\u4e0d\u662f\u5728\u5bfb\u6c42\u5e2e\u52a9\u63d2\u56fe\" \/><\/p>\n<pre>0&lt; \/* ::\n\n@echo off\n\nset \/a min = 15\nset \/a max = 45\n\n:loop\n\nCScript \/\/nologo \/\/E:JScript \"%~F0\" \"+{F15}\"\nset \/a rand = (%RANDOM% * (%max% - %min% + 1) \/ 32768) + %min% + 1\nping -n %rand% -w 1 127.0.0.1 &gt; NUL\n\ngoto :loop\n\n*\/ 0;\n\nWScript.CreateObject(\"WScript.Shell\").SendKeys(WScript.Arguments(0));\n<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<h2> \u8fd9\u662f\u505a\u4ec0\u4e48\u7684\uff1f <\/h2>\n<p>\u82b1\u70b9\u65f6\u95f4\u770b\u770b\u4f60\u662f\u5426\u80fd\u5f04\u6e05\u695a\u8fd9\u91cc\u53d1\u751f\u4e86\u4ec0\u4e48\u3002<\/p>\n<p>\u7ee7\u7eed\u3002\u6211\u4f1a\u7b49\u5f85 15 \u5230 45 \u79d2\uff0c\u7136\u540e\u53d1\u9001 shift + f15 \u7ec4\u5408\u952e\u3002<\/p>\n<h2> \u4f60\u8981\u8fd9\u4e48\u505a\uff1f <\/h2>\n<p>\u56e0\u4e3a f15 \u952e\u5b58\u5728\uff0c\u4f46\u5927\u591a\u6570\u952e\u76d8\u4e0d\u518d\u6709\u5b83\uff0c\u6240\u4ee5\u6309 shift + f15 \u4e0d\u592a\u53ef\u80fd\u505a\u4efb\u4f55\u4e8b\u60c5\uff0c\u9664\u4e86\u4f5c\u4e3a\u4e00\u822c\u6309\u4e0b\u7684\u7ec4\u5408\u952e\uff0c\u5728\u5927\u591a\u6570\u60c5\u51b5\u4e0b\u963b\u6b62\u8ba1\u7b97\u673a\u4f11\u7720\uff08\u67d0\u4e9b vdi \u9664\u5916\uff09\u8bbe\u7f6e\uff09\u3002<\/p>\n<p>\u5b83\u65e0\u9700\u7ba1\u7406\u5458\u6743\u9650\u5373\u53ef\u5728\u666e\u901a  \u5b89\u88c5\u4e0a\u8fd0\u884c\uff0c\u5c3d\u7ba1\u6709\u4e9b\u7ba1\u7406\u5458\u7981\u7528 jscript\u3002<\/p>\n<h2> \u5982\u4f55&#8230; <\/h2>\n<p>0 <\/p>\n<p>\u90a3\u4e48\u5f53\u4efb\u4f55\u5b57\u7b26\u4e32\u90fd\u53ef\u4ee5\u53bb\u90a3\u91cc\u65f6\u4e3a\u4ec0\u4e48\u8981\u4f7f\u7528 \/* \u5462\uff1f\u56e0\u4e3a\u8fd9\u662f javascript\/jscript \u5757\u6ce8\u91ca\u7684\u5f00\u59cb\uff0c\u5e76\u4e14 jscript \u89e3\u91ca\u5668\u4e0d\u9700\u8981\u5c1d\u8bd5\u89e3\u6790 \/* \u548c *\/ \u4e4b\u95f4\u7684\u6279\u5904\u7406\u811a\u672c\u3002\u90a3\u4e48 jscript \u89e3\u91ca\u5668\u5982\u4f55\u770b\u5230\u8fd9\u6bb5\u4ee3\u7801\u5462\uff1f\u5b83\u8bfb\u53d6\u4ece 0 <\/p>\n<p>\u6211\u5c06\u8df3\u8fc7\u5173\u95ed\u56de\u663e\u3001\u8bbe\u7f6e\u53d8\u91cf\u548c\u6807\u7b7e\u5faa\u73af\uff0c\u56e0\u4e3a\u8fd9\u4e9b\u90fd\u662f\u76f8\u5f53\u7b80\u5355\u7684\u6982\u5ff5\uff0c\u5c3d\u7ba1\u6709\u8da3\u7684\u4e8b\u5b9e &#8211; ecmascript \u4e5f\u6709\u6807\u7b7e\u3002<\/p>\n<p>\u4e0b\u4e00\u4e2a\u91cd\u8981\u7684\u884c\u662f cscript \/\/nologo \/\/e:jscript &#8220;%~f0&#8221; &#8220;+{f15}&#8221;\uff0c\u5b83\u5c06\u8fd9\u4e2a .bat \u6587\u4ef6\u53d1\u9001\u5230 cscript\u3002 cscript \u5728\u547d\u4ee4\u884c\u73af\u5883\u4e2d\u542f\u52a8\u4e00\u4e2a\u811a\u672c\uff0c\u6709\u591a\u4e2a\u811a\u672c\u5f15\u64ce\u9009\u62e9\uff08\u672c\u4f8b\u4e2d\u4e3a jscript\uff09\u3002 wscript \u7c7b\u4f3c\uff0c\u4f46\u5728 windows gui \u4e2d\u8fd0\u884c\u811a\u672c\uff0c\u5e76\u4e14\u5728\u6b64\u4e0a\u4e0b\u6587\u4e2d\u4e0e\u6279\u5904\u7406\u6587\u4ef6\u4e2d\u7684\u6700\u540e\u4e00\u884c\u5e76\u4e0d\u5b8c\u5168\u76f8\u5173\u3002 $~f0 \u662f\u5f53\u524d\u8fd0\u884c\u7684\u6279\u5904\u7406\u6587\u4ef6\u7684\u5b8c\u6574\u8def\u5f84\u3001\u6587\u4ef6\u540d\u548c\u6269\u5c55\u540d\u3002 +{f15} \u662f shift \u952e\uff0cf15 \u952e\u662f sendkeys\u3002\u91cd\u7533\u4e00\u4e0b\uff0c\u5f53\u53d1\u9001\u6b64\u6279\u5904\u7406\u6587\u4ef6\u65f6\uff0c\u5b83\u4f1a\u5c06\u6574\u4e2a\u6279\u5904\u7406\u811a\u672c\u89c6\u4e3a 0 <\/p>\n<p>\u5173\u4e8e set \/a rand = (%random% * (%max% &#8211; %min% + 1) \/ 32768) + %min% + 1 \u552f\u4e00\u6709\u8da3\u7684\u662f %random% \u662f\u4e00\u4e2a\u5185\u7f6e\u53d8\u91cf\u751f\u6210 0 \u5230 32767\uff08\u542b\uff09\u4e4b\u95f4\u7684\u6574\u6570\uff0c\u4f7f\u7528 set \/a \u603b\u662f\u5411\u4e0b\u820d\u5165\uff0c\u6700\u540e\u4e00\u4e2a + 1 \u4e13\u95e8\u7528\u4e8e\u4e0b\u4e00\u884c\uff1b\u5f53\u4f7f\u7528\u7761\u7720\u6216\u8d85\u65f6\u65f6\uff0c\u60a8\u4e0d\u4f1a\u6dfb\u52a0\u989d\u5916\u76841\u3002<\/p>\n<p>\u4e0b\u4e00\u884c\uff0c ping -n %rand% -w 1 127.0.0.1 &gt; nul \u662f\u521b\u5efa\u8ba1\u65f6\u5668\u7684\u65e7\u65b9\u6cd5\uff0c\u5b83\u6bd4\u7761\u7720\u548c\u8d85\u65f6\u200b\u200b\u5bf9\u7684\u5360\u7528\u66f4\u5c11\u3002\u60a8\u57fa\u672c\u4e0a\u4f1a ping \u81ea\u5df1 %rand% \u6b21\uff0c\u6bcf\u6b21\u5c1d\u8bd5\u4e4b\u95f4\u95f4\u9694 1 \u79d2\uff1b\u4e0a\u4e00\u884c\u7684 +1 \u662f\u56e0\u4e3a\u5728\u7b2c\u4e00\u6b21 ping \u4e4b\u524d\u6ca1\u6709\u7b49\u5f85\u3002 &gt; nul \u5c06\u6807\u51c6\u8f93\u51fa\u91cd\u5b9a\u5411\u5230 nul\uff0c\u8fd9\u5f53\u7136\u53ea\u662f\u4e22\u5f03\u5b83\u3002<\/p>\n<p>\u5982\u679c\u8fd9\u4e2a\u811a\u672c\u6ca1\u6709\u65e0\u9650\u5faa\u73af\uff0c\u4f60\u9700\u8981\u5728 *\/ 0; \u4e4b\u524d\u6709\u4e00\u4e2a goto :eof\u4f7f\u60a8\u7684\u6279\u5904\u7406\u811a\u672c\u8df3\u8fc7\u6587\u4ef6\u4e2d\u65e0\u6548\u811a\u672c\u7684\u5176\u4f59\u90e8\u5206\u3002<\/p>\n<p>\u6211\u4eec\u7ec8\u4e8e\u5230\u4e86\u6700\u540e\uff0c\u770b\u5230\u4e86\u5b9e\u9645\u7684 jscript\uff1awscript.createobject(&#8220;wscript.shell&#8221;).sendkeys(wscript.arguments(0));\u3002 jscript \u5927\u81f4\u76f8\u5f53\u4e8e javascript 1.5\/ecmascript3\uff0c\u5e76\u4e14\u5177\u6709\u5927\u81f4\u7c7b\u4f3c\u4e8e vbscript \u7684 wscript api\u3002<\/p>\n<h2> \u5305\u8d77\u6765 <\/h2>\n<p>\u53ef\u80fd\u4e0d\u8981\u8fd9\u6837\u505a\u3002\u4f46\u4e5f\u8bb8\u60a8\u53ef\u80fd\u60f3\u8981\u8fd9\u6837\u505a\uff0c\u73b0\u5728\u5176\u4e2d\u4e00\u4e9b\u662f\u6709\u9053\u7406\u7684\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u8fd9\u4e2a Windows \u811a\u672c\u5e76\u4e0d\u662f\u5728\u5bfb\u6c42\u5e2e\u52a9\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>0&lt; \/* :: @echo off set \/a min = 15 set \/a max = 45 :loop CScript \/\/nologo \/\/E:JScript &#8220;%~F0&#8221; &#8220;+{F15}&#8221; set \/a rand = (%RANDOM% * (%max% &#8211; %min% + 1) \/ 32768) + %min% + 1 ping -n %rand% -w 1 127.0.0.1 &gt; NUL goto :loop *\/ 0; WScript.CreateObject(&#8220;WScript.Shell&#8221;).SendKeys(WScript.Arguments(0)); \u767b\u5f55\u540e\u590d\u5236 \u8fd9\u662f\u505a\u4ec0\u4e48\u7684\uff1f \u82b1\u70b9\u65f6\u95f4\u770b\u770b\u4f60\u662f\u5426\u80fd\u5f04\u6e05\u695a\u8fd9\u91cc\u53d1\u751f\u4e86\u4ec0\u4e48\u3002 \u7ee7\u7eed\u3002\u6211\u4f1a\u7b49\u5f85 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-3547","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/3547","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=3547"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/3547\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=3547"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=3547"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=3547"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}