Advertisement
screamolic

login wifi id

Nov 8th, 2019
654
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. /bin/bash
  2. # Check ip from isp
  3. ipwan=$(ifconfig | grep -A 2 'wlan0' | awk '/inet addr/{print substr($2,6)}')
  4. # Test Connection
  5. if ping -q -c 1 -W 1 8.8.8.8 >/dev/null;
  6. then
  7. echo "The network is up"
  8. else
  9. echo "The network is down"
  10. # Login
  11. wget --post-data="username=lordkiehl@freeMS&password=pa$$wrd" "http://welcome2.wifi.id/wms/auth/authnew/autologin/quarantine.php?ipc="$ipwan"&gw_id=WAG-D4-KBU&client_mac=xx:b4:29:d8:xx:ce&wlan=SLOGLD00371/TLK-WI31477992-0001:UN%20CHECK" -O /dev/null
  12. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement