From 170b646e6c5c65b087d868456c27fd2ea68b2d18 Mon Sep 17 00:00:00 2001 From: ariakis Date: Wed, 11 Dec 2019 02:01:06 +0000 Subject: [PATCH] ui formatting changes --- modules/change_mac | 15 +++++++++------ modules/check_macs | 6 ++++-- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/modules/change_mac b/modules/change_mac index 0f917a8..fed3f4b 100755 --- a/modules/change_mac +++ b/modules/change_mac @@ -5,31 +5,34 @@ then interface=$2 interfacemon="${interface}mon" - echo "" + ifconfig $interface down dhclient -r $interface &> /dev/null # release ip if [ "$1" = "reset" ]; then - echo resetting + echo 'Resetting MAC address...' + echo macchanger -p $interface + elif [ "$1" = "random" ]; then - echo randomising + echo 'Randomising MAC address...' macchanger -r $interface + else macchanger -m $1 $interface # change current device mac to input mac + fi ifconfig $interface up dhclient $interface &> /dev/null # get a new ip - echo "New mac: $1" - ifconfig $interface | grep inet - echo "" else + echo "" echo "Incorrect number of arguments!" echo "" echo "Useage:" echo "$0 {mac address} {interface}" echo "" + fi diff --git a/modules/check_macs b/modules/check_macs index f3d0106..45d5d5a 100755 --- a/modules/check_macs +++ b/modules/check_macs @@ -8,8 +8,10 @@ then pwd #for i in {1..number of macs} i=1 + + echo "Starting! Testing $maccount macs..." + while [ $i -le $maccount ]; do - echo "Starting! Testing $maccount macs..." echo "" # Get next mac address @@ -17,7 +19,7 @@ then # change mac address echo -n "Changing MAC... " - sudo modules/change_mac $curmac $interface + sudo modules/change_mac $curmac $interface &> /dev/null echo "Done." # Tell the user whats happening