O'Reilly logo

Penetration Testing with Perl by Swizec Teller

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Network remapping with packet capture

LibPcap can only be used once per device. If we try to run both the arpspoof.pl tool and our simple HTTP sniffer program, we will notice that we stop responding to the victim's ARP requests. This problem occurs by sniffing with our ARP spoofing program and sending HTTP traffic from our simple HTTP sniffer program from the The application layer section simultaneously. One way we can both perform an ARP spoof and capture HTTP traffic is to simply send a gratuitous ARP reply every few seconds to the target, rather than wait for the target to send us the request. Another way is to programmatically check the packet's contents for the ARP or HTTP traffic and either capture the HTTP traffic or respond to the victim's ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required