Update install-redteam.ps1

This commit is contained in:
Jonathan Johnson
2019-04-02 14:43:24 -05:00
committed by GitHub
parent dca211388e
commit 6f2b788f76

View File

@@ -37,7 +37,7 @@ else
Write-Host "Downloading Powersploit..." Write-Host "Downloading Powersploit..."
# GitHub requires TLS 1.2 as of 2/27 # GitHub requires TLS 1.2 as of 2/27
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$powersploitDownloadUrl = "https://github.com/PowerShellMafia/PowerSploit/archive/master.zip" $powersploitDownloadUrl = "https://github.com/PowerShellMafia/PowerSploit/archive/dev.zip"
$powersploitRepoPath = "C:\Users\vagrant\AppData\Local\Temp\powersploit.zip" $powersploitRepoPath = "C:\Users\vagrant\AppData\Local\Temp\powersploit.zip"
if (-not (Test-Path $powersploitRepoPath)) { if (-not (Test-Path $powersploitRepoPath)) {
Invoke-WebRequest -Uri "$powersploitDownloadUrl" -OutFile $powersploitRepoPath Invoke-WebRequest -Uri "$powersploitDownloadUrl" -OutFile $powersploitRepoPath