Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- clear
- RED=$(tput setaf 1 && tput bold)
- GREEN=$(tput setaf 2 && tput bold)
- STAND=$(tput sgr0)
- BLUE=$(tput setaf 6 && tput bold)
- echo $RED"##################################################"
- echo $RED"## This script will Help Prep Your ##"
- echo $RED"## Wireless Card for Penetration Testing ##"
- echo $RED"## We are going to Spoof your MACs and ##"
- echo $RED"## Optionally Place Your Card into Monitor Mode ##"
- echo $RED"##################################################"
- echo
- echo "Press ENTER to Continue to the MAC Address Spoofing"
- echo "Press 'm' to Place Interface into Monitor Mode as Well"
- read choice
- echo $STAND""
- if [[ $choice = "" ]]; then
- echo
- iwconfig
- echo
- echo $RED"What is your WLAN device?"
- echo $STAND ""
- read IFACE
- echo $RED"Please Specify the MAC to be Spoofed: xx:xx:xx:xx:xx:xx"
- echo $RED"Enter R for random MAC"
- echo $STAND ""
- read MMAC
- if [ ${MMAC,,} = "r" ]; then
- ifconfig $IFACE down
- macchanger -r $IFACE
- ifconfig $IFACE up
- else
- ifconfig $IFACE down
- macchanger -m $MMAC $IFACE
- ifconfig $IFACE up
- fi
- if [ ${MMAC,,} = "r" ]; then
- echo $BLUE"-""Your MAC has been set to a Random Value"
- else
- echo $BLUE"-""Your MAC has been set to $MMAC"
- fi
- else
- if [ ${choice,,} = "m" ]; then
- echo
- iwconfig
- echo
- echo $RED"What is your WLAN device?"
- echo $STAND ""
- read IFACE
- echo $RED"Please Specify the MAC to be Spoofed: xx:xx:xx:xx:xx:xx"
- echo $RED"Enter R for random MAC"
- echo $STAND ""
- read MMAC
- if [ ${MMAC,,} = "r" ]; then
- ifconfig $IFACE down
- macchanger -r $IFACE
- ifconfig $IFACE up
- airmon-ng start $IFACE
- echo
- sleep 1
- ifconfig mon0 down
- macchanger -r mon0
- ifconfig mon0 up
- else
- ifconfig $IFACE down
- macchanger -m $MMAC $IFACE
- ifconfig $IFACE up
- airmon-ng start $IFACE
- echo
- sleep 1
- ifconfig mon0 down
- macchanger -m $MMAC mon0
- ifconfig mon0 up
- fi
- if [ ${MMAC,,} = "r" ]; then
- echo $BLUE"-""Your MAC has been set to a Random Value"
- else
- echo $BLUE"-""Your MAC has been set to $MMAC"
- fi
- echo $BLUE"-""$IFACE Has Been Placed Into Monitor Mode"
- echo $STAND ""
- fi
- fi
- echo $STAND""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement