Australia dismissed India for 185 on the first day of their Test series, but an excited Jasprit Bumrah struck with the last ball of the day to boost the tourists late on.
Bumrah had opener Usman Khawaja caught at second slip for two and turned to celebrate against 19-year-old Sam Konstas, with India thinking both batters were wasting time in what turned out to be the last .
The tourists, who trail 2-1 in the best-of-five series and must win to retain the Border-Gavaskar Trophy, had already tentatively reached their total at a lively Sydney ground.
They left out struggling captain Rohit Sharma, but the move did little to improve the fortunes of their top order as Scott Boland took 4-31.
India were 72-4 when Boland dismissed Virat Kohli for 17 and 120-6 when Rishabh Pant, who scored with a cautious 40, and Nitish Kumar Reddy fell to the seamer on consecutive balls.
But Bumrah, captaining India in place of Rohit, hit three fours and sixes in a 17-ball 22 to increase the total and his dismissal gave India time to have three overs in Australia before the fence.
The hosts appeared to have survived, with Bumrah accusing Khawaja of wasting time in the final over, before exchanging words with Konstas as Australia ran down the clock to ensure there was no time for a another over.
However, Bumrah had the last laugh as he dismissed Khawaja for the sixth time this series, with the left-hander giving the edge to KL Rahul, who took a fine low catch.
That leaves Australia, who only need a draw to win back the trophy, 9-1.
India need a win to stay in contention to qualify for the World Test Championship final later this year.