Fixing working in choco and redteam
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
# Purpose: Install additional packages from Chocolatey.
|
||||
|
||||
Write-Host "Installing additional Choco packages..."
|
||||
|
||||
If (-not (Test-Path "C:\ProgramData\chocolatey")) {
|
||||
Write-Host "Installing Chocolatey"
|
||||
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
|
||||
@@ -11,4 +13,4 @@ Write-Host "Installing Chocolatey extras..."
|
||||
choco install -y wireshark
|
||||
choco install -y microsoft-message-analyzer
|
||||
|
||||
Write-Host "Utilties installation complete!"
|
||||
Write-Host "Choco addons complete!"
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
# Purpose: Installs Mimikatz and Powersploit into c:\Tools\Mimikatz. Used to install redteam related tooling.
|
||||
|
||||
Write-Host "Installing Red Team Tooling..."
|
||||
|
||||
|
||||
# Disable Windows Defender realtime scanning before downloading Mimikatz and drop the firewall
|
||||
If ($env:computername -eq "win10") {
|
||||
If (Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender")
|
||||
@@ -7,6 +10,7 @@ If ($env:computername -eq "win10") {
|
||||
Remove-Item "HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender" -Recurse -Force
|
||||
}
|
||||
gpupdate /force | Out-String
|
||||
Write-Host "Disabling Windows Defender Realtime Monitoring..."
|
||||
Set-MpPreference -ExclusionPath C:\commander.exe, C:\Tools
|
||||
set-MpPreference -DisableRealtimeMonitoring $true
|
||||
Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled False
|
||||
@@ -42,3 +46,5 @@ if (-not (Test-Path $powersploitRepoPath)) {
|
||||
} else {
|
||||
Write-Host "PowerSploit was already installed. Moving On."
|
||||
}
|
||||
|
||||
Write-Host "Red Team tooling installation complete!"
|
||||
|
||||
Reference in New Issue
Block a user