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