mirror of
https://github.com/ION606/VCS.git
synced 2026-06-05 23:46:13 +00:00
19 lines
396 B
Bash
19 lines
396 B
Bash
#!/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";
|
|
|
|
echo "Logged in as \033[0;31m$username\e[0m!";
|
|
exit; |