Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addition to your program #9

Open
MrThreat opened this issue Sep 4, 2018 · 1 comment
Open

Addition to your program #9

MrThreat opened this issue Sep 4, 2018 · 1 comment

Comments

@MrThreat
Copy link

MrThreat commented Sep 4, 2018

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"
@frizb
Copy link
Owner

frizb commented Nov 9, 2018

This is awesome! Thank you for sharing this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants