I assume with this you have to navigate to the folder where brute.rb is?
Whether I run it on windows or ubuntu, I have the same problem - it says that my RPC password is incorrect, even when copying the password from the file.
I recommend that you rename bitcoin.conf to bitcoin.conf.old to disable it, then provide the password on the command line when you start Bitcoin:
C:\"Program Files (x86)"\Bitcoin\daemon\bitcoind -rpcpassword=rpc-pass
Here is the code I'm running (with my passwords censored)
(...)
My problem is that I have a list of words, but I don't know the order. I know that I used either 3 or 4 of these words.
That script is exactly what you need. Just fill in your list of words in this part: words = ['pass1', 'pass2', 'pass3', 'pass4']