Change MAC Address Linux - aleff-github/my-flipper-shits GitHub Wiki

Change Linux MAC Address Documentation

This script changes the MAC address of a Linux machine using the DuckyScript language.

Script Information

  • Title: Change Linux MAC Address
  • Author: Aleff
  • Version: 1.0
  • Category: Execution
  • Target: Linux

Requirements

  • Permissions to run commands with sudo.

Script Execution

  1. The script waits for 1 second (1000 milliseconds) using the DELAY command.
  2. The script opens a terminal window by simulating the keyboard shortcut CTRL-ALT t using the CTRL-ALT command and the t character.
  3. The script waits for 2 seconds (2000 milliseconds) using the DELAY command.

Permissions Section

  1. The script simulates typing the command sudo su to gain root access.
  2. The script waits for 1 second (1000 milliseconds) using the DELAY command.
  3. The script types the SUDO_PASS variable value (which is defined as "example") to enter the sudo password.
  4. The script waits for 1 second (1000 milliseconds) using the DELAY command.

MAC Section

  1. The script simulates typing the command apt install net-tools to install the net-tools package.
  2. The script waits for 2 seconds (2000 milliseconds) using the DELAY command.
  3. The script defines the NEW_MAC variable as the preferred MAC address to set.
  4. The script simulates typing the command to get the net interface name by running ip route get 8.8.8.8 | awk '{print $5}'.
  5. The script waits for 500 milliseconds using the DELAY command.
  6. The script simulates typing the command ifconfig $INTERFACE down to take down the network interface.
  7. The script waits for 500 milliseconds using the DELAY command.
  8. The script simulates typing the command ifconfig $INTERFACE hw ether NEW_MAC to set the new MAC address.
  9. The script waits for 500 milliseconds using the DELAY command.
  10. The script simulates typing the command ifconfig $INTERFACE up to bring up the network interface.
  11. The script waits for 500 milliseconds using the DELAY command.

Remove Traces Section

  1. The script waits for 2 seconds (2000 milliseconds) using the DELAY command.
  2. The script simulates typing the command history -c to remove the command history.
  3. The script simulates typing the command exit to close the terminal window.