{"id":5473,"date":"2014-02-27T16:22:52","date_gmt":"2014-02-27T08:22:52","guid":{"rendered":"https:\/\/kyle.ai\/blog\/?p=5473"},"modified":"2014-02-27T16:23:08","modified_gmt":"2014-02-27T08:23:08","slug":"virtualbox%e5%85%b1%e4%ba%ab%e5%89%aa%e8%b4%b4%e6%9d%bf%e7%9a%84%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/kyle.ai\/blog\/5473.html","title":{"rendered":"virtualbox\u5171\u4eab\u526a\u8d34\u677f\u7684\u95ee\u9898"},"content":{"rendered":"<p>virtualbox xp guest \u7c98\u5e16\u6587\u5b57\u5230 ubuntu 10.04 host \u6709\u65f6\u4f1a\u5931\u6548\u3002<\/p>\n<p>\u5f88\u65e9\u524d\u5c31\u53d1\u73b0virtualbox xp guest \u7c98\u5e16\u6587\u5b57\u5230ubuntu 10.04 host\u6709\u65f6\u5019\u4f1a\u8d34\u4e0d\u8fc7\u53bb\uff0c\u4f46ubuntu 10.04 host\u590d\u5236\u7684\u4e1c\u897f\u80fd\u8d34\u8fdbxp guest\u91cc\u9762\uff0c\u4f46\u5728\u7f51\u4e0a\u4e00\u76f4\u6ca1\u627e\u5230\u89e3\u51b3\u7684\u529e\u6cd5\uff0c\u540e\u6765\u53d1\u73b0\u53ea\u8981\u91cd\u542fvirtualbox\u91cc\u7684 xp\u5c31\u80fd\u6062\u590d\uff0c\u6240\u4ee5\u5c31\u6000\u7591\u5e94\u8be5\u662fxp\u91cc\u7684virtualbox\u76f8\u5173\u670d\u52a1\u8fdb\u7a0b\u6709\u95ee\u9898\uff0c\u91cd\u542f\u8fd9\u4e2a\u8fdb\u7a0b\u4e5f\u8bb8\u5c31\u80fd\u89e3\u51b3\u95ee\u9898\uff0c\u4e8e\u662f\u5c31\u53d1\u73b0\u6709VBoxTray.exe\u8fd9\u4e2a\u8fdb\u7a0b\uff0c\u628a\u5176kill\u6389\u540e\u518d\u91cd\u542f\u679c\u7136\u5c31\u80fd\u89e3\u51b3\u95ee\u9898\u4e86\u3002<\/p>\n<p>\u6bcf\u6b21\u8fd9\u6837\u624b\u52a8\u5904\u7406\u592a\u9ebb\u70e6\uff0c\u7f51\u4e0a\u627e\u4e86\u4e2axp\u91cd\u542f\u4e00\u4e2a\u8fdb\u7a0b\u7684\u65b9\u6cd5\uff0c\u662f\u4e2avbs\u811a\u672c\uff0c\u5982\u4e0b\uff1a<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\nstrPName = &quot;VBoxTray.exe&quot;\r\nstrComputer = &quot;.&quot;\r\nSet objShell = CreateObject(&quot;Wscript.Shell&quot;)\r\nSet objWMIService = GetObject(&quot;winmgmts:&quot; _\r\n&amp; &quot;{impersonationLevel=impersonate}!\/\/&quot; &amp; strComputer &amp; &quot;\/root\/cimv2&quot;)\r\n \r\nSet colProcessList = objWMIService.ExecQuery _\r\n(&quot;Select * from Win32_Process Where Name = '&quot; &amp; strPName &amp; &quot;'&quot;)\r\n \r\nFor Each objProcess in colProcessList\r\nobjProcess.Terminate()\r\nNext\r\n \r\nWScript.Sleep 4000\r\nobjshell.Run &quot;VBoxTray.exe&quot;\r\nobjshell.Run &quot;VBoxTray.exe&quot;\r\n<\/pre>\n<p>\u4fdd\u5b58\u4e3axxx.vbs\u540e\u53cc\u51fb\u5c31\u80fd\u8fd0\u884c\u3002<\/p>\n<p>\uff08\u6ce8\uff1a\u811a\u672c\u91ccobjshell.Run &#8220;VBoxTray.exe&#8221; \u8fd9\u4e2a\u5199\u4e86\u4e24\u904d\u662f\u53d1\u73b0\u8fd0\u884c\u4e00\u6b21VBoxTray.exe\u542f\u52a8\u4e0d\u8d77\u6765\uff0c\u8fd0\u884c\u4e24\u6b21\u4e5f\u53ea\u6709\u4e00\u4e2a\u8fdb\u7a0b\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>virtualbox xp guest \u7c98\u5e16\u6587\u5b57\u5230 ubuntu 10.04 host \u6709\u65f6\u4f1a\u5931\u6548\u3002 \u5f88\u65e9\u524d\u5c31 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-5473","post","type-post","status-publish","format-standard","hentry","category-skill"],"_links":{"self":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/5473","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/comments?post=5473"}],"version-history":[{"count":2,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/5473\/revisions"}],"predecessor-version":[{"id":5475,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/5473\/revisions\/5475"}],"wp:attachment":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/media?parent=5473"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/categories?post=5473"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/tags?post=5473"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}