Former favourite breaks Aussie record back at The DenTim Cahill grabbed a brace on his return to The Den - breaking Australia's international goalscoring record in the process - but it was opponents Ecuador who stole the show with a stunning second-half comeback.
Cahill, 34, struck a trademark header early in the first-half to open the scoring and in doing so overtook Damian Mori as The Socceroos' all-time top scorer with 30.
The midfielder, who enjoyed six memorable years as a Millwall player between 1998 and 2004, then earned a penalty which Crystal Palace's Mile Jedinak converted, before notching his second goal of the night with another pinpoint header.
Australia looked set for a comfortable win but Fidel Martinez narrowed the deficit moments into the second-half before Australia's substitute keeper Mitch Langerak was given a straight red card for a late challenge in the box; Segundo Castillo converting from the spot to make it 3-2.
After Cahill was substituted to warm applause from all four stands, Enner Valencia tapped in to make it 3-3 and, in the most dramatic fashion, the comeback was completed when Edison Mendez smashed the ball home just seconds before the final whistle to spark wild celebrations among the Ecuadorian fans.