Skip to content

Commit 170b646

Browse files
committed
ui formatting changes
1 parent e6a87f1 commit 170b646

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

modules/change_mac

+9-6
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,34 @@ then
55
interface=$2
66
interfacemon="${interface}mon"
77

8-
echo ""
8+
99
ifconfig $interface down
1010
dhclient -r $interface &> /dev/null # release ip
1111

1212
if [ "$1" = "reset" ]; then
13-
echo resetting
13+
echo 'Resetting MAC address...'
14+
echo
1415
macchanger -p $interface
16+
1517
elif [ "$1" = "random" ]; then
16-
echo randomising
18+
echo 'Randomising MAC address...'
1719
macchanger -r $interface
20+
1821
else
1922
macchanger -m $1 $interface # change current device mac to input mac
23+
2024
fi
2125

2226
ifconfig $interface up
2327
dhclient $interface &> /dev/null # get a new ip
2428

25-
echo "New mac: $1"
26-
ifconfig $interface | grep inet
27-
echo ""
2829
else
30+
2931
echo ""
3032
echo "Incorrect number of arguments!"
3133
echo ""
3234
echo "Useage:"
3335
echo "$0 {mac address} {interface}"
3436
echo ""
37+
3538
fi

modules/check_macs

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,18 @@ then
88
pwd
99
#for i in {1..number of macs}
1010
i=1
11+
12+
echo "Starting! Testing $maccount macs..."
13+
1114
while [ $i -le $maccount ]; do
12-
echo "Starting! Testing $maccount macs..."
1315
echo ""
1416

1517
# Get next mac address
1618
curmac=$(head -n $i $1 | tail -n 1)
1719

1820
# change mac address
1921
echo -n "Changing MAC... "
20-
sudo modules/change_mac $curmac $interface
22+
sudo modules/change_mac $curmac $interface &> /dev/null
2123
echo "Done."
2224

2325
# Tell the user whats happening

0 commit comments

Comments
 (0)