FinalShell 离线激活 - 常见问题

1. 为什么生成后仍提示无效?

可能原因如下:

  • 系统已缓存旧授权信息,建议重启软件或清理缓存后重新尝试。
  • 网络校验未被拦截,软件可能仍在连接远程服务器进行二次验证。
  • 已触发在线校验机制,某些版本(如4.6.5)在检测到异常后会主动失效,需要结合屏蔽措施使用。
2. 如何防止被二次校验 / 恶意回连?

为避免软件连接远程服务器导致再次失效或异常,建议进行以下屏蔽操作。

Hosts 屏蔽域名:

Hosts 文件位置:

  • Windows:C:\Windows\System32\drivers\etc\hosts
  • Linux / macOS:/etc/hosts
127.0.0.1 www.youtusoft.com 127.0.0.1 youtusoft.com 127.0.0.1 hostbuf.com 127.0.0.1 www.hostbuf.com 127.0.0.1 dkys.org 127.0.0.1 tcpspeed.com 127.0.0.1 www.wn1998.com 127.0.0.1 wn1998.com 127.0.0.1 pwlt.wn1998.com 127.0.0.1 backup.www.hostbuf.com

防火墙屏蔽 IP:

101.32.72.254 45.56.98.223 193.9.44.7 103.99.178.153 47.76.185.223
Windows
Linux
macOS

Windows 防火墙设置步骤:

  1. 打开「Windows Defender 防火墙」
  2. 点击「高级设置」
  3. 选择「出站规则」→「新建规则」
  4. 类型选择「自定义」或「IP」
  5. 在远程 IP 中填写上述地址
  6. 操作选择「阻止连接」
  7. 保存规则即可

Windows 一键屏蔽脚本(PowerShell 管理员自动运行):

<# .SYNOPSIS FinalShell 自动屏蔽验证脚本 自动管理员权限 | 精准写入Hosts | 强制防火墙拉黑IP | 可重复运行 #> # 强制以管理员身份运行 if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) { Start-Process PowerShell -ArgumentList "-NoProfile","-ExecutionPolicy Bypass","-File","$($MyInvocation.MyCommand.Path)" -Verb RunAs exit } # === 配置区域 === $hostsPath = "$env:SystemRoot\System32\drivers\etc\hosts" $domains = @( "www.youtusoft.com", "youtusoft.com", "hostbuf.com", "www.hostbuf.com", "dkys.org", "tcpspeed.com", "www.wn1998.com", "wn1998.com", "pwlt.wn1998.com", "backup.www.hostbuf.com" ) $ips = @( "101.32.72.254", "45.56.98.223", "193.9.44.7", "103.99.178.153", "47.76.185.223" ) # === 写入 Hosts(稳定无报错) === Write-Host "`n=== 正在写入 Hosts 屏蔽域名 ===" -ForegroundColor Cyan foreach ($domain in $domains) { $entry = "127.0.0.1 $domain" $exists = [bool](Select-String -Path $hostsPath -Pattern "^127.0.0.1\s+$domain" -Quiet -ErrorAction SilentlyContinue) if (!$exists) { Add-Content -Path $hostsPath -Value $entry -Encoding UTF8 Write-Host "✅ 已添加: $domain" -ForegroundColor Green } else { Write-Host "ℹ️ 已存在: $domain" -ForegroundColor Gray } } # === 强制刷新 DNS === Write-Host "`n=== 刷新 DNS 缓存 ===" -ForegroundColor Cyan ipconfig /flushdns | Out-Null ipconfig /registerdns | Out-Null Write-Host "✅ DNS 已刷新" -ForegroundColor Green # === 防火墙拉黑 IP(稳定无报错) === Write-Host "`n=== 正在添加防火墙出站规则 ===" -ForegroundColor Cyan foreach ($ip in $ips) { $ruleName = "Block_IP_$ip" # 先清理同名规则 Get-NetFirewallRule -DisplayName $ruleName -ErrorAction SilentlyContinue | Remove-NetFirewallRule -ErrorAction SilentlyContinue # 新建规则 New-NetFirewallRule -DisplayName $ruleName ` -Direction Outbound ` -RemoteAddress $ip ` -Action Block ` -Enabled True ` -Profile Any ` -ErrorAction Stop | Out-Null Write-Host "✅ 已屏蔽 IP: $ip" -ForegroundColor Green } # === 完成 === Write-Host "`n🎉 全部操作完成!域名+IP 已双重屏蔽" -ForegroundColor Green Write-Host "🔄 建议重启浏览器/相关软件生效" -ForegroundColor Yellow Write-Host "`n按任意键退出..." $null = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")

Windows 一键回滚脚本(恢复默认):

# 删除 hosts 规则 $hostsPath = "$env:SystemRoot\System32\drivers\etc\hosts" (Get-Content $hostsPath) | Where-Object { $_ -notmatch "youtusoft|hostbuf|dkys|tcpspeed|wn1998" } | Set-Content $hostsPath # 删除防火墙规则 Get-NetFirewallRule | Where-Object { $_.DisplayName -like "Block_IP_*" } | Remove-NetFirewallRule ipconfig /flushdns Write-Host "已恢复默认设置"

Linux 一键屏蔽脚本:

#!/bin/bash HOSTS_FILE="/etc/hosts" DOMAINS=( "www.youtusoft.com" "youtusoft.com" "hostbuf.com" "www.hostbuf.com" "dkys.org" "tcpspeed.com" "www.wn1998.com" "wn1998.com" "pwlt.wn1998.com" "backup.www.hostbuf.com" ) echo "写入 hosts..." for domain in "${DOMAINS[@]}"; do if ! grep -q "$domain" $HOSTS_FILE; then echo "127.0.0.1 $domain" | sudo tee -a $HOSTS_FILE fi done echo "刷新 DNS..." sudo systemctl restart NetworkManager 2>/dev/null echo "✅ 完成!建议重启软件"

macOS 一键屏蔽脚本:

#!/bin/bash HOSTS_FILE="/etc/hosts" DOMAINS=( "www.youtusoft.com" "youtusoft.com" "hostbuf.com" "www.hostbuf.com" "dkys.org" "tcpspeed.com" "www.wn1998.com" "wn1998.com" "pwlt.wn1998.com" "backup.www.hostbuf.com" ) echo "写入 hosts..." for domain in "${DOMAINS[@]}"; do if ! grep -q "$domain" $HOSTS_FILE; then echo "127.0.0.1 $domain" | sudo tee -a $HOSTS_FILE fi done echo "刷新 DNS..." sudo dscacheutil -flushcache sudo killall -HUP mDNSResponder echo "✅ 完成!建议重启软件"
💡 提示:完成屏蔽后请重启 FinalShell,激活状态可保持稳定。