Cummins leads Australia fightback after Pakistan take early honours
The tourists looked in fine shape at 124-1 an hour after tea but will resume on day three of the match 124 runs in arrears with hopes of a first test win in Australia since 1995 to level the series at 1-1 fading fast.
Cummins (3-37) changed the day in two overs, brilliantly catching Abdullah Shafique for 62 off his own bowling and dismissing dangerman Babar Azam for one with a sublime delivery that had the Melbourne Cricket Ground crowd roaring in delight.
Off-spinner Nathan Lyon also played a leading role in Australia's fightback, breaking an obdurate opening partnership between Imam-Ul-Haq and Shafique before returning to remove Shan Masood for 54.
Masood had played a gutsy captain's innings for his eighth test half-century but frittered all his good work away when he tried to club the ball back over Lyon's head only to balloon it to Mitch Marsh at point.
Josh Hazlewood then chipped in to bowl Saud Shakeel for nine and Cummins returned late in the session to have Agha Salman caught behind for five.
Mohammad Rizwan was unbeaten on 29 at the close of play with Aamer Jamal two not out from 26 balls at the other end.
"I thought we bowled decently before tea without too much reward, they obviously batted quite well," said Cummins.
"It was good at the end there to get a few big wickets and we feel like we're well into their order now.
"I thought our batters did well to get over 300, I think the pitch is just going to get better and better."
The rain which had disrupted the opening day of the Boxing Day test stayed away but conditions still favoured the bowlers and Pakistan were able to wrap up Australia's first innings before lunch.
Jamal led the way with 3-64 as the tourists, who have lost 15 successive tests in Australia since 1995, took the last seven wickets at the cost of 131 runs.
Marnus Labuschagne top scored with 63 but the 52 extras Pakistan conceded was a reminder of a sloppiness that Australia were always going to be happy to exploit.
Pakistan belied that tendency early in their innings, particularly as Shafique and Masood put on 90 runs for the second wicket with brave and disciplined batting in the face of Australia's world-class pace attack.
Australia won the first test by an emphatic 360 runs in Perth two weeks ago. The third and final test will take place in Sydney in the new year.