3
3
3amunyk2016-08-12 01:02:10
linux
3amunyk, 2016-08-12 01:02:10

Generator of all variants of numbers in linux?

Guys, please help me, I need to get all possible variants of a nine-digit combination consisting of numbers and Latin characters in lower case.
qa21fe42d an example of one of the recording options
All this needs to be split into files of 100k lines, and the file names should be numbered in 1.txt 2.txt etc. I
believe that this can be implemented in the bash, but I can’t figure out how exactly)
Ubuntu

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
strelmax, 2016-08-12
@strelmax

Here is a password generator (remade from mnorin.com/generator-parolej-na-bash.html ), but it will be sooooo long:
SYMBOLS=""
for symbol in {a..z} {0..9}; do SYMBOLS=$SYMBOLS$symbol; done
last=[number_of_passwords]
first=0
PASSWORD=""
PWD_LENGTH=9
RANDOM=256
while [ "$first" -lt "$last" ]
do
for i in `seq $PWD_LENGTH`
do
PASSWORD=$PASSWORD${SYMBOLS: $(expr $RANDOM % ${#SYMBOLS}):1}
done
echo $PASSWORD >> passwords
PASSWORD=""
let "first +=1"
done
also via pwgen eg:
pwgen -A -n 9 [number_of_passwords] > > passwords
Split the file into files of 100k lines split
-l 100000 passwords ` and then you can remove the lines (first=0 and let "first +=1"), and it will be a little faster.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question