Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to change MAC on vlan addresses, raspberry pi os #111

Open
lukzard opened this issue Apr 8, 2022 · 0 comments
Open

Trying to change MAC on vlan addresses, raspberry pi os #111

lukzard opened this issue Apr 8, 2022 · 0 comments

Comments

@lukzard
Copy link

lukzard commented Apr 8, 2022

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 <module>
    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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant