From 96541e214d56be79f56ec660f60ec0c3317b807e Mon Sep 17 00:00:00 2001 From: mvelazco Date: Thu, 25 Mar 2021 10:10:34 -0400 Subject: [PATCH] Update install-redteam.ps1 The latest release of PurpleSharp does no longer require a separate DLL for Newtonsoft. It is now embedded in the assembly --- Vagrant/scripts/install-redteam.ps1 | 2 -- 1 file changed, 2 deletions(-) diff --git a/Vagrant/scripts/install-redteam.ps1 b/Vagrant/scripts/install-redteam.ps1 index ff88a7e..2c71154 100644 --- a/Vagrant/scripts/install-redteam.ps1 +++ b/Vagrant/scripts/install-redteam.ps1 @@ -92,10 +92,8 @@ If (-not (Test-Path "c:\Tools\PurpleSharp")) { Write-Host "$('[{0:HH:mm}]' -f (Get-Date)) Determining latest release of Purplesharp..." $tag = (Invoke-WebRequest "https://api.github.com/repos/mvelazc0/PurpleSharp/releases" -UseBasicParsing | ConvertFrom-Json)[0].tag_name $purplesharpDownloadUrl = "https://github.com/mvelazc0/PurpleSharp/releases/download/$tag/PurpleSharp.exe" -$purplesharpDllDownloadURL = "https://github.com/mvelazc0/PurpleSharp/releases/download/$tag/Newtonsoft.Json.dll" If (-not (Test-Path "c:\Tools\PurpleSharp\PurpleSharp.exe")) { Invoke-WebRequest -Uri $purplesharpDownloadUrl -OutFile "c:\Tools\PurpleSharp\PurpleSharp.exe" - Invoke-WebRequest -Uri $purplesharpDllDownloadUrl -OutFile "c:\Tools\PurpleSharp\Newtonsoft.Json.dll" } Else { Write-Host "$('[{0:HH:mm}]' -f (Get-Date)) PurpleSharp was already installed. Moving On." }