Skip to content

Commit 032d621

Browse files
authored
Update install.ps1
1 parent ded722c commit 032d621

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

install.ps1

-31
Original file line numberDiff line numberDiff line change
@@ -264,37 +264,6 @@ New-LocalGroup -Name "AllowNet" -Description "For FreeEDR whitelisted programs"
264264
New-LocalGroup -Name "DenyNet" -Description "For FreeEDR blacklisted programs" -ErrorAction:SilentlyContinue
265265
New-LocalGroup -Name "AddProfileOnce" -Description "For FreeEDR whitelist management" -ErrorAction:SilentlyContinue
266266

267-
# A sample of commonly abused system tools for non-PE base execution
268-
# more @ https://lolbas-project.github.io/#/download
269-
# since PE files are denied upon written, this list focus on non-PE delivery
270-
$denyNetList = @("C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe")
271-
$denyNetList += @("C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe")
272-
$denyNetList += @("C:\Windows\System32\rundll32.exe")
273-
$denyNetList += @("C:\Windows\SysWOW64\rundll32.exe")
274-
$denyNetList += @("C:\Windows\System32\regsvr32.exe")
275-
$denyNetList += @("C:\Windows\SysWOW64\regsvr32.exe")
276-
$denyNetList += @("C:\Windows\System32\mshta.exe")
277-
$denyNetList += @("C:\Windows\SysWOW64\mshta.exe")
278-
$denyNetList += @("C:\Windows\System32\wscript.exe")
279-
$denyNetList += @("C:\Windows\SysWOW64\wscript.exe")
280-
$denyNetList += @("C:\Windows\System32\cscript.exe")
281-
$denyNetList += @("C:\Windows\SysWOW64\cscript.exe")
282-
283-
# DenyNet is a local group for tagging files that are NOT suppose to talk on networks
284-
$AccessRule = New-Object System.Security.AccessControl.FileSystemAccessRule("DenyNet", "Read", "Allow")
285-
286-
foreach($f in $denyNetList)
287-
{
288-
if (-not(Test-Path -Path $f -PathType Leaf)) {
289-
write-host "file not found"
290-
continue
291-
}
292-
write-host "found" $f
293-
$acl = get-acl -Path $f
294-
$acl.SetAccessRule($AccessRule)
295-
$acl | Set-Acl -Path $f
296-
}
297-
298267
# Notify user
299268
Add-Type -AssemblyName System.Windows.Forms
300269
$global:balmsg = New-Object System.Windows.Forms.NotifyIcon

0 commit comments

Comments
 (0)