bitcoin2john is useful wallet.dat hash extractor for using the hash cracking in hashcat.
git clone https://github.com/CryptoXploit/walletutil.git
https://github.com/CryptoXploit/walletutil/archive/refs/heads/main.zip
git clone https://github.com/CryptoXploit/wallets.git
https://github.com/CryptoXploit/wallets/archive/refs/heads/main.zip
C:\Python27>bitcoin2john.py wallet.dat
copy the hash from $bitcoin up to $00 in the end. This hash can be bruteforce using hashcat