diff --git a/auth.sh b/auth.sh old mode 100644 new mode 100755 index c34a8a8..eea178b --- a/auth.sh +++ b/auth.sh @@ -1,2 +1,6 @@ #!/bin/sh -curl 'https://captiveportal.ialab.dsu.edu:6082/php/uid.php?vsys=1&rule=2' -d 'inputStr=&escapeUser=&preauthid=&user=USERNAME&passwd=PASSWORD&ok=Login' +read -p "Username: " AUTH_USERNAME +stty -echo +read -p "Password: " AUTH_PASSWORD +stty echo +curl 'https://captiveportal.ialab.dsu.edu:6082/php/uid.php?vsys=1&rule=2' -d 'inputStr=&escapeUser=&preauthid=&user='$AUTH_USERNAME'&passwd='$AUTH_PASSWORD'&ok=Login' diff --git a/try2.sh b/try2.sh new file mode 100755 index 0000000..8269bbb --- /dev/null +++ b/try2.sh @@ -0,0 +1,6 @@ +#!/bin/sh +read -p "Username: " AUTH_USERNAME +stty -echo +read -p "Password: " AUTH_PASSWORD +stty echo +curl 'https://captiveportal.ialab.dsu.edu:6082/php/uid.php?vsys=1&rule=2' -d 'inputStr=&escapeUser=&preauthid=&user=USERNAME&passwd=PASSWORD&ok=Login'