{"id":38,"date":"2021-11-21T11:23:22","date_gmt":"2021-11-21T03:23:22","guid":{"rendered":"https:\/\/lmceric.top\/?p=38"},"modified":"2021-11-21T11:23:24","modified_gmt":"2021-11-21T03:23:24","slug":"%e6%9e%81%e5%9f%9fkiller-1-0%e4%bb%a3%e7%a0%81","status":"publish","type":"post","link":"https:\/\/lmceric.top\/index.php\/2021\/11\/21\/38\/","title":{"rendered":"\u6781\u57dfKiller 1.0\u4ee3\u7801"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>using System;\r\nusing System.Collections.Generic;\r\nusing System.ComponentModel;\r\nusing System.Diagnostics;\r\nusing System.IO;\r\nusing System.Linq;\r\nusing System.Net;\r\nusing System.Text;\r\nusing System.Threading.Tasks;\r\nusing System.Windows;\r\nusing System.Windows.Controls;\r\nusing System.Windows.Data;\r\nusing System.Windows.Documents;\r\nusing System.Windows.Input;\r\nusing System.Windows.Media;\r\nusing System.Windows.Media.Imaging;\r\nusing System.Windows.Navigation;\r\nusing System.Windows.Shapes;\r\n\r\nnamespace JiYu_Killer\r\n{\r\n    \/\/\/ &lt;summary>\r\n    \/\/\/ Interaction logic for MainWindow.xaml\r\n    \/\/\/ &lt;\/summary>\r\n    public partial class MainWindow : Window\r\n    {\r\n        public MainWindow()\r\n        {\r\n            InitializeComponent();\r\n        }\r\n\r\n        private void Button_Click(object sender, RoutedEventArgs e)\r\n        {\r\n\r\n        }\r\n\r\n        private void Button_Click_1(object sender, RoutedEventArgs e)\r\n        {\r\n            string name;\r\n            name = \"StudentMain.exe\";\r\n            KillProcess(name);\r\n        }\r\n        public void KillProcess(string processName)\r\n        {\r\n            foreach (var process in Process.GetProcessesByName(processName))\r\n            {\r\n                try\r\n                {\r\n                    \/\/ \u6740\u6389\u8fd9\u4e2a\u8fdb\u7a0b\u3002\r\n                    process.Kill();\r\n\r\n                    \/\/ \u7b49\u5f85\u8fdb\u7a0b\u88ab\u6740\u6389\u3002\u4f60\u4e5f\u53ef\u4ee5\u5728\u8fd9\u91cc\u52a0\u4e0a\u4e00\u4e2a\u8d85\u65f6\u65f6\u95f4\uff08\u6beb\u79d2\u6574\u6570\uff09\u3002\r\n                    process.WaitForExit();\r\n                }\r\n                catch (Win32Exception ex)\r\n                {\r\n                    MessageBox.Show(\"\u6267\u884c\u9519\u8bef\uff0c\u65e0\u6cd5\u6740\u6b7b\u6781\u57df\uff01\",ex.ToString());\r\n                    \/\/ \u65e0\u6cd5\u7ed3\u675f\u8fdb\u7a0b\uff0c\u53ef\u80fd\u6709\u5f88\u591a\u539f\u56e0\u3002\r\n                    \/\/ \u5efa\u8bae\u8bb0\u5f55\u8fd9\u4e2a\u5f02\u5e38\uff0c\u5982\u679c\u4f60\u7684\u7a0b\u5e8f\u80fd\u591f\u5904\u7406\u8fd9\u91cc\u7684\u67d0\u79cd\u7279\u5b9a\u5f02\u5e38\u4e86\uff0c\u90a3\u4e48\u5c31\u9700\u8981\u5728\u8fd9\u91cc\u8865\u5145\u5904\u7406\u3002\r\n                    \/\/ Log.Error(ex);\r\n                }\r\n                catch (InvalidOperationException)\r\n                {\r\n                    MessageBox.Show(\"\u6267\u884c\u6210\u529f\uff0c\u6781\u57df\u5df2\u88ab\u6740\u6b7b\uff01\");\r\n                    \/\/ \u8fdb\u7a0b\u5df2\u7ecf\u9000\u51fa\uff0c\u65e0\u6cd5\u7ee7\u7eed\u9000\u51fa\u3002\u65e2\u7136\u5df2\u7ecf\u9000\u4e86\uff0c\u90a3\u8fd9\u91cc\u4e5f\u7b97\u662f\u9000\u51fa\u6210\u529f\u4e86\u3002\r\n                    \/\/ \u4e8e\u662f\u8fd9\u91cc\u5176\u5b9e\u4ec0\u4e48\u4ee3\u7801\u4e5f\u4e0d\u9700\u8981\u6267\u884c\u3002\r\n                }\r\n            }\r\n        }\r\n        public static string Get(string url, Dictionary&lt;string, string> dic)\r\n        {\r\n            string result = \"\";\r\n            StringBuilder builder = new StringBuilder();\r\n            builder.Append(url);\r\n            if (dic.Count > 0)\r\n            {\r\n                builder.Append(\"?\");\r\n                int i = 0;\r\n                foreach (var item in dic)\r\n                {\r\n                    if (i > 0)\r\n                        builder.Append(\"&amp;\");\r\n                    builder.AppendFormat(\"{0}={1}\", item.Key, item.Value);\r\n                    i++;\r\n                }\r\n            }\r\n            HttpWebRequest req = (HttpWebRequest)WebRequest.Create(builder.ToString());\r\n            \/\/\u6dfb\u52a0\u53c2\u6570\r\n            HttpWebResponse resp = (HttpWebResponse)req.GetResponse();\r\n            Stream stream = resp.GetResponseStream();\r\n            try\r\n            {\r\n                \/\/\u83b7\u53d6\u5185\u5bb9\r\n                using (StreamReader reader = new StreamReader(stream))\r\n                {\r\n                    result = reader.ReadToEnd();\r\n                }\r\n            }\r\n            finally\r\n            {\r\n                stream.Close();\r\n            }\r\n            return result;\r\n        }\r\n\r\n        private void version_Click(object sender, RoutedEventArgs e)\r\n        {\r\n            \/\/int version;\r\n            \/\/string target;\r\n            \/\/version = 1;\r\n            \/\/target = \"lmceric.top\/jykiller.php\";\r\n            MessageBox.Show(\"\u529f\u80fd\u6b63\u5728\u5f00\u53d1\u4e2d\");\r\n        }\r\n    }\r\n}\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","footnotes":""},"categories":[11],"tags":[],"class_list":["post-38","post","type-post","status-publish","format-standard","hentry","category-tec","entry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u6781\u57dfKiller 1.0\u4ee3\u7801 - LMC\u7684\u4e2a\u4eba\u7ad9<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/lmceric.top\/index.php\/2021\/11\/21\/38\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u6781\u57dfKiller 1.0\u4ee3\u7801 - LMC\u7684\u4e2a\u4eba\u7ad9\" \/>\n<meta property=\"og:url\" content=\"https:\/\/lmceric.top\/index.php\/2021\/11\/21\/38\/\" \/>\n<meta property=\"og:site_name\" content=\"LMC\u7684\u4e2a\u4eba\u7ad9\" \/>\n<meta property=\"article:published_time\" content=\"2021-11-21T03:23:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-11-21T03:23:24+00:00\" \/>\n<meta name=\"author\" content=\"SimpleAstronaut\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"SimpleAstronaut\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/lmceric.top\\\/index.php\\\/2021\\\/11\\\/21\\\/38\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/lmceric.top\\\/index.php\\\/2021\\\/11\\\/21\\\/38\\\/\"},\"author\":{\"name\":\"SimpleAstronaut\",\"@id\":\"https:\\\/\\\/lmceric.top\\\/#\\\/schema\\\/person\\\/1edca9cfe5ff17dbe947c332a66ee539\"},\"headline\":\"\u6781\u57dfKiller 1.0\u4ee3\u7801\",\"datePublished\":\"2021-11-21T03:23:22+00:00\",\"dateModified\":\"2021-11-21T03:23:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/lmceric.top\\\/index.php\\\/2021\\\/11\\\/21\\\/38\\\/\"},\"wordCount\":1,\"commentCount\":0,\"articleSection\":[\"\u6280\u672f\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/lmceric.top\\\/index.php\\\/2021\\\/11\\\/21\\\/38\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/lmceric.top\\\/index.php\\\/2021\\\/11\\\/21\\\/38\\\/\",\"url\":\"https:\\\/\\\/lmceric.top\\\/index.php\\\/2021\\\/11\\\/21\\\/38\\\/\",\"name\":\"\u6781\u57dfKiller 1.0\u4ee3\u7801 - LMC\u7684\u4e2a\u4eba\u7ad9\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/lmceric.top\\\/#website\"},\"datePublished\":\"2021-11-21T03:23:22+00:00\",\"dateModified\":\"2021-11-21T03:23:24+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/lmceric.top\\\/#\\\/schema\\\/person\\\/1edca9cfe5ff17dbe947c332a66ee539\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/lmceric.top\\\/index.php\\\/2021\\\/11\\\/21\\\/38\\\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/lmceric.top\\\/index.php\\\/2021\\\/11\\\/21\\\/38\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/lmceric.top\\\/index.php\\\/2021\\\/11\\\/21\\\/38\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\\\/\\\/lmceric.top\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u6781\u57dfKiller 1.0\u4ee3\u7801\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/lmceric.top\\\/#website\",\"url\":\"https:\\\/\\\/lmceric.top\\\/\",\"name\":\"LMC\u7684\u4e2a\u4eba\u7ad9\",\"description\":\"\u5b64\u5e06\u8fdc\u5f71\u78a7\u7a7a\u5c3d\uff0c\u552f\u89c1\u957f\u6c5f\u5929\u9645\u6d41\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/lmceric.top\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/lmceric.top\\\/#\\\/schema\\\/person\\\/1edca9cfe5ff17dbe947c332a66ee539\",\"name\":\"SimpleAstronaut\",\"sameAs\":[\"http:\\\/\\\/lmceric.top\"],\"url\":\"https:\\\/\\\/lmceric.top\\\/index.php\\\/author\\\/simpleastronaut\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u6781\u57dfKiller 1.0\u4ee3\u7801 - LMC\u7684\u4e2a\u4eba\u7ad9","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/lmceric.top\/index.php\/2021\/11\/21\/38\/","og_locale":"zh_CN","og_type":"article","og_title":"\u6781\u57dfKiller 1.0\u4ee3\u7801 - LMC\u7684\u4e2a\u4eba\u7ad9","og_url":"https:\/\/lmceric.top\/index.php\/2021\/11\/21\/38\/","og_site_name":"LMC\u7684\u4e2a\u4eba\u7ad9","article_published_time":"2021-11-21T03:23:22+00:00","article_modified_time":"2021-11-21T03:23:24+00:00","author":"SimpleAstronaut","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"SimpleAstronaut","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/lmceric.top\/index.php\/2021\/11\/21\/38\/#article","isPartOf":{"@id":"https:\/\/lmceric.top\/index.php\/2021\/11\/21\/38\/"},"author":{"name":"SimpleAstronaut","@id":"https:\/\/lmceric.top\/#\/schema\/person\/1edca9cfe5ff17dbe947c332a66ee539"},"headline":"\u6781\u57dfKiller 1.0\u4ee3\u7801","datePublished":"2021-11-21T03:23:22+00:00","dateModified":"2021-11-21T03:23:24+00:00","mainEntityOfPage":{"@id":"https:\/\/lmceric.top\/index.php\/2021\/11\/21\/38\/"},"wordCount":1,"commentCount":0,"articleSection":["\u6280\u672f"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/lmceric.top\/index.php\/2021\/11\/21\/38\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/lmceric.top\/index.php\/2021\/11\/21\/38\/","url":"https:\/\/lmceric.top\/index.php\/2021\/11\/21\/38\/","name":"\u6781\u57dfKiller 1.0\u4ee3\u7801 - LMC\u7684\u4e2a\u4eba\u7ad9","isPartOf":{"@id":"https:\/\/lmceric.top\/#website"},"datePublished":"2021-11-21T03:23:22+00:00","dateModified":"2021-11-21T03:23:24+00:00","author":{"@id":"https:\/\/lmceric.top\/#\/schema\/person\/1edca9cfe5ff17dbe947c332a66ee539"},"breadcrumb":{"@id":"https:\/\/lmceric.top\/index.php\/2021\/11\/21\/38\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/lmceric.top\/index.php\/2021\/11\/21\/38\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/lmceric.top\/index.php\/2021\/11\/21\/38\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/lmceric.top\/"},{"@type":"ListItem","position":2,"name":"\u6781\u57dfKiller 1.0\u4ee3\u7801"}]},{"@type":"WebSite","@id":"https:\/\/lmceric.top\/#website","url":"https:\/\/lmceric.top\/","name":"LMC\u7684\u4e2a\u4eba\u7ad9","description":"\u5b64\u5e06\u8fdc\u5f71\u78a7\u7a7a\u5c3d\uff0c\u552f\u89c1\u957f\u6c5f\u5929\u9645\u6d41","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/lmceric.top\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/lmceric.top\/#\/schema\/person\/1edca9cfe5ff17dbe947c332a66ee539","name":"SimpleAstronaut","sameAs":["http:\/\/lmceric.top"],"url":"https:\/\/lmceric.top\/index.php\/author\/simpleastronaut\/"}]}},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/lmceric.top\/index.php\/wp-json\/wp\/v2\/posts\/38","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lmceric.top\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lmceric.top\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lmceric.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lmceric.top\/index.php\/wp-json\/wp\/v2\/comments?post=38"}],"version-history":[{"count":1,"href":"https:\/\/lmceric.top\/index.php\/wp-json\/wp\/v2\/posts\/38\/revisions"}],"predecessor-version":[{"id":39,"href":"https:\/\/lmceric.top\/index.php\/wp-json\/wp\/v2\/posts\/38\/revisions\/39"}],"wp:attachment":[{"href":"https:\/\/lmceric.top\/index.php\/wp-json\/wp\/v2\/media?parent=38"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lmceric.top\/index.php\/wp-json\/wp\/v2\/categories?post=38"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lmceric.top\/index.php\/wp-json\/wp\/v2\/tags?post=38"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}