Question: Crafting packets with Scapy inside Linux. Craft a tiny fragment using Scapy. RFC 791 states that all hosts must accept packets with minimum 68 bytes.
Crafting packets with Scapy inside Linux. Craft a tiny fragment using Scapy. RFC 791 states that all hosts must accept packets with minimum 68 bytes. This implies that a legitimate fragment can be crafted with 60 bytes of IP header, and 8 bytes of payload resulting in the first 8 bytes of TCP header in the first fragment (aptly named 'tiny fragment') with the remaining going to the next one. This technique can be implemented to evade firewall rules that checks for connection initation only in the first fragment. Write a python script using Scapy to craft and send an IP fragment with TCP as payload. Send the first 8 bytes of the fragment to the two receiving computers.


8 bytes Payload of fragment 2 8 bytes payload of ICMPv6 Payload of fragment 1 ICMPv6 Header IPv6 net packet payload per fragment
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
