From d67efcea2d41cc8d058d8ef9e6adb41869deb74b Mon Sep 17 00:00:00 2001 From: xton13 Date: Thu, 15 Mar 2018 10:38:43 -0500 Subject: [PATCH] adding in some password/username hiding --- auth.sh | 6 +++++- try2.sh | 6 ++++++ 2 files changed, 11 insertions(+), 1 deletion(-) mode change 100644 => 100755 auth.sh create mode 100755 try2.sh 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'