Files
VCS/login.sh
T

19 lines
397 B
Bash
Raw Normal View History

2024-06-26 12:03:29 -04:00
#!/bin/bash
CREDSFILE="$HOME/ionsrc/creds.txt"
read -p "Enter source IP/URL: " src;
read -p "Enter your username: " username;
read -sp "Enter your password: " password;
echo "";
echo "src=$src" > "$CREDSFILE";
echo "username=$username" >> "$CREDSFILE";
echo "password=$password" >> "$CREDSFILE";
# Secure the file
chmod 600 "$CREDSFILE";
2024-06-26 13:17:02 -04:00
echo -e "Logged in as \e[0;32m$username\e[0m!";
2024-06-26 12:03:29 -04:00
exit;