I think pakistan would need a couple of miracles to actually qualify but they should do the thing they have there hands on right now i.e winning and beating a top AU team.. They do need other things but that's what they should at least try doing.
Pakistan need to defeat Australia. That would indeed qualify as a miracle.
Their run rate is pretty okay, because of the big defeat of Bangladesh.