From 8fcf36ba34c6d3a41953c9b3f06df0735d1e6c4e Mon Sep 17 00:00:00 2001 From: Manuel Palenzuela Date: Sun, 16 Jun 2019 20:26:11 +0200 Subject: Initial Release --- trackless | 10 ++++++++++ trackless.service | 13 +++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 trackless create mode 100644 trackless.service 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 -- cgit 1.4.1