You'd need a forgery from one of the few remaining countries that don't do that, or smuggle yourself out in another way.
Any embassy in Afghanistan could issue those.