I have this configuration


I am on the compromised router, and I want to intercept/block the packets that come from G1,edit them , and forward on Gateway 2,acting as a MiTM. I know that I can edit packets with Scapy, but how I can stop them to reach the original destination?

Gateway 1 and 2 are on Debian "squeeze". The Router has Kali.


Simply drop the packages you don't want to forward.

Routing is an active task, and the router has to decide what to do with each packet. Scapy itself doesn't allow dropping, because it's simply a passive sniffer. You can either use the python-iptables package to drop the packets, or use a different MitM solution altogether.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.