You cannot recover a restrictions password. Either you remember it or you don't.
You have three options: you can keep guessing the password, you can completely erase the device and start over, or you can live with the restrictions.
If you chose to erase it and start over, you cannot use a backup of the device, since the restriction code is also contained in the backup.