Retrieve lost rar or zip password

Is there any way to retrieve lost rar or zip password without any use of recovery tool for escaping time wasting?
I mean by modifying the dll files or use such commands, I tried to recover using some third party guessing tools but they waste a lot of time.
