python 2.7 - scapy send(packet) is not working on one NIC windows -


i have windows 7 64-bit python 2.7 running on it. have latest version of scapy 2.3.3 windows. trying send packets via scapy , capture on wireshark. have 2 nics 1 of has static ip , other dynamic. on nic having dynamic ip able generate traffic via scapy , capture it, cannot capture packets on nic static ip. although scapy says packet sent. unable capture it.

by selecting correct interface able solve problem. check available interfaces open cmd , type 'ipconfig /all'. show available interfaces. while generating traffic via scapy give name of interface through traffic supposed go. e.g.

send(ip(dst="xx.xx.xx.xx", src="xx.xx.xx.xx")/tcp(), iface="eth0") 

windows has different names of interfaces. name of interface mentioned in front of description when 'ipconfig /all' used.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -