I'm currently working on a to run after login, which does the following:

1. Bring down WiFi interface
2. Spoof MAC
3. Generate random word
4. Change hostname to random word
3. Bring up WiFi interface
4. Connect to VPN

Should I write it in or ?

Currently written in Bash, but despite the hostname changing successfully when the script runs, running 'hostname' afterwards outputs default hostname...

@syntax
This all can be done in bash much simplier than python (and faster too), so my guess is bash

@nikolal
Thanks, it seems to work well in Bash now. My mistake was not adding permission to execute script, removing sudo from commands and then just executing whole script as sudo. Just need to get the random hostname generation ironed out now.

Sign in to participate in the conversation
Mastodon 🔐 privacytools.io

Fast, secure and up-to-date instance. PrivacyTools provides knowledge and tools to protect your privacy against global mass surveillance.

Website: privacytools.io
Matrix Chat: chat.privacytools.io
Support us on OpenCollective, many contributions are tax deductible!