메모장에 넣고 ps1파일로 바꿔라 ㅇㅇ
맵에디터 디코에서 확인해봤을때 수상한 스크립트는 전혀없고 정상작동되는 스크립트다 ㅇㅇ
작동방법은 그냥 간단하다
저 파일을 다운받고
스투들가서 한번튕기고
우클릭해서 powershell로 실행한다음
다시 들어가면 스투 안튕기고 겜가능
파워셀 코드
# Made by Pantera
$MinMapNameLength = 1
$MaxMapNameLength = 79
$CachePath = 'C:\ProgramData\Blizzard Entertainment\Battle.net\Cache'
# Get all s2ml files in the cache folder
Write-Host "Searching for all s2ml files in the cache folder..."
Get-ChildItem -Path $CachePath -Include *.s2ml -Recurse | ForEach-Object {
# Read file contents
$content = Get-Content -Path $_.FullName -Raw -Encoding UTF8
# Extract map name
$matches = Select-String -Pattern '<e id="1">(.*?)</e>' -InputObject $content
if ($matches.Matches.Count -eq 1) {
$mapName = $matches.Matches[0].Groups[1].Value
} else {
$mapName = "none"
}
# Check map name length
if ($mapName.Length -lt $MinMapNameLength -or $mapName.Length -gt $MaxMapNameLength) {
# Block exploit by making file clearing content and read-only
Clear-Content -Path $_.FullName
[System.IO.File]::SetAttributes($_.FullName, [System.IO.FileAttributes]::ReadOnly)
Write-Host "Exploit s2ml File Blocked: $($_.FullName)"
}
}
Write-Host "Done!"