Sniffing and spoofing network traffic