Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Crack PKCS12 file using a dictionary attack
- #
- # See https://sourceforge.net/projects/crackpkcs12/ for a more efficient
- # and fast way to do it using the C program.
- DICCIONARIO=$1
- ARCHIVO=$2
- for PSW in $(cat $DICCIONARIO)
- do
- if ( openssl pkcs12 -noout -passin pass:${PSW} -in ${ARCHIVO} 2> /dev/null )
- then
- echo
- echo Contraseña encontrada: $PSW
- exit
- fi
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement