Recommended Posts

Beg stole and borrowed from other peoples code and amended to get to what I wanted, most of the code is form Darren Kitchen's 15 second password hack for bits around how to use Twin Ducky and how to keep use and save files whilst mounting the Ducky as a USB storage device... It's not perfect but hits the mark for what I currently need. To summarise:

* It creates a .BAT file in %TEMP% which finds the assigned drive of the DUCKY

* It then uses Select-Stringcmdlet to get the password for the wireless networks on the target machine

* Saves this (albeit slightly messily) to Output.txt on the Ducky

* Finally gets rid of the TEMP file and history in the run command window

Look forward to comments and anything anyone can suggest to speed this up and make it better.

Share this post

Link to post

Share on other sites

Audie2180, did you just copy the .ps1 to the ducky and then call it with the inject.bin compile? I don't see the file ever execute in the %TEMP% directory. I know there is a cleanup but I am not getting an output.txt on the ducky. Thank you, great info.