fix root check of fluxion and remove all of the sudo references
This commit is contained in:
parent
5cb65dc93b
commit
159890982c
78
fluxion
78
fluxion
|
@ -6,8 +6,10 @@
|
|||
## ##
|
||||
################################
|
||||
|
||||
|
||||
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
echo -e "\e[1;31mYou don't have admin privilegies, execute the script as root."$transparent""
|
||||
exit 1
|
||||
fi
|
||||
|
||||
clear
|
||||
##################################### < CONFIGURATION > #####################################
|
||||
|
@ -49,7 +51,7 @@ function conditional_clear() {
|
|||
}
|
||||
|
||||
function airmon {
|
||||
sudo chmod +x airmon
|
||||
chmod +x airmon
|
||||
}
|
||||
airmon
|
||||
# Check Updates
|
||||
|
@ -272,12 +274,6 @@ function mostrarheader(){
|
|||
|
||||
############################################## < START > ##############################################
|
||||
|
||||
|
||||
if ! [ $(id -u) = "0" ] 2>/dev/null; then
|
||||
echo -e "\e[1;31mYou don't have admin privilegies"$transparent""
|
||||
exit
|
||||
fi
|
||||
|
||||
# Check requirements
|
||||
function checkdependences {
|
||||
|
||||
|
@ -888,11 +884,11 @@ Unknown option. Choose again"; conditional_clear ;;
|
|||
}
|
||||
|
||||
function wifi-phisher {
|
||||
sudo python wifiphisher.py
|
||||
python wifiphisher.py
|
||||
}
|
||||
|
||||
function wifite {
|
||||
sudo python wifite.py
|
||||
python wifite.py
|
||||
}
|
||||
|
||||
function wps {
|
||||
|
@ -922,62 +918,62 @@ echo "+ Help and Support from Aanarchyy"
|
|||
sleep 3
|
||||
clear
|
||||
|
||||
sudo rfkill unblock all
|
||||
rfkill unblock all
|
||||
|
||||
#####Functions for Monitor Mode####
|
||||
|
||||
enable_mon_mode_1()
|
||||
{
|
||||
echo "Enabling Monitor Mode on $WIFI_MONITOR1"
|
||||
sudo ifconfig $WIFI_MONITOR1 down
|
||||
ifconfig $WIFI_MONITOR1 down
|
||||
sleep 1
|
||||
sudo iwconfig $WIFI_MONITOR1 mode monitor
|
||||
iwconfig $WIFI_MONITOR1 mode monitor
|
||||
sleep 1
|
||||
sudo ifconfig $WIFI_MONITOR1 up
|
||||
ifconfig $WIFI_MONITOR1 up
|
||||
echo "Monitor Mode Enabled"
|
||||
}
|
||||
|
||||
enable_mon_mode_2()
|
||||
{
|
||||
echo "Enabling Monitor Mode on $WIFI_MONITOR2"
|
||||
sudo ifconfig $WIFI_MONITOR2 down
|
||||
ifconfig $WIFI_MONITOR2 down
|
||||
sleep 1
|
||||
sudo iwconfig $WIFI_MONITOR2 mode monitor
|
||||
iwconfig $WIFI_MONITOR2 mode monitor
|
||||
sleep 1
|
||||
sudo ifconfig $WIFI_MONITOR2 up
|
||||
ifconfig $WIFI_MONITOR2 up
|
||||
echo "Monitor Mode Enabled"
|
||||
}
|
||||
|
||||
enable_mon_mode_3()
|
||||
{
|
||||
echo "Enabling Monitor Mode on $WIFI_MONITOR3"
|
||||
sudo ifconfig $WIFI_MONITOR3 down
|
||||
ifconfig $WIFI_MONITOR3 down
|
||||
sleep 1
|
||||
sudo iwconfig $WIFI_MONITOR3 mode monitor
|
||||
iwconfig $WIFI_MONITOR3 mode monitor
|
||||
sleep 1
|
||||
sudo ifconfig $WIFI_MONITOR3 up
|
||||
ifconfig $WIFI_MONITOR3 up
|
||||
echo "Monitor Mode Enabled"
|
||||
}
|
||||
|
||||
enable_mon_mode_4()
|
||||
{
|
||||
echo "Enabling Monitor Mode on $WIFI_MONITOR4"
|
||||
sudo ifconfig $WIFI_MONITOR4 down
|
||||
ifconfig $WIFI_MONITOR4 down
|
||||
sleep 1
|
||||
sudo iwconfig $WIFI_MONITOR4 mode monitor
|
||||
iwconfig $WIFI_MONITOR4 mode monitor
|
||||
sleep 1
|
||||
sudo ifconfig $WIFI_MONITOR4 up
|
||||
ifconfig $WIFI_MONITOR4 up
|
||||
echo "Monitor Mode Enabled"
|
||||
}
|
||||
|
||||
enable_mon_mode_5()
|
||||
{
|
||||
echo "Enabling Monitor Mode on $WIFI_MONITOR5"
|
||||
sudo ifconfig $WIFI_MONITOR5 down
|
||||
ifconfig $WIFI_MONITOR5 down
|
||||
sleep 1
|
||||
sudo iwconfig $WIFI_MONITOR5 mode monitor
|
||||
iwconfig $WIFI_MONITOR5 mode monitor
|
||||
sleep 1
|
||||
sudo ifconfig $WIFI_MONITOR5 up
|
||||
ifconfig $WIFI_MONITOR5 up
|
||||
echo "Monitor Mode Enabled"
|
||||
}
|
||||
|
||||
|
@ -988,55 +984,55 @@ echo "Monitor Mode Enabled"
|
|||
mac_change_1()
|
||||
{
|
||||
echo "Setting the MAC Address on $WIFI_MONITOR1"
|
||||
sudo ifconfig $WIFI_MONITOR1 down
|
||||
ifconfig $WIFI_MONITOR1 down
|
||||
sleep 3
|
||||
macchanger $WIFI_MONITOR1 -m 02:22:88:29:EC:6F
|
||||
sleep 3
|
||||
sudo ifconfig $WIFI_MONITOR1 up
|
||||
ifconfig $WIFI_MONITOR1 up
|
||||
echo "MAC Changed"
|
||||
}
|
||||
|
||||
mac_change_2()
|
||||
{
|
||||
echo "Setting the MAC Address on $WIFI_MONITOR2"
|
||||
sudo ifconfig $WIFI_MONITOR2 down
|
||||
ifconfig $WIFI_MONITOR2 down
|
||||
sleep 3
|
||||
macchanger $WIFI_MONITOR2 -m 02:22:88:29:EC:6F
|
||||
sleep 3
|
||||
sudo ifconfig $WIFI_MONITOR2 up
|
||||
ifconfig $WIFI_MONITOR2 up
|
||||
echo "MAC Changed"
|
||||
}
|
||||
|
||||
mac_change_3()
|
||||
{
|
||||
echo "Setting the MAC Address on $WIFI_MONITOR3"
|
||||
sudo ifconfig $WIFI_MONITOR3 down
|
||||
ifconfig $WIFI_MONITOR3 down
|
||||
sleep 3
|
||||
macchanger $WIFI_MONITOR3 -m 02:22:88:29:EC:6F
|
||||
sleep 3
|
||||
sudo ifconfig $WIFI_MONITOR3 up
|
||||
ifconfig $WIFI_MONITOR3 up
|
||||
echo "MAC Changed"
|
||||
}
|
||||
|
||||
mac_change_4()
|
||||
{
|
||||
echo "Setting the MAC Address on $WIFI_MONITOR4"
|
||||
sudo ifconfig $WIFI_MONITOR4 down
|
||||
ifconfig $WIFI_MONITOR4 down
|
||||
sleep 3
|
||||
macchanger $WIFI_MONITOR4 -m 02:22:88:29:EC:6F
|
||||
sleep 3
|
||||
sudo ifconfig $WIFI_MONITOR4 up
|
||||
ifconfig $WIFI_MONITOR4 up
|
||||
echo "MAC Changed"
|
||||
}
|
||||
|
||||
mac_change_5()
|
||||
{
|
||||
echo "Setting the MAC Address on $WIFI_MONITOR5"
|
||||
sudo ifconfig $WIFI_MONITOR5 down
|
||||
ifconfig $WIFI_MONITOR5 down
|
||||
sleep 3
|
||||
macchanger $WIFI_MONITOR5 -m 02:22:88:29:EC:6F
|
||||
sleep 3
|
||||
sudo ifconfig $WIFI_MONITOR5 up
|
||||
ifconfig $WIFI_MONITOR5 up
|
||||
echo "MAC Changed"
|
||||
}
|
||||
|
||||
|
@ -1048,11 +1044,11 @@ echo "MAC Changed"
|
|||
scan_for_targets()
|
||||
{
|
||||
|
||||
sudo ifconfig $WIFI_MONITOR1 down
|
||||
sudo iwconfig $WIFI_MONITOR1 mode managed
|
||||
sudo ifconfig $WIFI_MONITOR1 up
|
||||
ifconfig $WIFI_MONITOR1 down
|
||||
iwconfig $WIFI_MONITOR1 mode managed
|
||||
ifconfig $WIFI_MONITOR1 up
|
||||
|
||||
eval $(sudo iwlist $WIFI_MONITOR1 scan | awk '/Address|ESSID|Channel:/' | sed 's/"//g' | sed 's/ Cell 01 - Address: /BSSID1=/g' | sed 's/ Cell 02 - Address: /BSSID2=/g' | sed 's/ Cell 03 - Address: /BSSID3=/g' | sed 's/ Cell 04 - Address: /BSSID4=/g' | sed 's/ Cell 05 - Address: /BSSID5=/g' | sed 's/ Cell 06 - Address: /BSSID6=/g' | sed 's/ Cell 07 - Address: /BSSID7=/g' | sed 's/ Cell 08 - Address: /BSSID8=/g' | sed 's/ Cell 09 - Address: /BSSID9=/g' | sed 's/ Cell 10 - Address: /BSSID10=/g' | sed 's/ Cell 11 - Address: /BSSID11=/g' | sed 's/ Cell 12 - Address: /BSSID12=/g' | sed 's/ Cell 13 - Address: /BSSID13=/g' | sed 's/ Cell 14 - Address: /BSSID14=/g' | sed 's/ Cell 15 - Address: /BSSID15=/g' | sed 's/ Cell 16 - Address: /BSSID16=/g' | sed 's/ Cell 17 - Address: /BSSID17=/g' | sed 's/ Cell 18 - Address: /BSSID18=/g' | sed 's/ Cell 19 - Address: /BSSID19=/g' | sed 's/ Cell 20 - Address: /BSSID20=/g' | sed '2s/ Channel:/CHANNEL1=/g' | sed '5s/ Channel:/CHANNEL2=/g' | sed '8s/ Channel:/CHANNEL3=/g' | sed '11s/ Channel:/CHANNEL4=/g' | sed '14s/ Channel:/CHANNEL5=/g' | sed '17s/ Channel:/CHANNEL6=/g' | sed '20s/ Channel:/CHANNEL7=/g' | sed '23s/ Channel:/CHANNEL8=/g' | sed '26s/ Channel:/CHANNEL9=/g' | sed '29s/ Channel:/CHANNEL10=/g' | sed '32s/ Channel:/CHANNEL11=/g' |sed '35s/ Channel:/CHANNEL12=/g' | sed '38s/ Channel:/CHANNEL13=/g' | sed '41s/ Channel:/CHANNEL14=/g' | sed '44s/ Channel:/CHANNEL15=/g' | sed '47s/ Channel:/CHANNEL16=/g' | sed '50s/ Channel:/CHANNEL17=/g' | sed '53s/ Channel:/CHANNEL18=/g' | sed '56s/ Channel:/CHANNEL19=/g' | sed '59s/ Channel:/CHANNEL20=/g' | sed '3s/ ESSID:/ESSID1=/g' | sed '6s/ ESSID:/ESSID2=/g' | sed '9s/ ESSID:/ESSID3=/g' | sed '12s/ ESSID:/ESSID4=/g' | sed '15s/ ESSID:/ESSID5=/g' | sed '18s/ ESSID:/ESSID6=/g' | sed '21s/ ESSID:/ESSID7=/g' | sed '24s/ ESSID:/ESSID8=/g' | sed '27s/ ESSID:/ESSID9=/g' | sed '30s/ ESSID:/ESSID10=/g' | sed '33s/ ESSID:/ESSID11=/g' | sed '36s/ ESSID:/ESSID12=/g' | sed '39s/ ESSID:/ESSID13=/g' | sed '42s/ ESSID:/ESSID14=/g' | sed '45s/ ESSID:/ESSID15=/g' | sed '48s/ ESSID:/ESSID16=/g' | sed '51s/ ESSID:/ESSID17=/g' | sed '54s/ ESSID:/ESSID18=/g' | sed '57s/ ESSID:/ESSID19=/g' | sed '60s/ ESSID:/ESSID20=/g')
|
||||
eval $(iwlist $WIFI_MONITOR1 scan | awk '/Address|ESSID|Channel:/' | sed 's/"//g' | sed 's/ Cell 01 - Address: /BSSID1=/g' | sed 's/ Cell 02 - Address: /BSSID2=/g' | sed 's/ Cell 03 - Address: /BSSID3=/g' | sed 's/ Cell 04 - Address: /BSSID4=/g' | sed 's/ Cell 05 - Address: /BSSID5=/g' | sed 's/ Cell 06 - Address: /BSSID6=/g' | sed 's/ Cell 07 - Address: /BSSID7=/g' | sed 's/ Cell 08 - Address: /BSSID8=/g' | sed 's/ Cell 09 - Address: /BSSID9=/g' | sed 's/ Cell 10 - Address: /BSSID10=/g' | sed 's/ Cell 11 - Address: /BSSID11=/g' | sed 's/ Cell 12 - Address: /BSSID12=/g' | sed 's/ Cell 13 - Address: /BSSID13=/g' | sed 's/ Cell 14 - Address: /BSSID14=/g' | sed 's/ Cell 15 - Address: /BSSID15=/g' | sed 's/ Cell 16 - Address: /BSSID16=/g' | sed 's/ Cell 17 - Address: /BSSID17=/g' | sed 's/ Cell 18 - Address: /BSSID18=/g' | sed 's/ Cell 19 - Address: /BSSID19=/g' | sed 's/ Cell 20 - Address: /BSSID20=/g' | sed '2s/ Channel:/CHANNEL1=/g' | sed '5s/ Channel:/CHANNEL2=/g' | sed '8s/ Channel:/CHANNEL3=/g' | sed '11s/ Channel:/CHANNEL4=/g' | sed '14s/ Channel:/CHANNEL5=/g' | sed '17s/ Channel:/CHANNEL6=/g' | sed '20s/ Channel:/CHANNEL7=/g' | sed '23s/ Channel:/CHANNEL8=/g' | sed '26s/ Channel:/CHANNEL9=/g' | sed '29s/ Channel:/CHANNEL10=/g' | sed '32s/ Channel:/CHANNEL11=/g' |sed '35s/ Channel:/CHANNEL12=/g' | sed '38s/ Channel:/CHANNEL13=/g' | sed '41s/ Channel:/CHANNEL14=/g' | sed '44s/ Channel:/CHANNEL15=/g' | sed '47s/ Channel:/CHANNEL16=/g' | sed '50s/ Channel:/CHANNEL17=/g' | sed '53s/ Channel:/CHANNEL18=/g' | sed '56s/ Channel:/CHANNEL19=/g' | sed '59s/ Channel:/CHANNEL20=/g' | sed '3s/ ESSID:/ESSID1=/g' | sed '6s/ ESSID:/ESSID2=/g' | sed '9s/ ESSID:/ESSID3=/g' | sed '12s/ ESSID:/ESSID4=/g' | sed '15s/ ESSID:/ESSID5=/g' | sed '18s/ ESSID:/ESSID6=/g' | sed '21s/ ESSID:/ESSID7=/g' | sed '24s/ ESSID:/ESSID8=/g' | sed '27s/ ESSID:/ESSID9=/g' | sed '30s/ ESSID:/ESSID10=/g' | sed '33s/ ESSID:/ESSID11=/g' | sed '36s/ ESSID:/ESSID12=/g' | sed '39s/ ESSID:/ESSID13=/g' | sed '42s/ ESSID:/ESSID14=/g' | sed '45s/ ESSID:/ESSID15=/g' | sed '48s/ ESSID:/ESSID16=/g' | sed '51s/ ESSID:/ESSID17=/g' | sed '54s/ ESSID:/ESSID18=/g' | sed '57s/ ESSID:/ESSID19=/g' | sed '60s/ ESSID:/ESSID20=/g')
|
||||
|
||||
wps-wifi-monitor
|
||||
|
||||
|
|
Loading…
Reference in New Issue