openssl pkcs12 -info -noout -in file.p12
or
keytool -list -storetype pkcs12 -v --keystore file.p12
More context at https://stackoverflow.com/a/50900084/298043, but in substance
keytool -storetype pkcs12 -storepasswd -keystore file.p12
Sadly no hashcat support, limited to CPU using options...
Program found at https://github.com/crackpkcs12/crackpkcs12
crackpkcs12-0.2.11/src/crackpkcs12 -t 2 -m 6 -c A -v -p AB file.pfx
Need the full community edition for pfx2john be there, OS package is crippled, see https://geekeries.org/2016/08/casser-un-p12-avec-johntheripper/?cn-reloaded=1.
Then
pfx2john file.p12 |john /dev/stdin