Path: blob/master/payloads/examples/Holding Keys/Holding-Keys-example1.txt
2968 views
REM Example HOLD and RELEASE1REM Target: Windows23ATTACKMODE HID STORAGE4DELAY 200056REM Open Powershell7GUI r8DELAY 10009STRING powershell10ENTER1112REM Hide Powershell Window13DELAY 200014ALT SPACE15DELAY 10016m17DELAY 10018HOLD DOWNARROW19DELAY 300020RELEASE DOWNARROW21ENTER2223REM Run desired commands in obfuscated powershell window24STRING tree c:\25ENTER2627REM This example payload targets Windows systems.28REM Using the GUI r key combo to open the Run dialog, a powershell window will be opened.29REM The ALT SPACE key combo opens the window menu of the currently active window (in this case, the powershell window), followed by the m key to select the Move command.30REM The DOWNARROW is held for 3 seconds, as specified by the DELAY 3000 command, before being released — thus hiding the contents of the powershell window below the screen.31REM The benign tree c:\ command is run, producing a graphical directory structure of the disk.3233