Who’s the tough guy now?

The crazed fan accused of attacking WWE wrestler Bret Hart looked cowed and glum in court Tuesday as a judge reminded him to adhere to two orders of protection and steer clear of his victim.

Zachary Madsen has been out on bail since April 10, four days after he allegedly jumped a barricade and tackled the 61-year-old wrestler as he was giving his WWE Hall of Fame speech in Brooklyn. Madsen later allegedly claimed that he attacked Madsen because he felt “it was the right moment.”

Madsen, 26, has a history of stalking pro fighters and orders of protection against him were issued for Hart and a security guard during an April 7 arraignment, court records show.

The 26-year-old Lincoln, Neb., native sported a dour expression on a stubbly face Tuesday in Manhattan Criminal Court, where Judge Archana Rao reminded him of the restraining orders.

“Yes, ma’am,” Madsen responded solemnly to the judge — before quickly skittering out of the courtroom with his lawyer following the three-minute appearance.

He was ordered to return to court July 9.