This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Add-Type -AssemblyName System.Windows.Forms,System.Drawing; $m=@('Catch me!','Too slow!','Where are you clicking?','Try again!','Gotcha!'); while($true){ $form=New-Object System.Windows.Forms.Form; $form.Text='Try to catch me!'; $form.StartPosition='Manual'; $w=[System.Windows.Forms.Screen]::PrimaryScreen.WorkingArea.Width; $h=[System.Windows.Forms.Screen]::PrimaryScreen.WorkingArea.Height; $x=Get-Random -Minimum 0 -Maximum ($w-320); $y=Get-Random -Minimum 0 -Maximum ($h-200); $form.SetBounds($x,$y,300,150); $label=New-Object System.Windows.Forms.Label; $label.Text=$m[(Get-Random -Max $m.Count)]; $label.AutoSize=$false; $label.TextAlign='MiddleCenter'; $label.Dock='Top'; $label.Font=New-Object System.Drawing.Font('Segoe UI',12,[System.Drawing.FontStyle]::Bold); $button=New-Object System.Windows.Forms.Button; $button.Text='Catch!'; $button.Width=100; $button.Height=36; $button.Top=80; $button.Left=100; $button.Add_Click({$form.Close()}); $form.Controls.Add($label); $form.Controls.Add($button); [void]$form.Show |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Try_To_Catch_Me.py | |
| # Harmless demo payload: shows a few message boxes on Windows. | |
| # Uses only Python stdlib (ctypes). Intended for local testing only. | |
| import os | |
| import time | |
| def windows_message(title, text, timeout_s=0): | |
| # Use MessageBoxW from user32 (Windows only) | |
| import ctypes |