Mason Crosby has gone from goat to hero in eight days.
Crosby drilled a 27-yard field goal as time expired to give the Green Bay Packers a 33-30 victory over San Francisco in the NFL Monday nighter.
The field goal capped an 81-yard drive set up by Kevin King's interception with 67 seconds remaining.
The drive was extended after 49ers cornerback Richard Sherman was called for an illegal contact penalty on third-and-15, wiping out a sack of Aaron Rodgers with 43 seconds left.
Crosby also nailed kicks of 51, 39 and 29 yards after missing four field goals and an assist point in the Packers' loss at Detroit last Sunday.
Rodgers threw for 425 yards and two touchdowns to help the Packers improve to 3-2-1.
C.J. Beathard passed for 245 yards and two touchdowns for the 1-5 49ers.