This module exploits a login/csrf check bypass vulnerability on WiFi Pineapples version 2.0 <= pineapple < 2.4. These devices may typically be identified by their SSID beacons of 'Pineapple5_....'; Provided as part of the TospoVirus workshop at DEFCON23.
Unix
cmd
To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':
msf > use exploit/linux/http/pineapple_bypass_cmdinject
msf exploit(pineapple_bypass_cmdinject) > show targets
...targets...
msf exploit(pineapple_bypass_cmdinject) > set TARGET < target-id >
msf exploit(pineapple_bypass_cmdinject) > show options
...show and set options...
msf exploit(pineapple_bypass_cmdinject) > exploit
Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.
– Jim O’Gorman | President, Offensive Security