-
Notifications
You must be signed in to change notification settings - Fork 1
/
230401-sl7n2acb8t.ps1
executable file
·52 lines (42 loc) · 1.66 KB
/
230401-sl7n2acb8t.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
Add-Type -AssemblyName PresentationFramework
$popup1 = New-Object System.Windows.Window
$popup1.Title = "Calculator Virus Detected!"
$popup1.WindowStyle = 'ToolWindow'
$popup1.WindowStartupLocation = 'CenterScreen'
$popup1.SizeToContent = 'WidthAndHeight'
$popup1.Topmost = $true
$popup1.ResizeMode = 'NoResize'
$popup1.WindowState = 'Maximized'
$okButton = New-Object System.Windows.Controls.Button
$okButton.Content = "OK"
$okButton.Add_Click({ $popup1.Close() })
$howButton = New-Object System.Windows.Controls.Button
$howButton.Content = "HOW THE FUCK?"
$howButton.Add_Click({
for ($i=1; $i -le 10; $i++) {
Start-Process -FilePath "calc.exe"
}
})
$buttonsStackPanel = New-Object System.Windows.Controls.StackPanel
$buttonsStackPanel.Children.Add($okButton)
$buttonsStackPanel.Children.Add($howButton)
$popup1.Content = $buttonsStackPanel
$popup1.ShowDialog()
$popup2 = New-Object System.Windows.Window
$popup2.Title = "Calculator Virus Removed!"
$popup2.WindowStyle = 'ToolWindow'
$popup2.WindowStartupLocation = 'CenterScreen'
$popup2.SizeToContent = 'WidthAndHeight'
$popup2.Topmost = $true
$popup2.ResizeMode = 'NoResize'
$popup2.WindowState = 'Maximized'
$okButton2 = New-Object System.Windows.Controls.Button
$okButton2.Content = "OK"
$okButton2.Add_Click({ $popup2.Close() })
$message = New-Object System.Windows.Controls.TextBlock
$message.Text = "Congratulations, the virus has been removed!"
$buttonsStackPanel2 = New-Object System.Windows.Controls.StackPanel
$buttonsStackPanel2.Children.Add($message)
$buttonsStackPanel2.Children.Add($okButton2)
$popup2.Content = $buttonsStackPanel2
$popup2.ShowDialog()