Advertisement
Guest User

Untitled

a guest
Feb 24th, 2020
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. #script de ataque de fuerza bruta de 3 caracteres
  2. #!/bin/bash
  3.  
  4. 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 $ % & / = + @ # - ; ( ) ? ¿ ¡ [ ] ^ _"
  5.  
  6. if [ $# -le 1 ]
  7. then
  8. echo "Usage: " $0 SALT PASSWORD_CODED
  9. exit
  10. fi
  11.  
  12. for i in $space1
  13. do
  14. for j in $space1
  15. do
  16. for k in $space1
  17. do
  18.  
  19. variable=$(openssl passwd -crypt -salt "$1" "$i$j$k")
  20. if [ "$variable" = $2 ]
  21. then
  22. echo password found: $i$j$k
  23. exit
  24. fi
  25. done
  26. done
  27. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement