feross / feross/SpoofMAC

Trying to change MAC on vlan addresses, raspberry pi os

Open
#111 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
3.2k
Forks
277
PR merge metrics
No merged PRs in 30d

Description

And fails... apparently eth0 and wlan0 are seen correctly, then all virtual lans on top of eth0 of type VLAN fail...

Should this work? Thanks,

Here's what i see when listing:

```
pi@raspberrypi:~ $ spoof-mac list
- "ether" on device "eth0" with MAC address 3c:18:a0:53:bc:05 currently set to link/ether 3c:18:a0:53:bc:05
- "" on device "wlan0" currently set to link/ether e4:5f:01:8b:90:47
Traceback (most recent call last):
File "/home/pi/.local/bin/spoof-mac", line 138, in
sys.exit(main(arguments, root_or_admin))
File "/home/pi/.local/bin/spoof-mac", line 76, in main
list_interfaces(args, spoofer)
File "/home/pi/.local/bin/spoof-mac", line 56, in list_interfaces
for port, device, address, current_address in spoofer.find_interfaces(targets=targets):
File "/home/pi/.local/lib/python3.9/site-packages/spoofmac/interface.py", line 87, in find_interfaces
current_address = self.get_interface_mac(adapter_name)
File "/home/pi/.local/lib/python3.9/site-packages/spoofmac/interface.py", line 49, in get_interface_mac
result = subprocess.check_output(["ip", "link", "show", device], stderr=subprocess.STDOUT, universal_newlines=True)
File "/usr/lib/python3.9/subprocess.py", line 424, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ip', 'link', 'show', 'eth0.2@eth0']' returned non-zero exit status 1.
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.