GUID number of windows interface giving error: ValueError: Unknown network interface '{1619EEF1-4D71-4831-87AC-8E5DC3AA516A}'

后端 未结 2 1321
时光取名叫无心
时光取名叫无心 2020-12-22 08:39

Import scapy version 2.4.0. I am only using version 2.4.0 for my project

import scapy.all as scapy
import sys

by using IP address this func

2条回答
  •  再見小時候
    2020-12-22 09:17

    On Windows, you need to provide a complete interface name / object, to be able to sniff on it.

    First, have a look at what is available using IFACES.show() in a Scapy shell.

    Then to get the interface, you can either use:

    • iface = IFACES.dev_from_name("...") (or dev_from_pcapname, dev_from_id... have a look at help(IFACES) to see what’s available)
    • iface = "the full name as printed above"

    Then use it via sniff(iface=iface).

    You could provide the pcap_name, but not the GUID: for instance, it would be something like \\Device\\NPF_{...} rather than just {...}.

    Also, please use scapy 2.4.3rc1 (or at least 2.4.2) to be sure you’re up-to-date

提交回复
热议问题