Skip to content

Instantly share code, notes, and snippets.

@jackson5sec
Created July 6, 2025 01:12
Show Gist options
  • Save jackson5sec/41666377596e49984ec6b1e6cbd2b6a9 to your computer and use it in GitHub Desktop.
Save jackson5sec/41666377596e49984ec6b1e6cbd2b6a9 to your computer and use it in GitHub Desktop.
Add-Type -AssemblyName System.Windows.Forms
while ($true) {
[System.Windows.Forms.SendKeys]::SendWait("{F5}")
$currentTime = Get-Date -Format "HH:mm:ss"
Write-Host "F5 sent at $currentTime"
$waitTime = Get-Random -Minimum 30 -Maximum 50
Start-Sleep -Seconds $waitTime
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment