Skip to content

Commit

Permalink
Updated Extras Menu and wpa_supplicant Options
Browse files Browse the repository at this point in the history
Also renamed "killWpaSupplicant" Function to "wpaSupplicantKill" to more
cosely match the other wpa_supplicant Functions
  • Loading branch information
esc0rtd3w committed Jan 9, 2017
1 parent a80e14d commit 6af9f2e
Showing 1 changed file with 37 additions and 10 deletions.
47 changes: 37 additions & 10 deletions wifi-hacker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
############################################################################

# v1.9
# - Updated Extras Menu. Added wpa_supplicant enable and disable options. Updated wpa_cli options.
# - Fixed and updated Reaver output post screen that was broken in the last release version.

# v1.8
Expand Down Expand Up @@ -1060,7 +1061,7 @@ showDisclaimer(){
fixAirmonCompat
#startNetworkManager
#killNetworkManager
#killWpaSupplicant
#wpaSupplicantKill
#initMonitorMode
#stopMonitorMode
#checkMultipleAdapters
Expand Down Expand Up @@ -1135,7 +1136,7 @@ isUnreleased(){
fixAirmonCompat
#startNetworkManager
#killNetworkManager
#killWpaSupplicant
#wpaSupplicantKill
#initMonitorMode
#stopMonitorMode
#checkMultipleAdapters
Expand Down Expand Up @@ -2138,12 +2139,12 @@ menuExtras(){
echo ""
echo "4) Change Active Terminal (Switch between Gnome, Konsole, X-Term, and User Selected)"
echo ""
echo "5) Start NetworkManager"
echo "6) Stop NetworkManager"
echo "7) Stop wpa_supplicant"
echo "8) Stop wpa_cli"
echo "5) Start NetworkManager 6) Stop NetworkManager"
echo "7) Enable wpa_supplicant 8) Disable wpa_supplicant"
echo "9) Start wpa_cli 10) Stop wpa_cli"
echo ""
echo "11) Open Interface Options Menu"
echo ""
echo "9) Open Interface Options Menu"
echo ""
echo "R) Return To Previous Menu"
echo ""
Expand Down Expand Up @@ -2189,14 +2190,22 @@ menuExtras(){
;;

"7")
wpa_supplicant stop
wpaSupplicantEnable
;;

"8")
wpa_cli terminate
wpaSupplicantDisable
;;

"9")
wpa_cli start
;;

"10")
wpa_cli terminate
;;

"11")
menuExtrasInterface
;;

Expand Down Expand Up @@ -6447,7 +6456,9 @@ killNetworkManager(){

}

killWpaSupplicant(){
wpaSupplicantKill(){

currentTask="wpaSupplicantKill"

#currentPID=$(ps -A | grep wpa_supplicant | cut -c 1-5)
#killTask=$(kill $currentPID)
Expand All @@ -6461,6 +6472,22 @@ killWpaSupplicant(){

}

wpaSupplicantEnable(){

currentTask="wpaSupplicantEnable"

systemctl enable wpa_supplicant

}

wpaSupplicantDisable(){

currentTask="wpaSupplicantDisable"

systemctl disable wpa_supplicant

}

disableChannelHopping(){

sleep 1
Expand Down

0 comments on commit 6af9f2e

Please sign in to comment.