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.
19 de enero 2019
|Guardiola keen to keep City rhythm and challenge on four fronts|
|Fifita backs Johnson to inspire the Sharks|
|For Real Madrid, nothing is impossible - Solari refuses to give up in title race|
|Inter 0 Sassuolo 0: Spalletti´s side labour at sparse San Siro|
|Marshawn Lynch will continue playing ´if it works out´|
|Simeone excited by improving Atleti|
|Jones ´cautiously optimistic´ over Farrell ahead of Ireland clash|
|Sarri questions Chelsea motivation after Arsenal surrender|
|Emery urges Arsenal to find balance after downing Chelsea|
|Koscielny hails Arsenal fighting spirit in Chelsea win|
|Pellegrini: It was not a good idea for Arnautovic to play|
|Iran v Oman: We´re not satisfied yet, says Al Mahaijri|
|Carbery sends Munster through and ends Exeter´s lingering Champions Cup hopes|
|Dyche defiant despite offside call|
|Hasenhuttl rates Everton win as Southampton´s best|
|Benitez looking up the table after Schar inspires win over Cardiff|
|RB Leipzig 0 Borussia Dortmund 1: Witsel restores six-point cushion|
|Swansea City 1 Sheffield United 0: McBurnie punishes wasteful Blades|
|Cardiff sign Sala from Nantes for club-record fee|
|Arsenal 2 Chelsea 0: Lacazette and Koscielny fire Gunners to rousing derby win|
|Huesca 0 Atletico Madrid 3: Dominant Atleti keep pressure on Barca|
|Rashford arguably league´s best striker with Kane out - Solskjaer|
|Hafeez plays steady hand as Pakistan punish Proteas´ patient approach|
|Klopp: Exceptional Salah would have scored even more up front!|
|Suspected ´serious´ Verratti injury leaves Tuchel with mixed emotions|
|We needed to rediscover our best form - Ramos pleased for Real Madrid fans|
|City bought Guardiola four full-backs! - Mourinho aims dig at Man Utd transfer policy|
|Valverde ´not frustrated´ amid De Jong & Vela links|
|Championship Review: Leaders Leeds beaten at Stoke as Villa end Hull run|
|Bournemouth rode their luck, admits Howe|
|Barca boss Valverde calls for clarity on RFEF rules|
|Bears rack up 107 points in routing Enisei en route to quarter-finals|
|Paris Saint-Germain 9 Guingamp 0: Verratti injured for rampant champions|
|Solskjaer: I´ll remember managing United for the rest of my life|
|Palace win a ´massive relief´ for Liverpool boss Klopp|
|Salah fourth fastest to 50 goals in Premier League history|
|Real Madrid 2 Sevilla 0: Solari´s side take over third spot|
|Watford 0 Burnley 0: Wood denied winner by contentious call|
|Liverpool 4 Crystal Palace 3: Salah reaches 50 thanks to Speroni shocker|
|Newcastle United 3 Cardiff City 0: Schar double moves hosts out of bottom three|
|Southampton 2 Everton 1: In-form Saints steer clear of trouble|
|Bournemouth 2 West Ham 0: Wilson and King sink Pellegrini´s men|
|Manchester United 2 Brighton and Hove Albion 1: Record-breaking win for Solskjaer|
|Pelicans star Anthony Davis out for one to two weeks with sprained finger|
|Verratti hobbles off for PSG against Guingamp|
|Brook ponders next move after missing out on Khan|
|Mick Schumacher: The Ferrari academy graduates who made it to F1|
|Thailand v China: Lippi aims to overcome War Elephants and reach last eight|
|I deserved red card, says Wolves boss Nuno|
|Mick Schumacher joins Ferrari Driver Academy|
|Jared Goff not worried about Superdome noise: ´When it´s loud, we love it´|
|Rooney urged Rashford to run at defenders|
|Former Springbok Lambie retires from rugby aged 28|
|Spygate: EFL confirms 11 clubs have made contact about Leeds|
|When it´s loud, we love it - Goff ready for New Orleans noise|
|Wolves 4 Leicester City 3: Jota hat-trick drama piles pressure on Puel|
|´Asparagus´ Zverev joins frustrated Djokovic in round four|
|Lowry takes Abu Dhabi title at the last after ding-dong Sterne battle|
|Rooney: United should go "all out" for Pochettino|
|Djokovic frustrated by ´unnecessary´ Australian Open floodlights|
|Jordan v Vietnam: Park expecting ´aggressive´ encounter|
|Serena and Halep book blockbuster, Osaka won´t throw in the towel|
|Brady: Mahomes has had ´spectacular season´|
|Halep not intimidated by Serena anymore|
|Farrell´s Six Nations preparations hit by thumb injury|
|Pogba confident Manchester United can reach top four|
|Alexander-Arnold embodies Liverpool spirit - Klopp|
|Stoinis shoots Stars to Melbourne derby victory|
|A-League Review: Glory held in stalemate as Sydney close the gap|
|DeMarcus Cousins ´felt like a kid on Christmas´ in Warriors debut|