If you're jailbroken then there is a way to access code via SSH as mentioned in link above. Sadly most ways are related to restoring, when one way is to install an app and view backups, but I haven't had to do this as I don't use restrictions. The instructions for the app are easy. I just read that the app is for the Mac.
If you restore the ipad, you would need to restore as factory new and not from backup.