How do I recover my wallet password?


I downloaded Syscoin Core on my mac. I have a wallet that is protected by my password, but unfortunately I typed one character wrong and now I cannot recover it. In the console window, it seems I can call functions such as walletpassphrasechange(). Is there any way I can write a script to try out different characters to recover my password? I don’t know how functions like walletpassphrasechange works but I don’t seem to find a way to call the function outside Syscoin app.