Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python: Send IGMP packets with Scapy

Tags:

python

scapy

I would like to send IGMP packets using scapy, specifically IGMP Leave, IGMP Membership report. Is it possible to do so?

UPDATE:

I was able to eventually generate them. Had to do the following:

1) Install scapy v.2.2.0 as it's described here (including minor alteration in setup.py): scapy's contrib is missing after installing scapy on both windows and fedora

2) You need to use file from contribution package (features not added to the core of scapy):

import scapy.contrib.igmp
igmpPacket = scapy.contrib.igmp.IGMP()
like image 776
Konstantin Avatar asked Sep 05 '25 17:09

Konstantin


1 Answers

Yes, it is possible to send IGMP packets. After googling a bit, I came up with some useful links that can help you in some direction. On github there exists a IGMP and IGMPv3 implementation in scapy. Here is an interesting mailing list too. Also, this post has an other interesting stuff related to IGMP.

like image 126
ρss Avatar answered Sep 07 '25 07:09

ρss