-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path1_changemacs.sh
68 lines (49 loc) · 1.4 KB
/
1_changemacs.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#! /bin/bash
##############################################
#
#This is a macchanger script, it's very basic
#so far, meant for spoofing mac's on kali
#please use it for legitimate purposes :)
#and have a nice day!
#
###############################################
###TELL USER WHAT INTERFACES ARE AVAILABLE
###THEN ASK WHICH TO USE
ifconfig -a
echo "This script is to change mac address on specified interface"
echo "Scroll up to see interfaces"
echo "Which interface do you want to change and start monitoring on?"
read SPECINTERFACE
echo "Do you want to use a (R)andom mac or (Y)our choice of mac's?"
read MACCHOICE
case $MACCHOICE in
[rR] )
echo "We will use a random mac address then"
ifconfig $SPECINTERFACE down
macchanger -r $SPECINTERFACE
ifconfig $SPECINTERFACE UP
airmon-ng start $SPECINTERFACE
ifconfig mon0 down
macchanger -r $SPECINTERFACE
ifconfig mon0 up
echo "Monitor mode enabled on mon0 and macs changed for mon0 and $SPECINTERFACE"
sleep 10
;;
[yY] )
echo "We will use your specified mac address then"
echo "What is your chosen mac address to spoof?"
echo "(IE xx:xx:xx:xx:xx:xx)"
read USERMAC
ifconfig $SPECINTERFACE down
macchanger -m $USERMAC $SPECINTERFACE
ifconfig $SPECINTERFACE up
airmon-ng start $SPECINTERFACE
ifconfig mon0 down
macchanger -m $USERMAC mon0
ifconfig mon0 up
;;
esac
ifconfig -a
echo "Macs have been changed on $SPECINTERFACE and mon0"
echo "Happy pentesting!!!"
sleep 15