Nov-10-2022, 07:09 PM
(This post was last modified: Nov-10-2022, 07:09 PM by JohnnyCoffee.)
I'm using the uuid module to try to capture the source mac address ( cleinte ). Using the code below locally I can get the source mac address (local device), but when I remotely run the destination mac address is captured, (I believe it is from the remote device)? I know that the place where the mac addresses are processed (from source to destination), in the TCP/IP protocol stack, is in the Data Link layer. But how do I be able to get the Source Mac Address ?
import uuid, re print (':'.join(re.findall('..', '%012x' % uuid.getnode())))