Merge pull request #53 from clong/start_at_boot
Configure mongod and caldera services to start at boot
This commit is contained in:
@@ -14,8 +14,3 @@ if ($onedrive) {
|
|||||||
taskkill /f /im OneDrive.exe
|
taskkill /f /im OneDrive.exe
|
||||||
}
|
}
|
||||||
c:\Windows\SysWOW64\OneDriveSetup.exe /uninstall
|
c:\Windows\SysWOW64\OneDriveSetup.exe /uninstall
|
||||||
|
|
||||||
# Disable SMBv1
|
|
||||||
Write-Host "Disabling SMBv1"
|
|
||||||
Set-SmbServerConfiguration -EnableSMB1Protocol $false -Confirm:$false
|
|
||||||
|
|
||||||
|
|||||||
@@ -143,7 +143,9 @@ cp /vagrant/resources/caldera/caldera.service /lib/systemd/system/caldera.servic
|
|||||||
echo 'replication:
|
echo 'replication:
|
||||||
replSetName: caldera' >> /etc/mongod.conf
|
replSetName: caldera' >> /etc/mongod.conf
|
||||||
service mongod start
|
service mongod start
|
||||||
|
systemctl enable mongod.service
|
||||||
cd /home/vagrant/caldera
|
cd /home/vagrant/caldera
|
||||||
mkdir -p dep/crater/crater
|
mkdir -p dep/crater/crater
|
||||||
wget https://github.com/mitre/caldera-crater/releases/download/v0.1.0/CraterMainWin8up.exe -O /home/vagrant/caldera/dep/crater/crater/CraterMain.exe
|
wget https://github.com/mitre/caldera-crater/releases/download/v0.1.0/CraterMainWin8up.exe -O /home/vagrant/caldera/dep/crater/crater/CraterMain.exe
|
||||||
service caldera start
|
service caldera start
|
||||||
|
systemctl enable caldera.service
|
||||||
|
|||||||
@@ -19,7 +19,13 @@ apm install language-powershell
|
|||||||
apm install language-batch
|
apm install language-batch
|
||||||
apm install language-docker
|
apm install language-docker
|
||||||
|
|
||||||
# Purpose: Downloads and unzips a copy of the Palantir osquery Github Repo. These configs are added to the Fleet server in bootstrap.sh.
|
# Disable Windows Defender realtime scanning before downloading Mimikatz
|
||||||
$mimikatzRepoPath = 'C:\Users\vagrant\AppData\Local\Temp\osquery-Master.zip'
|
set-MpPreference -DisableRealtimeMonitoring $true
|
||||||
Invoke-WebRequest -Uri "https://github.com/gentilkiwi/mimikatz/releases/download/2.1.1-20171203/mimikatz_trunk.zip" -OutFile $mimikatzRepoPath
|
|
||||||
|
# Purpose: Downloads and unzips a copy of the latest Mimikatz trunk
|
||||||
|
Write-Host Determining latest release of Mimikatz...
|
||||||
|
$tag = (Invoke-WebRequest "https://api.github.com/repos/gentilkiwi/mimikatz/releases" -UseBasicParsing | ConvertFrom-Json)[0].tag_name
|
||||||
|
$mimikatzDownloadUrl = "https://github.com/gentilkiwi/mimikatz/releases/download/$tag/mimikatz_trunk.zip"
|
||||||
|
$mimikatzRepoPath = 'C:\Users\vagrant\AppData\Local\Temp\mimikatz_trunk.zip'
|
||||||
|
Invoke-WebRequest -Uri "$mimikatzDownloadUrl" -OutFile $mimikatzRepoPath
|
||||||
Expand-Archive -path "$mimikatzRepoPath" -destinationpath 'c:\Tools\Mimikatz' -Force
|
Expand-Archive -path "$mimikatzRepoPath" -destinationpath 'c:\Tools\Mimikatz' -Force
|
||||||
|
|||||||
Reference in New Issue
Block a user