{"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":"
\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 |