Forensic software are used by law enforcement agencies to get through the passcodes if they need to look into a suspected iPhone or iPad. You can use the same to hack and get your iPhone or iPad back. However, you need to be comfortable with the Command Line in Terminal. Here are some of the tools that can be used in Mac to hack the passcode:
Elcomsoft was tested by us and it was found to be very reliable but it is not available for general public so you need to buy the license and may need to proof that you are a legitimate entity which will not use it for illegal means.