Detected 1 occurrence(s) of ‘\s*pass[word]+\s*[:=]\s*["'][a-z0-9\-_\!\$]+["']‘: #!/bin/bash clear #Set variables read USRNAME PASSWD SSHKEY #Variables USRNAME="$1" PASSWD="$2" SSHKEY="$3" #Test input (password, sshkey?) #Names if [[ "$USRNAME" =~ [^a-zA-Z0-9] ]]; then echo "Invalid username" > /home/logfile.log exit 1; fi #Addresses function is_IP () { if [ `echo $1 | grep -o '\.' | wc -l` -ne 3 […]
↧