Josh Hazlewood finished with six wickets in the Gabba Test.