Xshell6破解/Xftp破解/NetSarang软件破解



  • NetSarang 家产品接口写好了:
    获取直接下载链接(302跳转官网):
    模板:https://image.moeclub.org/NetSarang/<产品>/<版本>
    示例:https://image.moeclub.org/NetSarang/xshell/p
    产品:xshell, xmanager, xlpd, xftp
    版本:p(个人版), r(企业版)
    获取产品注册码(非官方):
    模板:https://image.moeclub.org/NetSarang/<产品>/key
    示例:https://image.moeclub.org/NetSarang/xshell/key


    破解方法:

    首先卸载已安装的个人版,下载企业版,使用 API 生成 Key 并输入。安装后运行一次软件,会提示授权无效,把软件关掉。之后,将下面的代码保存到一个 .ps1 文件:

    <#
      # Deny NetSarang write register by Powershell 
      #                  Author: MoeClub.org
    
    #>
    # Ask for elevated permissions if required
    If (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]"Administrator")) {
    	Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs
    	Exit 0
    }
    
    Function SetAccess($REG) {
        If (!(Test-Path "$REG")) { Return }
        $acl = Get-Acl -Path "$REG"
        $sddl = "O:BAG:BAD:PAI(A;CI;CCSWRPSDRCWO;;;WD)"
        $acl.SetSecurityDescriptorSddlForm($sddl)
        Set-Acl -Path "$REG" -AclObject $acl 2>&1>$Null
        If ( "$?" -eq "False" ) { Write-Host "Error[Access]: $REG"; } Else { Write-Host "Success: $REG"; }
        Return
    }
    
    Function InitReg($REG) {
        If (Test-Path "$REG") {
            Remove-Item -Path "$REG" -Force 2>&1>$Null
            If ( "$?" -eq "False" ) { Write-Host "Error[Delete]: $REG"; Return }
        }
        If (!(Test-Path "$REG")) { New-Item -Path "$REG" -Force 2>&1>$Null }
        New-ItemProperty -Path "$REG" -Name "CheckInReturn" -PropertyType String -Value "Y" -Force 2>&1>$Null
        New-ItemProperty -Path "$REG" -Name "EnableLiveUpdate" -PropertyType DWord -Value "0" -Force 2>&1>$Null
        New-ItemProperty -Path "$REG" -Name "LiveUpdateInterval" -PropertyType DWord -Value "6209" -Force 2>&1>$Null
        SetAccess "$REG"
    }
    
    $REG_ITEM = @(
        "HKCU:\Software\NetSarang\Xshell\6\LiveUpdate",
        "HKCU:\Software\NetSarang\Xmanager\6\LiveUpdate",
        "HKCU:\Software\NetSarang\Xlpd\6\LiveUpdate",
        "HKCU:\Software\NetSarang\Xftp\6\LiveUpdate"
    )
    
    Write-Host "`nInit Reg ...";
    $Del_REG = "$env:TEMP\Del_REG.txt"
    $REG_Value = "Windows Registry Editor Version 5.00"
    foreach($REG in $REG_ITEM){ $REG_Value += -Join("`n", $("$REG" -replace "HKCU:","[-HKEY_CURRENT_USER"), "]") }
    New-Item -Path "$Del_REG" -Type File -Force -Value "$REG_Value" 2>&1>$Null
    Regedit /s "$Del_REG"
    
    foreach($REG in $REG_ITEM){ Write-Host "`nSetting: $REG"; InitReg "$REG"; }
    Remove-Item -Path "$Del_REG" -Force 2>&1>$Null
    Write-Host "`nPress <Enter> to exit..."
    [System.Console]::ReadKey() 2>&1>$Null
    

    然后使用 PowerShell,进入这个脚本所在目录然后执行它(有的情况下,可能右键就有以 PowerShell 执行的选项)。不过如果你的 PowerShell 有这个输出的话:

    .\NetSarang.ps1 : File C:\NetSarang.ps1 cannot be loaded because running
    scripts is disabled on this system. For more information, see about_Execution_Policies at
    https:/go.microsoft.com/fwlink/?LinkID=135170.
    At line:1 char:1
    + .\NetSarang.ps1
    + ~~~~~~~~~~~~~~~
        + CategoryInfo          : SecurityError: (:) [], PSSecurityException
        + FullyQualifiedErrorId : UnauthorizedAccess
    

    你需要先执行以下这个命令:

    Set-ExecutionPolicy RemoteSigned 
    

    然后再执行 ps1 脚本就 ok 了。


    以上 API 和脚本均来自 萌咖 大佬。
    消息来源:TG Message


Log in to reply
 

友情链接:無位小站 WebSocks 主机博客 Mr.Kevin 逗比根据地