This Bash script automates the process of changing the MAC address on a network interface (specifically en0 on macOS, typically used for Wi-Fi) and attempts to activate a 20-minute Wi-Fi session, probably on an American Airlines flight. Here's a detailed breakdown:
-
Root Check:
- Exits if not run as root to ensure necessary permissions.
-
Dependency Check:
- Checks for the jq command, used for parsing JSON data.
-
MAC Address Manipulation:
- Defines generate_valid_mac function for new MAC addresses.