Hard-working fast bowler Mohammad Abbas took three wickets in seven balls to bring Pakistan closer to victory in the first Test against Australia in Dubai on Wednesday.
The right-arm medium pacer dismissed Aaron Finch (49) and the Marsh brothers - Shaun and Mitch - for ducks as Australia slumped from 87 without loss to finish the fourth day at 136-3.
At stumps, opener Usman Khawaja was batting on a fighting 50 and Travis Head on 34, as the pair had added an invaluable 49 for the unbroken fourth-wicket stand to prolong the visitors' resistance on a weary and spinning pitch.
Pakistan need seven more wickets while Australia require another 326 runs for an improbable victory to take a 1-0 lead in the two-match series.
It was a replay of the first innings as Australian openers put on 87 - they made 142 in their total of 202 on Tuesday - before Finch was trapped leg-before soon after tea with a sharp incoming delivery from Abbas.
Finch, who took an unsuccessful review, hit five boundaries in his knock. Two balls later Abbas had the elder Marsh caught behind and in his next over trapped Mitch right in front of the stumps only to get the decision on review.
Pakistan-born Khawaja, who top scored for Australia with 85 in the first innings, held one end intact with resolute batting, having so far hit six boundaries.
Abbas has figures of 3-26 to add to his four wickets in the first innings, but leg-spinner Yasir Shah was still wicketless in the match.
If Australia still wish to win this match they will have to rewrite the history books as the highest chase in all Test cricket is West Indies's 418-7, made against Australia at Antigua in 2003.
Pakistan, who were 45-3 overnight, declared 7.5 overs after lunch on 181-6 at the fall of Asad Shafiq's wicket for 41.
Jon Holland, who took the key wicket of Azhar Ali for four on Tuesday, dismissed opener Imam-ul-Haq for 48, caught and bowled off a flighted delivery.
Debutant Marnus Labuschagne then had Haris Sohail caught close to the slips for 39, leaving Pakistan at 110-4. Sohail and Imam had added 65 runs for the fourth wicket.