Skip to content

Instantly share code, notes, and snippets.

@jesusninoc
Forked from M3T4L5T3F/MonitorMayhem.ps1
Created January 18, 2019 12:51
Show Gist options
  • Save jesusninoc/6a3bf8419895396b4a323c97bddd4958 to your computer and use it in GitHub Desktop.
Save jesusninoc/6a3bf8419895396b4a323c97bddd4958 to your computer and use it in GitHub Desktop.
Monitor Mayhem - Test if users are likely to report a possible malfunction or compromise with physical symptoms
# By @M3T4L5T3F
# Change values to different experience. Works on laptops. Future update will add desktop monitor support
$i=0
While ($true)
{
$i++
$brightness = Get-Random -Maximum 25
$delay = 0
$myMonitor = Get-WmiObject -Namespace root\wmi -Class WmiMonitorBrightnessMethods
$myMonitor.wmisetbrightness($delay, $brightness)
$sleep = Get-Random -Maximum 4
Start-Sleep -s $sleep
$brightness = 101
$delay = 5000
$myMonitor.wmisetbrightness($delay, $brightness)
if ($i -gt 1337) {
Break
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment