{"id":217323,"date":"2021-05-12T08:25:16","date_gmt":"2021-05-12T00:25:16","guid":{"rendered":"https:\/\/gulass.cn\/?p=217323"},"modified":"2021-04-26T10:26:52","modified_gmt":"2021-04-26T02:26:52","slug":"wifi-powershell","status":"publish","type":"post","link":"https:\/\/gulass.cn\/wifi-powershell.html","title":{"rendered":"\u81ea\u52a8\u8bbe\u7f6e\u5b89\u5353\u624b\u673awifi\u4ee3\u7406\u7684PowerShell\u811a\u672c"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u8fd9\u7bc7\u6587\u7ae0\u4e3b\u8981\u4ecb\u7ecd\u4e86\u81ea\u52a8\u8bbe\u7f6e\u5b89\u5353\u624b\u673awifi\u4ee3\u7406\u7684PowerShell\u811a\u672c\uff0c\u5e2e\u52a9\u5927\u5bb6\u8fdb\u884c\u6293\u5305\u6d4b\u8bd5<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u5728\u5b9e\u9645\u6d4b\u8bd5\u5de5\u4f5c\u4e2d\uff0c\u7ecf\u5e38\u8981\u5c06\u5b89\u5353\u624b\u673a\u901a\u8fc7wifi\u4ee3\u7406\u7684\u5f62\u5f0f\u8fde\u63a5\u5230\u672c\u673a\u7684fiddler\u6216charles\u670d\u52a1\u5668\u4ee3\u7406\u8fdb\u884c\u6293\u5305\u6d4b\u8bd5\u3002\u6700\u8fd1\u4e00\u76f4\u5728\u60f3\uff0c\u6709\u6ca1\u6709\u4ec0\u4e48\u65b9\u6cd5\u53ef\u4ee5\u81ea\u52a8\u8bbe\u7f6e\u5b89\u5353\u624b\u673a\u7684wifi\u4ee3\u7406\uff0c\u66fe\u7ecf\u60f3\u901a\u8fc7\u4fee\u6539\u5b89\u5353\u7cfb\u7edf\u914d\u7f6e\u6587\u4ef6\u7684\u65b9\u5f0f\u6765\u4fee\u6539\u4f46\u662f\u6ca1\u6709\u627e\u5230\u89e3\u51b3\u65b9\u6848\u3002\u6700\u540e\u51b3\u5b9a\u9488\u5bf9\u81ea\u5df1\u7684\u624b\u673a\u8fdb\u884c\u79c1\u4eba\u8ba2\u5236\uff0c\u7f3a\u70b9\u662f\u53ea\u80fd\u9488\u5bf9\u56fa\u5b9a\u673a\u578b\u8fdb\u884c\u8bbe\u7f6e\uff0c\u4e0d\u8fc7\u4f18\u70b9\u662f\u811a\u672c\u5f88\u597d\u7f16\u5199\uff0c\u53ef\u4ee5\u5f88\u5feb\u7684\u5bf9\u81ea\u5df1\u5e73\u65f6\u4f7f\u7528\u7684\u6d4b\u8bd5\u673a\u8fdb\u884c\u5b9a\u5236\uff08\u975eWindows\u4e0b\u7684\u811a\u672c\u7f16\u5199\u8fc7\u7a0b\u7c7b\u4f3c\uff09\u3002<\/p>\n

\u5229\u7528adb\u547d\u4ee4\u7f16\u5199PowerShell\u811a\u672c<\/strong><\/div>\n

Windows\u4e0b\u7f16\u5199\u811a\u672c\u7528\u5230\u4e86PowerShell\u548cadb\u76f8\u5173\u547d\u4ee4\uff0c\u811a\u672c\u5185\u5bb9\u5982\u4e0b\uff08\u5750\u6807\u5b9a\u4f4d\u7528uiautomatorviewer\u5c31\u53ef\u4ee5\uff09\uff1a<\/p>\n

\r\nWrite-Host \"\u66f4\u6539\u8bbe\u7f6e\u4e2d\u2026\u2026\" -ForegroundColor Green\r\n#\u70b9\u51fbHome\u952e\u8fd4\u56deHome\u9875\u5e76\u8fdb\u5165\u7f51\u7edc\u8bbe\u7f6e\u9875\u9762\r\nadb shell input keyevent 3\r\nadb shell am start -a android.settings.WIRELESS_SETTINGS\r\nadb shell input tap 421 570\r\nadb shell input tap 421 570\r\nadb shell input tap 605 1665\r\n#\u624b\u52a8\u8bbe\u7f6e\u4ee3\u7406\r\n#\u5220\u9664\u4e3b\u673a\u540d\r\nadb shell input swipe 972 1687 972 1686 1500\r\n#\u83b7\u53d6\u672c\u673aip\r\n$ip = (ipconfig|findstr \"IPv4\"|findstr \"10.234\").split(\":\")[1]\r\n#\u4fee\u6539\u4e3b\u673a\u540d\u4e3a\u672c\u673aip\r\nadb shell input text $ip\r\n#\u6536\u8d77\u8f6f\u952e\u76d8\r\nadb shell input tap 997 1250\r\n#\u5411\u4e0a\u6ed1\u52a8\u5c4f\u5e55\r\nadb shell input swipe 813 1626 794 201 1000 \r\n#\u70b9\u51fb\u7aef\u53e3\u6846\r\nadb shell input tap 955 1461\r\n#\u5220\u9664\u7aef\u53e3\u53f7\r\nadb shell input swipe 986 1388 986 1386 1000\r\n#\u8f93\u5165\u7aef\u53e3\u53f78888\r\nadb shell input tap 547 1688\r\nadb shell input tap 547 1688\r\nadb shell input tap 547 1688\r\nadb shell input tap 547 1688\r\n#\u70b9\u51fb\u8fd4\u56de\u6309\u94ae\r\nadb shell input tap 1009 1853\r\n#\u4e0b\u4e00\u9879\r\nadb shell input tap 1009 1853\r\n#\u5b8c\u6210\u8bbe\u7f6e\r\nadb shell input tap 1009 1853\r\n#\u8fd4\u56de\u8bbe\u7f6e\u754c\u9762\r\nadb shell input tap 77 126\r\n#\u8fd4\u56deHome\u9875\r\nadb shell input keyevent 3\r\nWrite-Host \"\u624b\u673awifi\u4ee3\u7406\u8bbe\u7f6e\u5b8c\u6bd5\uff0c\u5df2\u4e0e\u672c\u673a\u76f8\u8fde\uff0c\u8bf7\u5f00\u6293\u5305\u5de5\u5177\uff01\" -ForegroundColor Green\r\nRead-Host\r\n<\/pre>\n
\u5c06\u811a\u672c\u7f16\u8bd1\u4e3aexe\u53ef\u6267\u884c\u6587\u4ef6<\/strong><\/div>\n

\u53ef\u4ee5\u8fdb\u4e00\u6b65\u5c06PowerShell\u811a\u672c\u8f6c\u5316\u4e3a\u53ef\u53cc\u51fb\u6267\u884c\u7684exe\u6587\u4ef6\u3002\u63a8\u8350\u4f7f\u7528Ps1 To Exe Online Converter\u8fd9\u6b3e\u5728\u7ebf\u5e94\u7528\u4e0a\u4f20\u811a\u672c\u8fdb\u884c\u8f6c\u5316\u540e\u4e0b\u8f7d\u3002\u70b9\u51fb\u89e3\u538b\u540e\u7684exe\u6587\u4ef6\uff0c\u8fd0\u884c\u6548\u679c\u5982\u4e0b\uff1a
\n\"\"<\/p>\n","protected":false},"excerpt":{"rendered":"

\u5728\u5b9e\u9645\u6d4b\u8bd5\u5de5\u4f5c\u4e2d\uff0c\u7ecf\u5e38\u8981\u5c06\u5b89\u5353\u624b\u673a\u901a\u8fc7wifi\u4ee3\u7406\u7684\u5f62\u5f0f\u8fde\u63a5\u5230\u672c\u673a\u7684fiddler\u6216charles\u670d\u52a1\u5668\u4ee3\u7406\u8fdb […]<\/p>\n","protected":false},"author":1479,"featured_media":5232,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-217323","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/217323","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/users\/1479"}],"replies":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/comments?post=217323"}],"version-history":[{"count":1,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/217323\/revisions"}],"predecessor-version":[{"id":217325,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/217323\/revisions\/217325"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media\/5232"}],"wp:attachment":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media?parent=217323"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/categories?post=217323"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/tags?post=217323"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}