mirror of
https://github.com/hak5/bashbunny-payloads.git
synced 2025-10-29 16:58:25 +00:00
added all auth options
This commit is contained in:
@@ -4,32 +4,42 @@ LED R 0
|
|||||||
# set your keyboard !!
|
# set your keyboard !!
|
||||||
DUCKY_LANG gb
|
DUCKY_LANG gb
|
||||||
|
|
||||||
## add keys for pre 70
|
## wifi ssid
|
||||||
ChromePre70='n'
|
|
||||||
|
|
||||||
WIFI_NAME="xxx"
|
WIFI_NAME="xxx"
|
||||||
##wifi creds
|
##wifi creds
|
||||||
WIFI_USER="xxx" #only used on enterprise
|
WIFI_USER="xxx" #only used on enterprise
|
||||||
WIFI_PASS="xxx"
|
WIFI_PASS="xxx"
|
||||||
|
## wifi annonymous ID
|
||||||
|
WIFI_ANNON=''
|
||||||
#creds to enrol device
|
#creds to enrol device
|
||||||
ENROL_USER="xxx"
|
ENROL_USER="xxx"
|
||||||
ENROL_PASS="xxx"
|
ENROL_PASS="xxx"
|
||||||
|
|
||||||
# change
|
# change
|
||||||
|
EwWEP='n'
|
||||||
EwWPA='n'
|
EwWPA='n'
|
||||||
EwPEAP='n'
|
EwPEAP='n'
|
||||||
EwLEAP='n'
|
EwLEAP='n'
|
||||||
|
EwEAP='n'
|
||||||
|
|
||||||
|
##Authentication method
|
||||||
## ent wifi options
|
# 0: auto 1: EAP_MDS 2: MSCHAP 3: MSCHAPv2
|
||||||
|
# 4: PAP 5: CHAP 6: GTC
|
||||||
|
AuthMethod=0
|
||||||
|
##check wifi cert
|
||||||
checkCERT='n'
|
checkCERT='n'
|
||||||
|
##save wifi creds
|
||||||
|
SaveWIFI='y'
|
||||||
|
# send data to google
|
||||||
sendGoogleData='n'
|
sendGoogleData='n'
|
||||||
|
#wait on device updates
|
||||||
|
WaitForUpdates='y'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##defaults to WPA if more than one wifi type set as 'y'
|
##defaults to WPA if more than one wifi type set as 'y'
|
||||||
EwDEFAULT='n'
|
EwDEFAULT='n'
|
||||||
options=($EwWPA $EwPEAP $EwLEAP);
|
options=($EwWPA $EwPEAP $EwLEAP $EwEAP $EwWEP);
|
||||||
options=(${options[@]/n/})
|
options=(${options[@]/n/})
|
||||||
[[ ${#options[@]} -gt 1 ]] && $EwDEFAULT='y'
|
[[ ${#options[@]} -gt 1 ]] && $EwDEFAULT='y'
|
||||||
|
|
||||||
@@ -68,14 +78,17 @@ keys "TAB" 3
|
|||||||
keys "ENTER"
|
keys "ENTER"
|
||||||
|
|
||||||
##ssid
|
##ssid
|
||||||
sleep 3
|
sleep 2
|
||||||
QUACK STRING $WIFI_NAME
|
QUACK STRING $WIFI_NAME
|
||||||
sleep 1
|
sleep 1
|
||||||
keys "TAB"
|
keys "TAB"
|
||||||
|
|
||||||
## wpa
|
|
||||||
if [ $EwDEFAULT == 'y' ] || [ $EwWPA == 'y' ]; then
|
#wifi security
|
||||||
keys "DOWNARROW" 2
|
## wpa or wep
|
||||||
|
if [ $EwDEFAULT == 'y' ] || [[ $EwWPA == 'y' || $EwWEP == 'y' ]]; then
|
||||||
|
[[ $EwWEP == 'y' ]] && keys "DOWNARROW"
|
||||||
|
[[ $EwWPA == 'y' ]] && keys "DOWNARROW" 2
|
||||||
keys "TAB"
|
keys "TAB"
|
||||||
QUACK STRING $WIFI_PASS
|
QUACK STRING $WIFI_PASS
|
||||||
sleep 1
|
sleep 1
|
||||||
@@ -84,28 +97,42 @@ if [ $EwDEFAULT == 'y' ] || [ $EwWPA == 'y' ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
## enterprise with PEAP
|
## enterprise with PEAP
|
||||||
if [ $EwDEFAULT == 'n' ] && [[ $EwPEAP == 'y' || $EwLEAP == 'y' ]]; then
|
if [ $EwDEFAULT == 'n' ] && [[ $EwPEAP == 'y' || $EwLEAP == 'y' || $EwEAP == 'y' ]]; then
|
||||||
keys "DOWNARROW" 3
|
[[ $EwPEAP == 'y' ]] && keys "DOWNARROW" 1
|
||||||
|
[[ $EwEAP == 'y' ]] && keys "DOWNARROW" 2
|
||||||
keys "TAB"
|
keys "TAB"
|
||||||
keys "DOWNARROW"
|
if [ $EwLEAP == 'y' ]; then
|
||||||
keys "TAB"
|
QUACK STRING $WIFI_USER
|
||||||
### add in the extra keys for leap
|
keys "TAB"
|
||||||
## add vars for types
|
QUACK STRING $WIFI_PASS
|
||||||
keys "DOWNARROW" 2
|
keys "TAB" 2
|
||||||
keys "TAB"
|
## check this line, positive keys correct, might not be for save.
|
||||||
[[ $checkCERT == 'n' ]] && keys "DOWNARROW"
|
[[ $SaveWIFI == 'y' ]] && keys "ENTER"
|
||||||
keys "TAB"
|
keys "TAB" 2
|
||||||
# wifi creds
|
keys "ENTER"
|
||||||
QUACK STRING $WIFI_USER
|
else
|
||||||
keys "TAB"
|
|
||||||
QUACK STRING $WIFI_PASS
|
if [ $AuthMethod != 0 ]; then
|
||||||
sleep 1
|
if [ $AuthMethod == 3 ] && [ $EwPEAP == 'y' ]; then
|
||||||
#save ?
|
keys "DOWNARROW" 2
|
||||||
keys "TAB" 3
|
else
|
||||||
keys "ENTER"
|
keys "DOWNARROW" $AuthMethod
|
||||||
##connect ?
|
fi
|
||||||
keys "TAB" 2
|
fi
|
||||||
QUACK ENTER
|
keys "TAB"
|
||||||
|
[[ $checkCERT == 'n' ]] && keys "DOWNARROW"
|
||||||
|
keys "TAB"
|
||||||
|
# wifi creds
|
||||||
|
QUACK STRING $WIFI_USER
|
||||||
|
keys "TAB"
|
||||||
|
QUACK STRING $WIFI_PASS
|
||||||
|
keys "TAB" 2
|
||||||
|
[[ $WIFI_ANNON != '' ]] && QUACK STRING $WIFI_ANNON
|
||||||
|
keys "TAB"
|
||||||
|
[[ $SaveWIFI == 'y' ]] && keys "ENTER"
|
||||||
|
keys "TAB" 2
|
||||||
|
QUACK ENTER
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## waiting for wifi connection
|
## waiting for wifi connection
|
||||||
@@ -115,33 +142,35 @@ sleep 25
|
|||||||
## main screen starting on Lang button
|
## main screen starting on Lang button
|
||||||
keys "TAB" 2
|
keys "TAB" 2
|
||||||
keys "ENTER"
|
keys "ENTER"
|
||||||
|
|
||||||
# check if need two more tabs?
|
|
||||||
|
|
||||||
keys "TAB" 3
|
keys "TAB" 3
|
||||||
keys "ENTER"
|
keys "ENTER"
|
||||||
|
#waitng on screen change
|
||||||
sleep 2
|
sleep 2
|
||||||
|
|
||||||
##enter TOS
|
##enter TOS
|
||||||
|
|
||||||
keys "TAB" 2
|
keys "TAB" 2
|
||||||
[[ $sendGoogleData == 'n' ]] && keys "ENTER"
|
[[ $sendGoogleData == 'n' ]] && keys "ENTER"
|
||||||
sleep 2
|
|
||||||
keys "TAB" 3
|
keys "TAB" 3
|
||||||
QUACK ENTER
|
QUACK ENTER
|
||||||
### waiting on device
|
### waiting on device
|
||||||
## could be performing updates so will wait for this to finish
|
## could be performing updates so will wait for this to finish
|
||||||
## and continue by moving the switch
|
## and continue by moving the switch or by waiting 10 seconds while it does checks
|
||||||
LED G FAST
|
if [ $WaitForUpdates == 'y' ];then
|
||||||
WAIT
|
LED G FAST
|
||||||
LED R 0
|
WAIT
|
||||||
|
LED R 0
|
||||||
|
else
|
||||||
|
sleep 10
|
||||||
|
fi
|
||||||
########################## enrollment
|
########################## enrollment
|
||||||
|
QUACK ALT-CTRL e
|
||||||
|
## if not previously enrolled, wont show this screen so force it
|
||||||
|
sleep 2
|
||||||
QUACK STRING $ENROL_USER
|
QUACK STRING $ENROL_USER
|
||||||
sleep 1
|
|
||||||
keys "ENTER"
|
keys "ENTER"
|
||||||
|
## wait for screen swap
|
||||||
|
sleep 2
|
||||||
## enroll pass
|
## enroll pass
|
||||||
QUACK STRING $ENROL_PASS
|
QUACK STRING $ENROL_PASS
|
||||||
sleep 1
|
|
||||||
QUACK ENTER
|
QUACK ENTER
|
||||||
|
|
||||||
## green light, finished, waiting for user to input asset info
|
## green light, finished, waiting for user to input asset info
|
||||||
|
|||||||
Reference in New Issue
Block a user