Update to Caldera 2.0, reduce verbosity
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
# Purpose: Installs the Caldera agent on the host
|
||||
Write-Host "Installing the Caldera agent..."
|
||||
$url="https://192.168.38.105:8888/file/render"; $ps_table = $PSVersionTable.PSVersion;If([double]$ps_table.Major -ge 6){iex (irm -Method Post -Uri $url -Headers @{"file"="54ndc47.ps1"} -SkipCertificateCheck);}else{[System.Net.ServicePointManager]::ServerCertificateValidationCallback={$True};$web=New-Object System.Net.WebClient;$web.Headers.Add("file","54ndc47.ps1");$resp=$web.UploadString("$url",'');iex($resp);}
|
||||
|
||||
If (-not (Test-Path 'C:\Program Files\cagent\cagent.exe')) {
|
||||
# Add /etc/hosts entry
|
||||
|
||||
@@ -10,7 +10,7 @@ If (-not (Test-Path "C:\ProgramData\chocolatey")) {
|
||||
}
|
||||
|
||||
Write-Host "Installing Chocolatey extras..."
|
||||
choco install -y wireshark
|
||||
choco install -y winpcap
|
||||
choco install -y --limit-output wireshark
|
||||
choco install -y --limit-output winpcap
|
||||
|
||||
Write-Host "Choco addons complete!"
|
||||
|
||||
@@ -10,11 +10,11 @@ If (-not (Test-Path "C:\ProgramData\chocolatey")) {
|
||||
Write-Host "Installing utilities..."
|
||||
If ($(hostname) -eq "win10") {
|
||||
# Because the Windows10 start menu sucks
|
||||
choco install -y classic-shell -installArgs ADDLOCAL=ClassicStartMenu
|
||||
reg import "c:\vagrant\resources\windows\classic_shell_win7.reg"
|
||||
choco install -y --limit-output classic-shell -installArgs ADDLOCAL=ClassicStartMenu
|
||||
& "C:\Program Files\Classic Shell\ClassicStartMenu.exe" "-xml" "c:\vagrant\resources\windows\MenuSettings.xml"
|
||||
}
|
||||
choco install -y NotepadPlusPlus
|
||||
choco install -y GoogleChrome
|
||||
choco install -y WinRar
|
||||
choco install -y --limit-output NotepadPlusPlus
|
||||
choco install -y --limit-output GoogleChrome
|
||||
choco install -y --limit-output WinRar
|
||||
|
||||
Write-Host "Utilties installation complete!"
|
||||
|
||||
Reference in New Issue
Block a user