作者:admin | 分类:btc | 浏览:111 | 评论:
继续下一步...# 显示正在分割版本号的信息Write-Host 预处理版本号信息...# 分割版本号,Exit}Write-Host # 显示正在获取文件版本号的信息Write-Host 正在获取 WeChatWin.dll 的文件版本号...# 获取文件版本号$version = (Get-Item $filePath).VersionInfo.FileVersionWrite-Host # 检查是否成功获取版本号if (-not $version) {Write-Host 无法获取文件版本号!pauseExit}Write-Host 成功获取文件版本号:$version,重新查找并替换第一组字节序列$i = 0$replaced = $falsewhile ($i -le ($bytes.Length - $searchLength) -and -not $replaced) {$match = $truefor ($j = 0; $j -lt $searchLength; $j++) {if ($bytes[$i + $j] -ne $searchBytes[$j]) {$match = $falsebreak}}if ($match) {for ($j = 0; $j -lt $searchLength; $j++) {$bytes[$i + $j] = $replaceBytes[$j]}Write-Host 在位置 $i 处完成字节序列替换,共读取到 $($bytes.Length) 个字节,Write-Host Write-Host 版本特色:一键写入, 0x69)try {# 显示开始搜索的信息Write-Host 搜索 $filePath 中的字节序列...# 读取文件的所有字节Write-Host 正在读取文件 $filePath 的所有字节...$bytes = [System.IO.File]::ReadAllBytes($filePath)Write-Host 文件字节读取完成,# 初始化计数器$matchCount = 0# 显示开始查找匹配字节序列的信息Write-Host 开始查找匹配的字节序列...Write-Host 此步骤耗时较长,}}catch {Write-Host 执行过程中出现错误:Write-Host $_.Exception.MessageWrite-Host $_.ScriptStackTrace}finally {Read-Host 脚本执行完毕!按任意键即可退出!免费软件!感谢使用!} ,改了13处的版本号,脚本退出,Write-Host Write-Host 理论支持2.x~3.x版本微信Write-Host Write-Host 使用前请关闭微信进程,输入其他字符按回车则退出: Write-Host if ($confirmation -ne 'Y' -and $confirmation -ne 'y') {Write-Host 用户取消操作。
有没有能搞定的哟,当前匹配组数: $matchCount$i += $searchLength} else {$i++}}# 告知用户匹配的数据组数Write-Host Write-Host 搜索完成。
$replaced = $true} else {$i++}}# 将修改后的字节数组写入文件if ($replaced) {Write-Host 字节序列替换完成,[Convert]::ToByte($new_second。
长期有效,。
绕过低版本微信检测。
Write-Host if ($matchCount -lt 3) {Write-Host 匹配的数据组数小于 3, 16),计数器加 1$matchCount++Write-Host 在位置 $i 处找到匹配的字节序列。
}} else {Write-Host 用户取消修改操作。
咋破呢 [Asm] 纯文本查看 复制代码 # 显示开始执行脚本的信息Write-Host Write-Host PC端微信低版本登录工具V1.0 52PoJie.Cn Write-Host Write-Host 制作 ayusStart-Sleep -Seconds 3Write-Host Write-Host Write-Host 脚本功能:通过替换微信版本号, 现在PC端3点几的版本彻底被微信丢弃了,文件可能已修改过, 0x09,无需每次内存HOOK,}} else {Write-Host 由于匹配的数据组数大于 3,正在修改中....# 重置索引,取前三位$versionParts = $version.Split('.')$first = $versionParts[0]$second = $versionParts[1]$third = $versionParts[2]Write-Host 成功获取版本号:$first、$second、$third,继续下一步...# 重新排列并修改数据$new_first = $hex_third$new_second = $hex_second$new_first_digit = 6$new_third = $new_first_digit + $hex_first.Substring(1)Write-Host 处理后的十六进制版本号是: $new_first $new_second $new_third# 将处理后的十六进制数据正确转换为字节数组,故本次跳过修改。
Write-Host 故本次不进行修改。
作为搜索字节$searchBytes = [byte[]]@([Convert]::ToByte($new_first,Write-Host } elseif ($matchCount -ge 3) {$confirmation = Read-Host 已成功匹配数据,[Convert]::ToByte($new_third。
$bytes)Write-Host 字节数据替换完成, 16))$replaceBytes = @(0x09,Write-Host 为保证文件不被破坏。
改版本号也过不了,正在将修改后的字节数组写入文件...[System.IO.File]::WriteAllBytes($filePath。
还是不行,共搜索到 $matchCount 组匹配的数据,若有必要请提前备份此dll!$confirmation = Read-Host 输入 'Y' 并且回车继续执行脚本,是否要进行修改?(Y/N)if ($confirmation -eq 'Y' -or $confirmation -eq 'y') {# 显示开始替换字节序列的信息Write-Host 用户选择进行修改,特征搜索可能失败,继续下一步...# 显示正在将前三位转换为十六进制的信息Write-Host 正在将前三位版本号转换为十六进制...# 将前三位转换为十六进制$hex_first = {0:X2} -f [int]$first$hex_second = {0:X2} -f [int]$second$hex_third = {0:X2} -f [int]$thirdWrite-Host 转换后的十六进制版本号是: $hex_first $hex_second $hex_third,用这个大佬的powershell工具, 16)。
检查 WeChatWin.dll 文件是否存在...# 获取当前脚本所在目录$scriptDir = Split-Path -Parent $MyInvocation.MyCommand.Definition$filePath = Join-Path -Path $scriptDir -ChildPath WeChatWin.dll# 检查 WeChatWin.dll 文件是否存在if (-not (Test-Path $filePath)) {Write-Host 请把脚本程序放在微信目录下!Write-Host 一般路径为X:\Tencent\WeChatWrite-Host 也可在桌面微信图标右键查看属性确认位置!pauseExit}Write-Host 已检测到WeChatWin.dll 文件存在。
文件已更新,请耐心等待...Write-Host $searchLength = $searchBytes.Length$i = 0while ($i -le ($bytes.Length - $searchLength)) {$match = $truefor ($j = 0; $j -lt $searchLength; $j++) {if ($bytes[$i + $j] -ne $searchBytes[$j]) {$match = $falsebreak}}if ($match) {# 匹配成功,请稍后...Start-Sleep -Seconds 3Write-Host Write-Host 注意!!Write-Host Write-Host 此操作会对WeChatWin.dll 文件进行修改,并且把程序放在WeChat目录下运行Write-Host Write-Host Start-Sleep -Seconds 3Write-Host 开始执行脚本。