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 noviembre 2018
|Modric not deserving of Ballon d´Or – Cavani|
|F1 Raceweek: Alonso ends on 312 races, Raikkonen a Ferrari great - Abu Dhabi GP in numbers|
|Neymar made a mistake leaving Barcelona for PSG, insists Edmilson|
|O´Neill and Keane leave Republic of Ireland after relegation|
|WATCH: Maxwell hits Spidercam with sliced shot in Australia-India T20|
|Rafinha wants Barca exit due to ´crazy´ Valverde selections – Mazinho|
|France to wear rainbow laces in support of Thomas following attack|
|You need to stop this – Cavani slams media over supposed Neymar feud|
|Anderson rested for final Test|
|Tite applauds Seedorf for Cameroon´s style of play|
|Griezmann not obsessed with Ballon d´Or|
|Neymar feels injury is ´nothing serious´|
|Durant says Green altercation won´t impact his free agency|
|Morris blasts drama surrounding Wizards: It´s messed up|
|Scaloni thrilled for Dybala, Icardi|
|Green´s last-second shot keeps Raptors atop East standings|
|Deschamps praises Griezmann for Giroud gesture|
|Warriors star Curry improving, still out at least three more games|
|Chile 4 Honduras 1: Sanchez, Vidal shine for La Roja|
|Argentina 2 Mexico 0: Icardi, Dybala score first international goals|
|Mickelson calls Tiger the greatest of all time|
|Durant fined $25,000 for using inappropriate language|
|Fizdale isn´t concerned about Knicks´ losing streak|
|No particular concern for Mbappe – Deschamps|
|PSG team-mate Choupo-Moting hopes Neymar injury is not serious|
|McLeish marvels at stylish Scotland´s promotion success|
|Draw proves Poland can play well without Lewandowski – Brzeczek|
|Giggs: Wales let themselves down|
|Sarachan ´moved USA forward´ in interim spell|
|Mickelson lays $200,000 bet with Woods for first hole|
|Dolphins QB Tannehill to start against Colts|
20 de noviembre 2018
|Murcia edge out Banvit, Bonn crush Opava|
|Neymar injury not serious, says doctor|
|Mancini: Italy ahead of schedule|
|France 1 Uruguay 0: Giroud hits the spot after Mbappe injury blow|
|Portugal 1 Poland 1: Milik penalty salvages precious point as Danilo sees red|
|Italy 1 United States 0: Politano snatches late winner for Mancini´s men|
|Scotland 3 Israel 2: Forrest hat-trick seals Nations League promotion|
|Brazil 1 Cameroon 0: Richarlison fills Neymar´s boots as skipper suffers injury|
|France & PSG star Mbappe suffers shoulder injury|
|Albania 1 Wales 0: Gunter´s night spoiled by Balaj|
|Leeds and Manchester United to meet in friendly|
|Outspoken Smith leaves Cavaliers|
|PSG star Neymar injured for Brazil|
|Juventus midfielder Can back in training after surgery|
|Rams-Chiefs rollercoaster was the NFL´s modern-day masterpiece|
|Ronaldo an AC Milan target in 2017, confirms Fassone|
|Farah could get back on track at Tokyo Olympics|
|PSG still waiting on Alves and Kurzawa|
|Atalanta reject Gasperini to AC Milan speculation|
|Edmonton Oilers name Hitchcock new head coach|
|JR Smith on Cleveland Cavaliers: Tanking ´was always the plan´|
|Chester signs new Wakefield deal|
|F1 Raceweek: Countdown on to Alonso farewell|
|Rain disrupts Lorenzo´s Honda debut|
|VAR a possibility for Champions League knockout rounds|
|FFP vulnerable in areas, says UEFA president Ceferin|
|Sri Lanka draft in uncapped Peiris to replace Dananjaya|
|Coman back in Bayern training but Lewandowski has knee injury|
|Qalandars land De Villiers in PSL draft, Smith second pick|
|F1 changes helped less talented drivers on the grid - Alonso|
|Agnelli: No super league talks since 2015|
|I hope from now on it only gets better - Floersch update on horror crash|
|Calf injury rules Ashton out of Australia match|
|Halfpenny to miss South Africa clash|
|Hard for Lazio to hold on to Milinkovic-Savic, says Lotito|
|Australia´s next generation pay tribute to retiring Cahill|
|Bairstow pushing hard for Test recall|
|Cane eyes 2019 Super Rugby return after neck break|
|Van Dijk finds time to console referee during Dutch delight|