“Shame on the city of New York because he allegedly took this bus from the Port Authority, and we have terrorists,” Sally Butler said outside Brooklyn Criminal Court after her client, Darius McCollum, was arraigned on charges following his Wednesday arrest.

“Terrorists could do what he did . . . The Port Authority and the police should be asking Darius for help,” Butler said.

McCollum, who has been nabbed 29 times before for transit-related thefts, is set to undergo a psychiatric exam on Rikers Island to determine whether he can testify before a grand jury.