LoginSignup
2
5

More than 5 years have passed since last update.

CISCO Wireless Networkにログインするのがめんどいのでシェルで解決

Last updated at Posted at 2017-10-05

学校の学内ネットワークに毎回ログインするのがとても面倒なので以下のように.zshrcに設定した。

.zshrc
alias login='curl -Ss --ciphers AES256-SHA --data "buttonClicked=4&username=<USERNAME>&password=<PASSWORD>&Submit=Submit" <LOGIN URL>'

使うときは<USERNAME><PASSWORD><LOGIN URL>は適宜変更して。

JSを読んだら案外簡単に実装できたのでカキコ。

また、以下と組み合わせると自動ログインが実装できる。

NetowrkManagerで特定のWiFiに繋がったタイミングで自動でコマンドを実行させる

2
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
5