21 lines
507 B
PowerShell
21 lines
507 B
PowerShell
param(
|
|
[string]$Package = "com.kuaishou.nebula",
|
|
[string]$Script = "tools\frida_probe_passport_wcfg.js",
|
|
[string]$OutDir = "out",
|
|
[int]$PollSeconds = 180
|
|
)
|
|
|
|
$ErrorActionPreference = "Stop"
|
|
|
|
$delegate = Join-Path $PSScriptRoot "frida_attach_all_processes.ps1"
|
|
if (!(Test-Path $delegate)) {
|
|
throw "Delegate script not found: $delegate"
|
|
}
|
|
|
|
& powershell -NoProfile -ExecutionPolicy Bypass `
|
|
-File $delegate `
|
|
-Package $Package `
|
|
-Script $Script `
|
|
-OutDir $OutDir `
|
|
-PollSeconds $PollSeconds
|