36
This commit is contained in:
@@ -36,8 +36,8 @@ function Invoke-ScriptAutomationMonkey {
|
||||
|
||||
# Load remote functions (kept as-is, including verification style)
|
||||
try {
|
||||
Write-Host "[Info] Loading functions from: $Script:SamyFunctionsUrl" -ForegroundColor Cyan
|
||||
$functionsContent = (Invoke-WebRequest -UseBasicParsing $Script:SamyFunctionsUrl -ErrorAction Stop).Content
|
||||
# Write-Host "[Info] Loading functions from: $Script:SamyFunctionsUrl" -ForegroundColor Cyan
|
||||
#$functionsContent = (Invoke-WebRequest -UseBasicParsing $Script:SamyFunctionsUrl -ErrorAction Stop).Content
|
||||
|
||||
if ([string]::IsNullOrWhiteSpace($functionsContent)) {
|
||||
throw "Downloaded content was empty."
|
||||
|
||||
Reference in New Issue
Block a user