FinalShell 离线激活 · 常见问题

激活后若提示无效,多为软件二次回连校验所致,按下方屏蔽方案处理即可

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

可能原因如下:

2如何防止被二次校验 / 恶意回连?

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

① Hosts 屏蔽域名

Hosts 文件位置:

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

屏蔽 IP 列表
101.32.72.254
45.56.98.223
193.9.44.7
103.99.178.153
47.76.185.223

③ 分系统操作

Windows 防火墙设置步骤:

  • 打开「Windows Defender 防火墙」
  • 点击「高级设置」
  • 选择「出站规则」→「新建规则」
  • 类型选择「自定义」或「IP」
  • 在远程 IP 中填写上述地址
  • 操作选择「阻止连接」
  • 保存规则即可
一键屏蔽脚本(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")
一键回滚脚本(恢复默认)
# 删除 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,激活状态即可保持稳定。
← 返回激活码生成
已复制到剪贴板