Hackers can exploit firewalls using various techniques. These techniques include IP spoofing, distributed denial-of-service (DDoS) attacks, phishing, infecting computers with malware and trojans, and exploiting zero-day vulnerabilities.