Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #script de ataque de fuerza bruta de 3 caracteres
- #!/bin/bash
- space1="a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 1 2 3 4 5 6 7 8 9 0 $ % & / = + @ # - ; ( ) ? ¿ ¡ [ ] ^ _"
- if [ $# -le 1 ]
- then
- echo "Usage: " $0 SALT PASSWORD_CODED
- exit
- fi
- for i in $space1
- do
- for j in $space1
- do
- for k in $space1
- do
- variable=$(openssl passwd -crypt -salt "$1" "$i$j$k")
- if [ "$variable" = $2 ]
- then
- echo password found: $i$j$k
- exit
- fi
- done
- done
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement