pwncollege / intro-to-cybersecurity-dojo

Intro to Cybersecurity
https://dojo.pwn.college/intro-to-cybersecurity/
3 stars 11 forks source link

get_if_hwaddr("eth0") returns MAC address of eth0 outside run environment #17

Closed hidehiroanto closed 1 month ago

hidehiroanto commented 1 month ago

The scapy.get_if_hwaddr("eth0") call here always returns the MAC address of the eth0 interface outside of the run environment. This breaks Level 12 of Intercepting Communication.

Moving it below the scapy.conf.ifaces.reload() line fixes it.

ConnorNelson commented 1 month ago

Thanks!