diff --git a/payloads/library/general/Win_PoSH_BouncyCoil/OMGCoil.gif b/payloads/library/general/Win_PoSH_BouncyCoil/OMGCoil.gif new file mode 100644 index 0000000..a6ea867 Binary files /dev/null and b/payloads/library/general/Win_PoSH_BouncyCoil/OMGCoil.gif differ diff --git a/payloads/library/general/Win_PoSH_BouncyCoil/payload.txt b/payloads/library/general/Win_PoSH_BouncyCoil/payload.txt new file mode 100644 index 0000000..b12051c --- /dev/null +++ b/payloads/library/general/Win_PoSH_BouncyCoil/payload.txt @@ -0,0 +1,67 @@ +DUCKY_LANG UK +DELAY 2000 +GUI r +DELAY 500 +STRING powershell +ENTER +DELAY 1000 +STRING [void] [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms"); +SHIFT ENTER +STRING Add-Type -Assembly PresentationFramework +REM xml of the wpf xaml code. this is the window to be shown +SHIFT ENTER +STRING [xml]$xaml = '' +SHIFT ENTER +REM the direction the screen is traveling in +STRING $goingRight = $true; +SHIFT ENTER +STRING $goingDown = $true; +SHIFT ENTER +REM get the screen +STRING $Screen = [System.Windows.Forms.Screen]::PrimaryScreen; +SHIFT ENTER +REM create a reader for the xml +STRING $reader = (New-Object System.Xml.XmlNodeReader $xaml) +SHIFT ENTER +REM create the window from the reader +STRING $window = [Windows.Markup.XamlReader]::Load($reader) +SHIFT ENTER +REM add right click to window to close it +STRING $handler = [Windows.Input.MouseButtonEventHandler]{ $Timer.Stop(); $window.Close(); $_.Handled = $true; } +SHIFT ENTER +STRING $window.Add_MouseRightButtonDown($handler); +SHIFT ENTER +REM set the window postion to the center of the screen +STRING $window.Left = ($Screen.Bounds.Width - $window.Width) / 2; +SHIFT ENTER +STRING $window.Top = ($Screen.Bounds.Height - $window.Height) / 2; +SHIFT ENTER +REM timer that is used to move the window +STRING $Timer = New-Object System.Windows.Forms.Timer; +SHIFT ENTER +STRING $Timer.Interval = 40; +SHIFT ENTER +STRING $Timer.add_Tick( +SHIFT ENTER +STRING { if($goingRight) { +SHIFT ENTER +REM # check to see if we are going off the right edge +STRING if(($window.Left + 2) -lt ($Screen.Bounds.Width - $window.Width)) {$window.Left = ($window.Left + 2); } else { +SHIFT ENTER +REM #change direction +STRING $script:goingRight = !$goingRight; } } else { +SHIFT ENTER +REM check to see if we are going off the left edge +STRING if(($window.Left - 2) -gt 0) { $window.Left = ($window.Left - 2); } else { $script:goingRight = !$goingRight; } } +SHIFT ENTER +STRING if($goingDown) { +SHIFT ENTER +REM check to see if we are going off the bottom edge +STRING if(($window.Top + 2) -lt ($Screen.Bounds.Height - $window.Height)) { $window.Top = ($window.Top + 2); } else { +SHIFT ENTER +REM #change direction +STRING $script:goingDown = !$goingDown; } } else { +SHIFT ENTER +REM check to see if we are going off the top edge +STRING if(($window.Top - 2) -gt 0) { $window.Top = ($window.Top - 2); } else { $script:goingDown = !$goingDown; }}}); $Timer.Start(); $window.ShowDialog(); $Timer.Dispose(); +ENTER \ No newline at end of file diff --git a/payloads/library/general/Win_PoSH_BouncyCoil/readme.md b/payloads/library/general/Win_PoSH_BouncyCoil/readme.md new file mode 100644 index 0000000..51ecd37 --- /dev/null +++ b/payloads/library/general/Win_PoSH_BouncyCoil/readme.md @@ -0,0 +1,15 @@ +# Bouncy Coil +- Author: Cribbit +- Version: 1.0 +- Target: Windows (Powershell 5.1+) +- Category: General + +## Change Log +| Version | Changes | +| ------- | --------------- | +| 1.0 | Initial release | + +## Description +Uses Powershell to create a O.MG Coil that bounces around the screen. + +![Demo](OMGCoil.gif) \ No newline at end of file