You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I thought I would offer to add this simple script to your program which I have been using to create username:password lists for your application. The code is below.
#!/bin/bash
#if less than 3 agrs are provided
#help section
if [[ $# -lt 3 ]] ; then
echo 'usage: usernamepasswordgenerator.sh /someplace/usernames.txt /someplace/passwords.txt /someplace/combined.txt'
exit 0
fi
#-h
if [ "$1" == "-h" ]; then
echo 'usage: usernamepasswordgenerator.sh /someplace/usernames.txt /someplace/passwords.txt /someplace/combined.txt'
exit 0
fi
#--help
if [ "$1" == "--help" ]; then
echo 'usage: usernamepasswordgenerator.sh /someplace/usernames.txt /someplace/passwords.txt /someplace/combined.txt'
exit 0
fi
#the generation part, two loops ezy pezy
while read username;do
while read password; do
echo $username:$password >> $3
done <$2
done <$1
echo "completed with $(wc -l $3 |cut -d ' ' -f1) lines total"
The text was updated successfully, but these errors were encountered:
I thought I would offer to add this simple script to your program which I have been using to create username:password lists for your application. The code is below.
The text was updated successfully, but these errors were encountered: