Simone Pepe spared Massimiliano Allegri's blushes with a stoppage-time winner as Juventus beat an A-League All-Stars team 3-2 on Sunday.
The winger, who has seen his Juve career blighted by injuries in recent seasons, produced a low finish in the 94th minute to rescue the Serie A champions after a scare in Sydney.
Having already seen his side beaten by fifth-tier Lucento and held by Cesena during pre-season, head coach Allegri looked like adding a defeat to that list until Juve scored twice in the closing stages.
Marcelo Carrusca opened the scoring for the A-League's representative side early in the first half with a well-placed finish, and the hosts held their lead until the 60th minute when Fernando Llorente headed an equaliser.
The visitors looked more likely to go on and win the game, only for Tomi Juric to put the hosts back ahead with an instinctive strike.
However, the All-Stars were denied a memorable victory as late goals from Paul Pogba, in the 88th minute, and Pepe turned things around.
A lively start from the hosts saw former Juve star Alessandro Del Piero have the first sight of goal after eight minutes; his free-kick struck the wall, but a minute later the All-Stars were ahead through Carrusca.
Matt Smith brought the ball confidently out of defence to begin a flowing move that ended with Carrusca cutting inside Angelo Ogbonna, before firing low into the bottom corner of Gianluigi Buffon's net.
Juve were struggling to cope with their opponents and nearly fell further behind on the half-hour as Besart Berisha forced Buffon into a smart save, the experienced goalkeeper pushing a curling shot wide.
The visitors gradually found their stride as Andrea Pirlo began to dictate proceedings, and a neat move between Allegri's front two almost brought an equaliser.
Carlos Tevez and Fernando Llorente exchanged passes on the edge of the penalty area but the Argentine's low shot struck a post before bouncing out for a goal kick.
Juve eventually levelled as Patrice Evra made good ground down the left and, after being found by Pirlo, delivered a pinpoint cross to find Llorente, who headed beyond Eugene Galekovic.
A host of changes gave the All-Stars a boost and with 13 minutes remaining they claimed what appeared set to be a winning goal, as Juric cut in from the left edge of the area and lashed the ball into the back of the net.
With time running out and Juve staring defeat in the face, it was Pogba who initially came to the rescue with a sumptuous volley over Mark Birighitti to level the match, but the drama was not over.
The All-Stars failed to clear a late Juve corner and Pepe latched onto the loose ball inside the penalty area to fire into the bottom corner and seal the victory.
|Bonucci revels in ´wonderful´ San Siro bow as AC Milan destroy Shkendija|
|Everton 2 Hajduk Split 0: Keane opens account in comfortable Europa League win|
|AC Milan hit 24-year high in Shkendija thrashing|
|AC Milan 6 Shkendija 0: Silva, Montolivo inspire Rossoneri to brink of Europa League group stage|
|Messi, Ronaldo and Suarez lead tributes as football stands with Barcelona|
|Usain Bolt offered burgers and beer to join Portuguese football club|
|Hummels joins Mata in pledging one per cent of his wages to charity|
|Carroll poised for West Ham return at Newcastle|
|Arsenal´s Alexis Sanchez named in latest Chile squad|
|Ruben Yanez joins Getafe from Real Madrid|
|Clement: Swansea can be stronger without Sigurdsson|
|Paulinho insists he can fit in at Bacelona|
|Gabi urges Costa to respect Chelsea despite desire to join Atletico Madrid|
|Mbappe left out of Monaco squad amid ongoing PSG links|
|Zidane, Mourinho, Low, Conte and Guardiola to battle for Best FIFA Men´s Coach prize|
|Bosz has ´no idea´ whether Dembele will stay at Dortmund|
|Messi, Ronaldo, Iniesta and Kane among nominees for Best FIFA Men´s Player award|
|Messi not signing new deal would surprise Barcelona VP Mestre|
|Barca in ´difficult situation´ over Coutinho and Dembele|
|Sturridge fit for Palace clash|
|LaLiga 2017-18: Messi in transition, Bale battling for his place - five stars to watch|
|Nothing has changed over Coutinho - Klopp|
|Barcelona´s Luis Suarez to miss four to five weeks with knee injury|
|James one of six Bayern stars out of Bundesliga opener|
|Tottenham midfielder Sissoko: No agreement with any club|
|Barca ´not a millimetre closer´ to signing Dembele - Watzke|
|Neymar money would fund us for ´15 years´, says Toulouse boss|
|Transfer market is crazy, admits £45m Everton new boy Sigurdsson|
|Barcelona complete €40m Paulinho signing from Guangzhou|
|LaLiga 2017-18: Madrid ready to tighten grip on bumbling Barcelona|
|Brighton tie Knockaert, Dunk & Duffy to new deals|
|Milan ready to fight for Scudetto - Kaka|
|Bundesliga 2017-18: Ancelotti angst, Bosz bottle and VAR all under scrutiny as new season kicks off|
|Carvajal: Real Madrid were all over Barcelona|
|Bundesliga 2017-18: James checks in as Aubameyang stays – five stars to watch|
|Behrami leaves Watford for Udinese|
|Wenger and Arsenal willing to make financial sacrifice on Sanchez|
|Montreal Impact 3 Chicago Fire 0: Piatti double sinks slumping visitors|
|Pique: This is the first time I´ve felt inferior to Real Madrid|
|Asensio: Madrid played better and deserved Supercopa title|
|Barca star Suarez to undergo tests on knee injury|
|Barca close to signing Coutinho and Dembele - Segura|
|Valverde: Madrid aren´t invincible as Barca boss laments Neymar loss|
|Zidane lauds ´spectacular´ Madrid after Supercopa triumph|
|PSG troll Barcelona over Supercopa loss to Madrid|
|Real Madrid 2 Barcelona 0 (5-1 agg): First-half Barca failings settle Supercopa|
|Champions League Review: Mertens stars as Napoli put two past Nice|
|Rodgers eyes Liverpool reunion after ´perfect´ Celtic hammer Astana|
|Demebele can´t just do whatever he wants - Dortmund team-mate Sokratis|
|Championship Review: Norwich off the mark, Sheffield Wednesday hold Sunderland|
|Celtic 5 Astana 0: Sinclair double helps put Rodgers´ men on brink of qualification|
|Sigurdsson to Everton joins Lukaku, Torres and Sterling among biggest all-Premier League deals|
|Sigurdsson completes club-record move from Swansea to Everton|
|Izquierdo granted work permit ahead of club-record Brighton switch|
|Van Persie and Babel win Netherlands recalls|
|Ronaldo brands five-match ban ´exaggerated and ridiculous´|
|Bayern in ´good rhythm´ after poor pre-season - Ancelotti|
|Van Dijk not for sale, says Southampton chairman|
|Liverpool loan Ojo to Fulham|
|Ronaldo´s appeal against five-match ban rejected|
|PSG´s Matuidi arrives in Turin to complete Juventus switch|
|Barcelona threaten legal action over Paulinho deal allegations|
|Sigurdsson undergoes Everton medical, Koeman lavishes praise|
|Boateng leaves Las Palmas for personal reasons|
|Coutinho one of the best in the world, says Liverpool team-mate Can|
|Pulisic staying at Dortmund despite Liverpool speculation|
|Gundogan not rushing Premier League comeback|
|Carlos Bacca joins Villarreal from AC Milan|
|Wenger happy Sanchez & Oxlade-Chamberlain have not followed Coutinho path|
|Newcastle land Joselu in £5m deal|
|Jese Rodriguez joins Stoke from PSG|
|No progress on Alexis Sanchez contract, admits Arsenal boss Wenger|
|Klopp excited by ´incredible´ Alexander-Arnold after starring role in Liverpool win|
|Melbourne Victory confirm Sanchez signing|
|Aston Villa fans ´carried away´ after Terry signing, says Bruce|
|Hoffenheim had ´clearer´ chances, says Nagelsmann|
|Pogba determined to win Premier League with Man Utd|
|Championship Review: Ipswich win again in dramatic fashion|