Skip to content

Commit

Permalink
Fix issues 565 and 559
Browse files Browse the repository at this point in the history
  • Loading branch information
clong committed Nov 21, 2020
1 parent 91c5763 commit 18be2e2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 3 additions & 1 deletion Vagrant/logger_bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ sed -i 's/nameserver 127.0.0.53/nameserver 8.8.8.8/g' /etc/resolv.conf && chattr

# Source variables from logger_variables.sh
# shellcheck disable=SC1091
source ./logger_variables.sh
source /vagrant/logger_variables.sh 2>/dev/null || \
source /home/vagrant/logger_variables.sh 2>/dev/null || \
echo "Unable to locate logger_variables.sh"

if [ -z "$MAXMIND_LICENSE" ]; then
echo "Note: You have not entered a MaxMind API key in logger_variables.sh, so the ASNgen Splunk app may not work correctly."
Expand Down
4 changes: 2 additions & 2 deletions Vagrant/logger_variables.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

# Get a free Maxmind license here: https://www.maxmind.com/en/geolite2/signup
# Required for the ASNgen app to work: https://splunkbase.splunk.com/app/3531/
MAXMIND_LICENSE=""
export MAXMIND_LICENSE=""

# Get a free Splunk Dev Trial License here: http://dev.splunk.com/page/developer_license_sign_up
# To base64 encode on MacOS: cat Splunk.License | base64 | tr -d '\n' | pbcopy
# Then, simply paste below:
BASE64_ENCODED_SPLUNK_LICENSE=""
export BASE64_ENCODED_SPLUNK_LICENSE=""

5 changes: 3 additions & 2 deletions Vagrant/post_build_checks.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ function download {
$wc = New-Object System.Net.WebClient
try {
$result = $wc.DownloadString($URL)

if ($result -like "*$PatternToMatch*") {
return $true
} else {
Expand Down Expand Up @@ -40,7 +41,7 @@ function post_build_checks {
Write-Host ''

Write-Host '[*] Verifying that Fleet is reachable...'
$FLEET_CHECK = download -URL 'https://192.168.38.105:8412' -PatternToMatch 'Kolide Fleet'
$FLEET_CHECK = download -URL 'https://192.168.38.105:8412' -PatternToMatch 'Fleet for osquery'
if ($FLEET_CHECK -eq $false) {
Write-Host '[!] Fleet was unreachable and may not have installed correctly.' -ForegroundColor red
}
Expand All @@ -60,7 +61,7 @@ function post_build_checks {
Write-Host ''

Write-Host '[*] Verifying that Velociraptor is reachable...'
$VELOCIRAPTOR_CHECK = download -URL 'https://192.168.38.105:9999' -PatternToMatch 'app.html'
$VELOCIRAPTOR_CHECK = download -URL 'https://192.168.38.105:9999' -SuccessOn401
if ($VELOCIRAPTOR_CHECK -eq $false) {
Write-Host '[!] Velociraptor was unreachable and may not have installed correctly.' -ForegroundColor red
}
Expand Down

0 comments on commit 18be2e2

Please sign in to comment.