Pakistan were set an imposing victory target of 317 runs on the fourth day of the second test on Friday after bowling Australia out for 262 before lunch.
Australia had recovered from 16 for four after lunch on Thursday to resume on 187-6 on a sunny morning at the Melbourne Cricket Ground (MCG).
Alex Carey scored his sixth test half century with a knock of 52 to help extend the lead before he was trapped leg before by seamer Mir Hamza (4-32) to bring an end to the innings.
Pakistan made 264 in their first innings and will be up against it chasing down the target given the form of Pat Cummins and the Australian pace attack.
The tourists were dismissed for 89 in the fourth innings as Australia won the first test in the three-match series by 360 runs in Perth two weeks ago.
The highest successful fourth-innings run chase at the MCG was the 332 England scored back in 1928-29.


Norris unfazed by crowd boos after winning in Mexico
Mbappe and Bellingham strike as Real Madrid edge Barcelona 2-1 in fiery El Clasico
Brazilian teen Fonseca beats Fokina to win biggest career title in Basel
Arsenal go clear after win over Palace, Man City slip up at Villa
Brook's defiant ton in vain as New Zealand beat England
