Open ghost opened 7 years ago
I have determined that if I set the IP dst to a known address the response stimuli are correctly matched. However, I still need to figure out how to get srp1 to catch the response when using broadcast in the IP layer. Any help would be great.
Team,
I am unable to get srp/srp1 to capture the response of the below packet.
p = Ether(dst='ff:ff:ff:ff:ff:ff')/IP(src='1.1.1.1', dst='255.255.255.255')/UDP(sport=53222, dport=2010)/Raw(load=b'{"stuff"}') ans = srp1(p,iface='Bond1')
I can sniff the packets and see the response packet
Packet sent:
[ Ethernet ]
dst= ff:ff:ff:ff:ff:ff src= 11:11:11:11:11:11 type= 0x800
[ IP ]
[ UDP ]
[ Raw ]
Packet response:
[ Ethernet ]
dst= 11:11:11:11:11:11 src= 22:22:22:22:22:22 type= 0x800
[ IP ]
[ UDP ]
[ Raw ]
I assume i am doing something wrong as i do not have issues with srp1 using other protocols. Note I changes ip mac and load info but it is being generated correctly. Anything helps!