Path: blob/master/payloads/extensions/protected_storage_mode.txt
2968 views
EXTENSION PROTECTED_STORAGE_MODE1REM VERSION 1.12REM AUTHOR: Korben34REM_BLOCK5Example hidden storage mode6Forces user to padlock style unlock storage mode by setting7the HOSTs lock keys and pressing the duck button to submit a8combination three times.9The wrong combination will immediately fail silently.10The correct combination will trigger ATTACKMODE STORAGE and LED_G1112TARGET:13Any host that will reflect CAPSLOCK,NUMLOCK, and SCROLLLOCK1415USAGE:16BUTTON_DEF17STORAGE_PASSWORD_CHECK()18END_BUTTON1920CONFIGURATION:21Available combinations provided as DEFINEs below,22change within the STORAGE_PASSWORD_CHECK as desired2324Method of input submission can be changed using SUBMIT_FOR_CHECK25But will obviously convolute combination checks.26END_REM2728REM Combinations provided as defines for convenience (verbosely spaced - DEFINES aren't re-formatted by preprocessor)29DEFINE #ALL_LOCKS_OFF ( ( $_CAPSLOCK_ON == FALSE ) && ( $_NUMLOCK_ON == FALSE ) && ( $_SCROLLLOCK_ON == FALSE ) )30DEFINE #ALL_LOCKS_ON ( ( $_CAPSLOCK_ON == TRUE ) && ( $_NUMLOCK_ON == TRUE ) && ( $_SCROLLLOCK_ON == FALSE ) )3132DEFINE #ONLY_CAPS_ON ( ( $_CAPSLOCK_ON == TRUE ) && ( $_NUMLOCK_ON == FALSE ) && ( $_SCROLLLOCK_ON == FALSE ) )33DEFINE #ONLY_NUM_ON ( ( $_CAPSLOCK_ON == FALSE ) && ( $_NUMLOCK_ON == TRUE ) && ( $_SCROLLLOCK_ON == FALSE ) )34DEFINE #ONLY_SCROLL_ON ( ( $_CAPSLOCK_ON == FALSE ) && ( $_NUMLOCK_ON == FALSE ) && ( $_SCROLLLOCK_ON == TRUE ) )3536DEFINE #ONLY_CAPS_OFF ( ( $_CAPSLOCK_ON == FALSE ) && ( $_NUMLOCK_ON == TRUE ) && ( $_SCROLLLOCK_ON == TRUE ) )37DEFINE #ONLY_NUM_OFF ( ( $_CAPSLOCK_ON == TRUE ) && ( $_NUMLOCK_ON == FALSE ) && ( $_SCROLLLOCK_ON == TRUE ) )38DEFINE #ONLY_SCROLL_OFF ( ( $_CAPSLOCK_ON == TRUE ) && ( $_NUMLOCK_ON == TRUE ) && ( $_SCROLLLOCK_ON == FALSE ) )3940DEFINE #SUBMIT_FOR_CHECK WAIT_FOR_BUTTON_PRESS4142FUNCTION STORAGE_PASSWORD_CHECK()43VAR $ACCEPED = FALSE44LED_R45#SUBMIT_FOR_CHECK4647REM first combination ALL LOCKS OFF48IF #ALL_LOCKS_OFF THEN49STRING .50#SUBMIT_FOR_CHECK5152REM second combination ONLY CAPS ON53IF #ONLY_CAPS_ON THEN54STRING .55#SUBMIT_FOR_CHECK5657REM third combination ONLY NUM ON58IF #ONLY_NUM_ON THEN59$ACCEPTED = TRUE60END_IF61END_IF62END_IF6364IF $ACCEPTED THEN65LED_G66ATTACKMODE STORAGE67END_IF68END_FUNCTION69END_EXTENSION707172