Path: blob/master/payloads/library/execution/ChangeMacAddress_Linux/payload.txt
2971 views
1REM ###########################################2REM # |3REM # Title : Change Linux MAC Address |4REM # Author : Aleff |5REM # Version : 1.0 |6REM # Category : Execution |7REM # Target : Linux |8REM # |9REM ###########################################1011REM Requirements:12REM - Permissions1314DELAY 100015CTRL-ALT t16DELAY 2000171819REM #### PERMISSIONS SECTION ####202122REM You need to know the sudo password and replace 'example' with this23DEFINE SUDO_PASS example2425STRING sudo su26ENTER27DELAY 100028STRING SUDO_PASS29ENTER30DELAY 1000313233REM #### MAC SECTION ####343536REM net-tools command37STRING apt install net-tools38ENTER39DELAY 20004041REM Set here your preferred MAC, you can don't change it remaining with the default value42DEFINE NEW_MAC FF:FF:FF:FF:FF:FF4344REM Get the net interface name45STRING INTERFACE=$(ip route get 8.8.8.8 | awk '{print $5}')46ENTER47DELAY 5004849STRING ifconfig $INTERFACE down50ENTER51DELAY 5005253STRING ifconfig $INTERFACE hw ether54STRING NEW_MAC55ENTER56DELAY 5005758STRING ifconfig $INTERFACE up59ENTER60DELAY 500616263REM #### REMOVE TRACES ####646566DELAY 200067STRING history -c68ENTER6970REM Close shell71STRING exit72ENTER737475