Ettercap is primarily focused on network attacks and monitoring within local networks, making it suitable for penetration testing, while Wireshark is a more versatile tool for in-depth packet analysis across various network types, making it ideal for troubleshooting and forensic analysis.