June 2017
Intermediate to advanced
446 pages
10h 10m
English
In this example for the Scapy usage, let's look at how we can construct our packet to conduct some of the class attacks, such as Ping of Death (https://en.wikipedia.org/wiki/Ping_of_death) and Land Attack (https://en.wikipedia.org/wiki/Denial-of-service_attack). This is perhaps something that you previously paid a commercial software for penetration testing. With Scapy, you can conduct the test while maintaining full control as well as adding more tests in the future.
The first attack basically sends the destination host with a bogus IP header, such as the length of 2 and the IP version 3:
def malformed_packet_attack(host): send(IP(dst=host, ihl=2, version=3)/ICMP())
The Ping of Death attack consists of the regular ICMP packet ...
Read now
Unlock full access