diff options
author | Manuel Palenzuela <manuelpalenzuelamerino@gmail.com> | 2019-06-16 20:26:11 +0200 |
---|---|---|
committer | Manuel Palenzuela <manuelpalenzuelamerino@gmail.com> | 2019-06-16 20:26:11 +0200 |
commit | 8fcf36ba34c6d3a41953c9b3f06df0735d1e6c4e (patch) | |
tree | 24a9db1d34fdba054e7c54c3e08d03e931a4f784 | |
download | trackless-8fcf36ba34c6d3a41953c9b3f06df0735d1e6c4e.tar.gz trackless-8fcf36ba34c6d3a41953c9b3f06df0735d1e6c4e.tar.bz2 trackless-8fcf36ba34c6d3a41953c9b3f06df0735d1e6c4e.zip |
Initial Release
-rw-r--r-- | trackless | 10 | ||||
-rw-r--r-- | trackless.service | 13 |
2 files changed, 23 insertions, 0 deletions
diff --git a/trackless b/trackless new file mode 100644 index 0000000..cd1fd8b --- /dev/null +++ b/trackless @@ -0,0 +1,10 @@ +#!/bin/bash + +IFACES=$(ip -o link show | awk -F': ' '{print $2}') +for IFACE in $IFACES; do + if [ $IFACE != "lo" ]; then + ip link set $IFACE down &>"/dev/null" + macchanger -a $IFACE &>"/dev/null" + ip link set $IFACE up &>"/dev/null" + fi +done diff --git a/trackless.service b/trackless.service new file mode 100644 index 0000000..c572b9e --- /dev/null +++ b/trackless.service @@ -0,0 +1,13 @@ +[Unit] +Description=Change network interfaces mac to a random address. +Wants=network-pre.target +Before=network-pre.target +BindsTo=sys-subsystem-net-devices-wlan0.device +After=sys-subsystem-net-devices-wlan0.device + +[Service] +Type=oneshot +ExecStart=/usr/bin/trackless + +[Install] +WantedBy=multi-user.target |