Raffy1234 Posted September 29, 2016 Share Posted September 29, 2016 Hey there, I'm quite new to using the rubber ducky and just wanted to ask a general question relating to a command that detects the connected wifi on a windows machine. For example, the code below: REM Windows Wifi Grabber DELAY 2000 GUI r DELAY 200 STRING cmd ENTER DELAY 200 STRING netsh wlan show profile name=RANDOMESSID key=clear ENTER Simply opens up cmd and types that command in. My question is if there is a cmd command that can replace "RANDOMESSID" with a command that automatically replaces that section with the connected wifi ESSID on the machine. Thanks! Quote Link to comment Share on other sites More sharing options...
raz0r Posted October 5, 2016 Share Posted October 5, 2016 https://github.com/hak5darren/USB-Rubber-Ducky/wiki/Payload---WiFi-password-grabber Try there Quote Link to comment Share on other sites More sharing options...
zoro25 Posted October 11, 2016 Share Posted October 11, 2016 (edited) Darren has it in his code , however netsh wlan sh net mode=bssid should do the same thing I think. Just take SSID 1 and store it as a variable to be later used, or select string if you want to directly grab the text from the output Something like $ConnectedSSID= netsh wlan sh net mode=bssid $Output= $ConnectedSSID| Select-String -Pattern 'SSID 1 :' $Output -replace 'SSID 1 :' or look at using a regex. By the way I'm using Powershell above as Darren does in his script, is there a reason why you are sticking to Command only? Edited October 11, 2016 by zoro25 Quote Link to comment Share on other sites More sharing options...
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.