From c764fdec5307952daa4d38004f6ed32b7966a638 Mon Sep 17 00:00:00 2001 From: Kalani Helekunihi <324833+kalanihelekunihi@users.noreply.github.com> Date: Mon, 12 Jun 2023 15:03:01 -0400 Subject: [PATCH] Update payload.txt --- .../ChangeMacAddress_Linux/payload.txt | 69 ++++++------------- 1 file changed, 21 insertions(+), 48 deletions(-) diff --git a/payloads/library/execution/ChangeMacAddress_Linux/payload.txt b/payloads/library/execution/ChangeMacAddress_Linux/payload.txt index 9dc0515..df7c0f6 100644 --- a/payloads/library/execution/ChangeMacAddress_Linux/payload.txt +++ b/payloads/library/execution/ChangeMacAddress_Linux/payload.txt @@ -11,62 +11,35 @@ REM ########################################### REM Requirements: REM - Permissions -DELAY 1000 -CTRL-ALT t -DELAY 2000 - - -REM #### PERMISSIONS SECTION #### - - REM You need to know the sudo password and replace 'example' with this DEFINE SUDO_PASS example -STRING sudo su -ENTER -DELAY 1000 -STRING SUDO_PASS -ENTER -DELAY 1000 - - -REM #### MAC SECTION #### - - -REM net-tools command -STRING apt install net-tools -ENTER -DELAY 2000 - REM Set here your preferred MAC, you can don't change it remaining with the default value DEFINE NEW_MAC FF:FF:FF:FF:FF:FF +DEFAULT_DELAY 500 +CTRL ALT t +DELAY 2000 + +REM #### PERMISSIONS SECTION #### +STRINGLN sudo su +DELAY 1000 +STRINGLN SUDO_PASS +DELAY 1000 + +REM #### MAC SECTION #### +REM net-tools command +STRINGLN apt install net-tools +DELAY 2000 + REM Get the net interface name -STRING INTERFACE=$(ip route get 8.8.8.8 | awk '{print $5}') -ENTER -DELAY 500 - -STRING ifconfig $INTERFACE down -ENTER -DELAY 500 - -STRING ifconfig $INTERFACE hw ether -STRING NEW_MAC -ENTER -DELAY 500 - -STRING ifconfig $INTERFACE up -ENTER -DELAY 500 - +STRINGLN INTERFACE=$(ip route get 8.8.8.8 | awk '{print $5}') +STRINGLN ifconfig $INTERFACE down +STRINGLN ifconfig $INTERFACE hw ether NEW_MAC +STRINGLN ifconfig $INTERFACE up REM #### REMOVE TRACES #### - - DELAY 2000 -STRING history -c -ENTER - +STRINGLN history -c REM Close shell -STRING exit -ENTER +STRINGLN exit