Scapy is a powerful Python-based interactive packet manipulation program and library. It is able to forge or decode packets of…