Babar Azam fell one short of a maiden Test century after a farcical Azhar Ali run out as Pakistan put themselves well on course for victory over Australia in Abu Dhabi on day three.
Azhar threw his wicket away comically for 64 at Sheikh Zayed Stadium, Mitchell Starc zipping in a throw and Paine whipping off the bails as the number three casually chatted to Asad Shafiq out of his ground thinking he had struck a boundary.
There was also agony for Babar when he was dismissed for 99, but Pakistan should have the last laugh after declaring on 400-9 to set the tourists a highly unlikely 538 to win.
Usman Khawaja's magnificent century denied Pakistan in the first Test, but he was unable to open due to a knee injury on Thursday and his replacement, Shaun Marsh, fell cheaply as Australia were reduced to 47-1 at stumps.
Sarfraz Ahmed (81) earlier made a second half-century of the match, with Nathan Lyon taking 4-135 on a gruelling day for Australia.
Lyon struck in the sixth over of the day with a flighted delivery which deceived an advancing Haris Sohail, who was stumped by Paine.
Azhar followed in bizarre fashion soon after to leave Pakistan 160-4, but Babar and Shafiq capitalised on an excellent batting surface in a stand of 75.
Shafiq was twice dropped by Marnus Labuschagne at short leg off Lyon before the all-rounder dismissed him for 44 in the afternoon session.
Babar had brought up his half-century and continued to tick along effortlessly, launching Labuschagne for six over long-off before Sarfraz did the same to Lyon straight after sweeping him to the boundary.
Peter Siddle rattled Sarfraz on the helmet, but the skipper brought up his second half-century of the match and Babar was on the brink of a first Test hundred when he was trapped leg before by Mitchell Marsh.
Babar reviewed, in hope more than expectation, but was sent on his way after hitting three sixes and another six boundaries in an excellent knock, putting on 133 for the sixth wicket with Sarfraz.
Bilal Asif smashed Labuschagne's first ball after tea for a straight six, but he and fellow spinner Yasir Shah fell in the same Lyon over, much to the frustration of Sarfraz.
Sarfraz decided it was time to deal in boundaries, but missed out on a hundred again when Labuschagne snared him leg before and declared soon after trudging off.
Stand-in opener Shaun Marsh failed for the fourth time in the series, bowled by a peach of a delivery from Mir Hamza which nipped away and struck the top of off stump.
Aaron Finch and Travis Head prevented any further damage from being done, but Pakistan have two days to take the nine wickets needed to win the series.
21 de abril 2019
|Injured PAOK captain comes off bench to celebrate club´s first title in 34 years|
|It is in our hands – Emery confident on Arsenal´s Champions League hopes|
|Liverpool prove to be a cut above Cardiff thanks to Klopp´s pitch-perfect plan|
|Neymar back on the bench for PSG´s clash with Monaco|
|Ringrose: ´Incredible´ Saracens awaiting Leinster in final|
|Hodgson prepared to fight to keep Zaha at Crystal Palace|
|All we can do is keep the pressure on Man City, admits Milner|
|This is my home – Marcelo wants Real Madrid stay|
|Cardiff City 0 Liverpool 2: Resilient Reds return to the Premier League summit|
|Arsenal 2 Crystal Palace 3: Zaha on target as Gunners slip up in top four race|
|Solskjaer: I´ll be successful at Man United... some of these players won´t be|
|Man United were rancid – Neville furious after ´embarrassing´ Everton defeat|
|Silva: Everton better team from first minute|
|Leinster set up Saracens showdown after proving too strong for Toulouse|
|Real Madrid 3 Athletic Bilbao 0: Hat-trick hero Benzema scores for fifth game in a row to seal victo|
|Damned United? The astounding stats as Red Devils hit 38-year low at Everton|
|Everything went wrong – Solskjaer apologises for Man Utd´s Everton horror show|
|Freiburg 0 Borussia Dortmund 4: BVB keep pace with Bayern|
|Paris Saint-Germain 2018-19: Mbappe´s continued rise shows Neymar is now disposable|
|Fognini follows up Nadal win by clinching first Masters title|
|Paris Saint-Germain 2018-19: How dominant title win compares to previous QSI years|
|BREAKING NEWS: PSG retain Ligue 1 title thanks to Lille draw|
|Everton 4 Manchester United 0: Toffees score biggest Premier League win over sorry Red Devils|
|Warner and Bairstow dominate again as Sunrisers thrash KKR|
|Colts owner Jim Irsay buys John Lennon´s ´Sgt. Pepper´ piano|
|People are having a free shot - Seibold defends young Broncos|
|Zidane must make Real Madrid hungry again - Seedorf|
|Young dropped as Solskjaer makes three changes for Everton clash|
|Lemar hopeful Griezmann stays at Atletico|
|Khan refutes Crawford´s accusations of quitting after low blow|
|Deciding doubles triumph sends Australia into Fed Cup final|
|Pakistan call up Yasir with Shadab laid low by virus|
|Wellington Phoenix 3 Melbourne City 2: Krishna´s last-gasp hat-trick boosts top-four hopes|
|Oh, for real? I didn´t know! - Harden unaware of early shooting woes|
|Solskjaer warns Alexis Sanchez Man Utd won´t carry players|
|Dele Alli thinks Tottenham´s Champions League run has Russian roots|
|Leilua brace downs Broncos as Raiders keep pace at NRL summit|
|Spalletti hails Inter´s Roma draw as ´precious´|
|Stuttgart had to make Weinzierl decision - Hitzlsperger|
|Tucker´s homer on MLB debut powers Pirates to fifth straight win|
|76ers win thriller, Rockets overcome Harden struggles to move 3-0 ahead|
|Crawford retains title by TKO after low blow stops Khan|
|MLS Review: De Boer´s Atlanta woes continue, Nani lifts Orlando|
|Garcia beats Granados via seventh-round TKO|
|Muller: Bayern feeling title pressure|
|He parks the bus right in front of De Gea – Van Gaal critical of Solskjaer again|
|Red Sox star Eovaldi on injured list with elbow issue|
|We real cool – Lillard plays down Westbrook feud|
|Embiid trolls Warriors after 76ers take 3-1 lead over Nets|
|Allegri dismisses criticism after Scudetto success|
|Solskjaer warns of no quick-fix for Man United in transfer market|
|Klopp a hermit amid Liverpool title hype|
|Dudley is ´a nobody´ – 76ers star Embiid|
|Johnson leads RBC Heritage heading into final round|
|Pogba can´t always have things his own way, says Solskjaer|
|Whyte to face unbeaten Rivas in July|
|Clermont hold off Harlequins to reach Challenge Cup final|
|Barcelona have to suffer to win – Valverde|
|Allegri staying at Juventus and targeting improvement|
|Man United win made Sociedad tough, says Barca´s Jordi Alba|
20 de abril 2019
|Nadal: I probably played one of the worst matches on clay in 14 years|
|Sarri: Chelsea´s League Cup run on par with Tottenham´s heroics|
|Barcelona 2 Real Sociedad 1: Lenglet and Alba bring title closer|
|Inter 1 Roma 1: Perisic answers El Shaarawy stunner|
|La Rochelle edge past Sale to book Challenge Cup final berth|
|Capitals enjoy home comforts again to reign over Kings XI|
|Ronaldo proud of first Serie A season as Juventus celebrate title triumph|
|Ronaldo confirms Juventus stay after Serie A success|
|He´s showing great commitment - Gracia hails match-winner Deulofeu|
|Parker and Fulham ´discussing plans´ for next season|