Skip to content

Instantly share code, notes, and snippets.

@gerardo-junior
Created October 5, 2021 03:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gerardo-junior/bb7eb26591f09ec0b1696e65fd1dfbc7 to your computer and use it in GitHub Desktop.
Save gerardo-junior/bb7eb26591f09ec0b1696e65fd1dfbc7 to your computer and use it in GitHub Desktop.
/etc/systemd/system/macspoof@.service
[Unit]
Description=macchanger on %I
Wants=network-pre.target
Before=network-pre.target
BindsTo=sys-subsystem-net-devices-%i.device
After=sys-subsystem-net-devices-%i.device
[Service]
ExecStart=/usr/bin/macchanger -r %I
Type=oneshot
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment