Update samy.ps1
This commit is contained in:
6
samy.ps1
6
samy.ps1
@@ -19,9 +19,11 @@ if ($ExecutionContext.SessionState.LanguageMode -ne 'FullLanguage' -or
|
|||||||
if ($PSCommandPath) {
|
if ($PSCommandPath) {
|
||||||
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "$PSCommandPath" @argList
|
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "$PSCommandPath" @argList
|
||||||
} else {
|
} else {
|
||||||
$argString = ($argList | ForEach-Object { '"' + ($_ -replace '"','`"') + '"' }) -join ' '
|
# IMPORTANT: pass args AFTER -Command so they become $args in the downloaded script
|
||||||
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "& { iwr 'https://samybeta.svstools.ca' -UseBasicParsing | iex } $argString"
|
$bootstrap = "& { iwr 'https://samybeta.svstools.ca' -UseBasicParsing | iex }"
|
||||||
|
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command $bootstrap @argList
|
||||||
}
|
}
|
||||||
|
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user