$ErrorActionPreference='Stop' $Fat='E:\wwwroot\inquiry-new\jeecg-system-start-3.5.3.jar' $work=Join-Path $env:TEMP 'chk-captcha-class' if(Test-Path $work){Remove-Item $work -Recurse -Force} New-Item -ItemType Directory $work|Out-Null $jarCmd=$null foreach($c in @('C:\yutongda\tools\jdk8\bin\jar.exe','E:\wwwroot\tools\jdk-17\bin\jar.exe')){ if(Test-Path $c){ $jarCmd=$c; break } } Push-Location $work & $jarCmd xf $Fat 'BOOT-INF/lib/jeecg-system-biz-3.5.3.jar' & $jarCmd xf 'BOOT-INF/lib/jeecg-system-biz-3.5.3.jar' 'org/jeecg/modules/system/controller/LoginController.class' $classPath = Join-Path $work 'org\jeecg\modules\system\controller\LoginController.class' if (-not (Test-Path $classPath)) { throw ("class missing under " + $work) } $bytes=[IO.File]::ReadAllBytes($classPath) $ascii=[Text.Encoding]::ASCII.GetString($bytes) $has= $ascii.Contains('loginCaptchaEnabled') Write-Host ("has_loginCaptchaEnabled=" + $has) Write-Host ("class_bytes=" + $bytes.Length) Pop-Location