Scapy List interfaces
examples/scapy/list_interfaces.py
import scapy.all as scapy interfaces = scapy.get_if_list() print(interfaces)
['lo', 'enp0s31f6', 'wlp3s0', 'enx0050b6e59f0e']
import scapy.all as scapy interfaces = scapy.get_if_list() print(interfaces)
['lo', 'enp0s31f6', 'wlp3s0', 'enx0050b6e59f0e']