Skip to content

Instantly share code, notes, and snippets.

@littlebear0729
Created October 30, 2023 01:24
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 littlebear0729/730444f2e094bb520cab25d60092b177 to your computer and use it in GitHub Desktop.
Save littlebear0729/730444f2e094bb520cab25d60092b177 to your computer and use it in GitHub Desktop.
BJUT network login script with wifi name: bjut-sushe-(2.4G/5G)-XXXX
# fill your username and password
username=20123456
password=THISisYOURpassword
# the specific IP addr will be logged in, which means you can login other's device by IP addr.
ip=`ifconfig en0 | grep 'inet ' | awk '{print $2}'`
curl "http://10.21.221.98:801/eportal/portal/login?callback=dr1003&login_method=1&user_account=$username%40campus&user_password=$password&wlan_user_ip=$ip&wlan_user_ipv6=&wlan_user_mac=000000000000&wlan_ac_ip=&wlan_ac_name=&jsVersion=4.2.1&terminal_type=3&lang=zh-cn&v=4344&lang=zh"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment