Skip to content

Instantly share code, notes, and snippets.

@databhishek
Last active April 13, 2018 16:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save databhishek/3c0a3af28565d08b3dea4d3b5b506f4c to your computer and use it in GitHub Desktop.
Save databhishek/3c0a3af28565d08b3dea4d3b5b506f4c to your computer and use it in GitHub Desktop.
ION WiFi Login
#!/bin/bash
# Usage: $./ion-login.sh <username> <password>
# Author: Abhishek Singh
nmcli connection up "ION@17th-Block"
curl -sd 'mode=191' \
-sd 'isAccessDenied=false' \
-sd 'url=null' \
-sd 'message=' \
-sd 'regusingpinid=' \
-sd 'checkClose=1' \
-sd 'sessionTimeout=-1' \
-sd 'guestmsgreq=false' \
-sd 'logintype=2' \
-sd 'orgSessionTimeout=-1' \
-sd 'chrome=-1' \
-sd 'alerttime=null' \
-sd 'timeout=-1' \
-sd 'popupalert=0' \
-sd 'dtold=0' \
-sd 'mac=04:c5:a4:f6:22:c5' \
-sd 'servername=mahe4.dvois.com' \
-sd 'temptype=' \
-sd 'username='$1'' \
-sd 'password='$2'' \
-sd 'saveinfo=saveinfo' \
-sd 'loginotp=false' \
-sd 'logincaptcha=false' \
-sd 'registeruserotp=false' \
-sd 'registercaptcha=false' \
--output /dev/null \
https://mahe4.dvois.com/24online/servlet/E24onlineHTTPClient
notify-send "ION Connected" -t 2000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment