cap-port-auth/auth-wget.sh

7 lines
282 B
Bash
Raw Permalink Normal View History

2019-02-07 14:13:18 -08:00
#!/bin/sh
read -p "Username: " AUTH_USERNAME
stty -echo
read -p "Password: " AUTH_PASSWORD
stty echo
wget -qO- 'https://captiveportal.ialab.dsu.edu:6082/php/uid.php?vsys=1&rule=2' --post-data='inputStr=&escapeUser=&preauthid=&user='$AUTH_USERNAME'&passwd='$AUTH_PASSWORD'&ok=Login'