Drop the firewall in Win10 host [ci skip]
This commit is contained in:
@@ -16,7 +16,7 @@ choco install -y NotepadPlusPlus
|
|||||||
choco install -y GoogleChrome
|
choco install -y GoogleChrome
|
||||||
choco install -y WinRar
|
choco install -y WinRar
|
||||||
|
|
||||||
# Disable Windows Defender realtime scanning before downloading Mimikatz
|
# Disable Windows Defender realtime scanning before downloading Mimikatz and drop the firewall
|
||||||
If ($env:computername -eq "win10") {
|
If ($env:computername -eq "win10") {
|
||||||
If (Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender")
|
If (Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender")
|
||||||
{
|
{
|
||||||
@@ -25,7 +25,7 @@ If ($env:computername -eq "win10") {
|
|||||||
gpupdate /force | Out-String
|
gpupdate /force | Out-String
|
||||||
Set-MpPreference -ExclusionPath C:\commander.exe, C:\Tools
|
Set-MpPreference -ExclusionPath C:\commander.exe, C:\Tools
|
||||||
set-MpPreference -DisableRealtimeMonitoring $true
|
set-MpPreference -DisableRealtimeMonitoring $true
|
||||||
|
Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled False
|
||||||
}
|
}
|
||||||
|
|
||||||
# Purpose: Downloads and unzips a copy of the latest Mimikatz trunk
|
# Purpose: Downloads and unzips a copy of the latest Mimikatz trunk
|
||||||
|
|||||||
Reference in New Issue
Block a user