Australia, resuming at 20-2, were dismissed for 145 in their first innings on the second day of the second Test against Pakistan in Abu Dhabi on Wednesday.
Mohammad Abbas (5-33) and Bilal Asif (3-23) rocked Australia as they conceded a big 137-run lead over Pakistan's first innings total of 282.
Opener Aaron Finch (39) and Mitchell Starc (34) were the main Australian run-getters.
Abbas dismissed Shaun Marsh for three runs and Travis Head for 14 to derail Australia after they resumed at 20-2 in reply to Pakistan's 282 all out at Sheikh Zayed Stadium.
Asif then removed Aaron Finch (39) and in the last over before lunch trapped Tim Paine leg-before for three as Australia were left in danger of conceding a big first innings lead.
They trail by 191 runs with only two wickets intact.
At the break Marnus Labuschagne was ten not out after a two-hour session was dominated by Pakistan's bowlers.
Abbas, whose first wicket of the match made him the joint second fastest Pakistani to 50 wickets, gave Pakistan an early wicket in the fourth over of the day, removing Marsh with a catch in the slip.
He then had Head caught in the second slip to leave Australia at 56-4.
Leg-spinner Yasir Shah made it 75-5 with the wicket of Mitchell Marsh, caught close to the wicket for 13.
The first Test in the two-match series ended in a draw in Dubai last week.