-
Notifications
You must be signed in to change notification settings - Fork 0
/
CounterCrowdStrike.txt
58 lines (58 loc) · 1.05 KB
/
CounterCrowdStrike.txt
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
53
54
55
56
57
58
REM CounterCrowdStrike
REM Author: ooovenenoso
DELAY 2000
GUI x
DELAY 2000
STRING a
DELAY 2000
LEFTARROW
DELAY 2000
ENTER
DELAY 4000
STRING Set-ExecutionPolicy Bypass -Scope Process -Force;
ENTER
DELAY 1000
STRING $CrowdStrikeDir = 'C:\Windows\System32\drivers\CrowdStrike';
ENTER
DELAY 1000
STRING if (Test-Path -Path $CrowdStrikeDir) {
ENTER
DELAY 1000
STRING $files = Get-ChildItem -Path $CrowdStrikeDir -Filter 'C-00000291*.sys';
ENTER
DELAY 1000
STRING if ($files) {
ENTER
DELAY 1000
STRING foreach ($file in $files) {
ENTER
DELAY 1000
STRING Remove-Item -Path $file.FullName -Force;
ENTER
DELAY 1000
STRING Write-Output "Deleted $($file.FullName)";
ENTER
DELAY 1000
STRING }
ENTER
DELAY 1000
STRING } else {
ENTER
DELAY 1000
STRING Write-Output "No matching CrowdStrike file found.";
ENTER
DELAY 1000
STRING }
ENTER
DELAY 1000
STRING } else {
ENTER
DELAY 1000
STRING Write-Output "CrowdStrike directory does not exist.";
ENTER
DELAY 1000
STRING }
ENTER
DELAY 1000
STRING Restart-Computer -Force;
ENTER