追加の努力

追加の努力

私はArch、bash、Openboxを使用しており、すべてが最新です。

これが何人かの人々に役立つことを願っています。

私はスターバックスによく行きます。

接続方法は、英国の無料Wi-Fiに接続することです。

  1. スターバックスのホットスポットに接続
  2. ブラウザを開きます。時々(常にではありません)、ブラウザは自動的に次にリダイレクトされます。https://wifi.splash-access.com緑色の「受け入れと接続」ボタンがあります。これをクリックすると、接続が成功したことを示します。接続可能であっても常に接続されていない可能性があります。このURLは、[承認と接続]ボタンを含むリンクページも生成します。https://wifi.splash-access.com/accounts/starbucks/index.asp?e=1&baseurl=https://n401.network-auth.com/splash/grant&theurl=https://www.starbucks.co. uk/&Res=&duration=360&node_id=149624927815612&node_mac=88:15:44:ac:07:bc&client_ip=10.129.124.42&client_mac=e8:b1:fc:85:7a:69[Eメール保護]&fname=Splash&lname=訪問&SO提供=

xdotoolこれを使用して接続ボタンを押すことができますが、さまざまな画面構成によってブラウザのサイズ/位置が変わり、スターバックスボタンが移動したようです。

それにもかかわらず、curlスクリプトやその他のツールを使用してこれを完全に実行すると、面倒がはるかに減少します。

誰もがスクリプトを使用してこのボタンを押す方法、またはスクリプトをリンクする他の方法を提案できますか? 5Gモバイルデータはここでは役に立ちません。それ以外の場合は使用します。

これが私が今まで持っているものです

# show what we are doing with a popup
yad --title='#StarbucksWifi.. connecting' --undecorated --no-buttons --text-align=center --on-top --no-focus --text='Connecting to\n\n#StarbucksWifi\n' --timeout=3 &

# connect to starbucks SSID
nmcli -t con up id '#StarbucksWifi' >/dev/null 2>&1 & sleep 5;

# wait until this has completed
wait

# get SSID connection status for this SSID
SSID_connection_status="$(nmcli connection show | head -n 2 | tail -n 1 | awk '{print $1}')"

# show if we are connected
yad --timeout=2 --text="connected to - $SSID_connection status" 

追加の努力

このコマンドは次のとおりです。
リンクhttps://wifi.splash-access.com/accounts/starbucks/index.asp?e=1&baseurl=https://n401.network-auth.com/splash/grant&theurl=https://www.starbucks.co. uk/&Res=&duration=360&node_id=149624927815612&node_mac=88:15:44:ac:07:bc&client_ip=10.129.124.42&client_mac=e8:b1:fc:85:7a:69[Eメール保護]&fname=Splash&lname=訪問&SO提供=

この出力を生成します
[1] 1080117
[2] 1080118
[3] 1080119
[4] 1080120
[5] 1080121
[6] 1080122
[7] 1080123
[8] 1080124
[9] 10802
[
12
]1080128
[13 ] ] 1080129
[2]完了しました baseurl=https://n401.network-auth.com/splash/grant
[5]完了期間=360
[6]完了しました node_id=149624927815612
[7]完了しました node_mac=88: 15:44: ac :07:bc
[9]完了しました client_mac=e8:b1:fc:85:7a:69
[10] 完了しました c=y23m4d
[11] 完了 [Eメール保護]

同じコマンドを再実行してください。
リンクhttps://wifi.splash-access.com/accounts/starbucks/index.asp?e=1&baseurl=https://n401.network-auth.com/splash/grant&theurl=https://www.starbucks.co. uk/&Res=&duration=360&node_id=149624927815612&node_mac=88:15:44:ac:07:bc&client_ip=10.129.124.42&client_mac=e8:b1:fc:85:7a:69[Eメール保護]&fname=Splash&lname=訪問&SO提供=

より多くの生産量を生産する [14] 1080854
[15] 1080855
[16] 1080856
[17] 1080857
[18] 1080858
[19] 1080859 [
20] 1080860
[21] 1080861 [20]
4 ] ] 1080864 [25] 1080865 [ 26 】1080866



[1]+ 中断されたリンクhttps://wifi.splash-access.com/accounts/starbucks/index.asp?e=1
[3] 完全な theurl=https://www.starbucks.co.uk/
[4] 完全な Res=
[8] 完全な client_ip=10.129.124.42
[12] 完全な fname=Splash
[13] 完全な lname=Access
[15] Done baseurl=https://n401.network-auth.com/splash/grant
[16] Done theurl=https://www.starbucks.co.uk/
[17] Done Res=
[18] Done Duration=360
[ 19] 完了 node_id=149624927815612
[20] 完了 node_mac=88:15:44:ac:07:bc [
21] 完了 client_ip=10.129.124.42
[22] 完了 client_mac=e8:b1:fc:85:7a:6
23]完了c=y23m4d
[24]完了 [Eメール保護]

ベストアンサー1

WiFiログインAPIには間違いなくボット保護機能があり、ブラウザのボタンをクリックするとJavaアプレットによって無効になる可能性があります。 Webページのソースコードを確認すると、スクリプト名を見つけて拡張子を持つbashスクリプトで実行できますjava -jar

おすすめ記事