Hello again.
I wanted to get several WPA passwords and test them by trying to hack them for educational purposes.
Since I didn`t want to use an online generator (because when you don`t have a connection they are useless) I though I should have them taken from terminal.
The procedure is simple and it worked. At least for me.
1st open your bash source file
gksudo ~/.bashrc
2nd add this small script
genpasswd() {
local l=$1
[ "$l" == "" ] && l=16
tr -cd 'a-zA-Z0-9\<>!".;:$%&/()=?|@#[]}{'< /dev/urandom | head -c ${l} | xargs
}
3rd save and exit
4th source it
source ~/.bashrc
and that`s it.
try it by typing
genpasswd 10
to get a password with 10 characters
GL and HF
I wanted to get several WPA passwords and test them by trying to hack them for educational purposes.
Since I didn`t want to use an online generator (because when you don`t have a connection they are useless) I though I should have them taken from terminal.
The procedure is simple and it worked. At least for me.
1st open your bash source file
gksudo ~/.bashrc
2nd add this small script
genpasswd() {
local l=$1
[ "$l" == "" ] && l=16
tr -cd 'a-zA-Z0-9\<>!".;:$%&/()=?|@#[]}{'< /dev/urandom | head -c ${l} | xargs
}
3rd save and exit
4th source it
source ~/.bashrc
and that`s it.
try it by typing
genpasswd 10
to get a password with 10 characters
GL and HF
Comments
Post a Comment