吾爱破解 - 52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 10024|回复: 68
上一主题 下一主题
收起左侧

[原创汉化] RustDesk ID修改器(汉化版)

[复制链接]
跳转到指定楼层
楼主
axin1234 发表于 2024-12-13 11:13 回帖奖励
之前看到有大佬发表了rustdeskID修改器的bat文件版,使用起来感觉全是英文,不是很友好,然后就有了如下的汉化版。不足之处,还望大佬指正。谢谢!


下载地址如下: RustDesk ID修改器(汉化版).zip (56.43 KB, 下载次数: 481)

免费评分

参与人数 12吾爱币 +18 热心值 +12 收起 理由
远方的选择 + 1 + 1 热心回复!
拼尽此生欢 + 1 + 1 谢谢@Thanks!
raincryforyou + 1 + 1 谢谢 @Thanks!
shileiye + 1 + 1 1.3.5版本客户端自带改ID了
15235109295 + 1 + 1 热心回复!
星轨零光 + 1 + 1 谢谢@Thanks!
Qukongkong + 1 + 1 谢谢@Thanks!
echoofw + 1 + 1 热心回复!
yihan01 + 1 + 1 我很赞同!
xy6538 + 1 + 1 谢谢@Thanks!
gengyin + 1 + 1 谢谢@Thanks!
风之暇想 + 7 + 1 感谢发布原创作品,吾爱破解论坛因你更精彩!

查看全部评分

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

推荐
shileiye 发表于 2025-2-17 20:06
还是源码好看点,可以自定义安装位置
[Asm] 纯文本查看 复制代码
:: 信息:
:: RustDesk Github: [url]https://github.com/rustdesk/rustdesk[/url]

:: RustDesk ID Changer Github: [url]https://github.com/abdullah-erturk/RustDesk-ID-Changer[/url]

::===============================================================================================================
@echo off
mode con:cols=90 lines=30
title RustDesk ID Changer 由 mephistooo2 ^| [url]www.TNCTR.com[/url]
net file 1>nul 2>nul && goto :Main || powershell -ex unrestricted -Command "Start-Process -Verb RunAs -FilePath '%comspec%' -ArgumentList '/c ""%~fnx0""""'"
goto :eof
::===============================================================================================================
:Main
cls
if exist "C:\Program Files\RustDesk\rustdesk.exe" (
cd "C:\Program Files\RustDesk\"
for /f "delims=" %%i in ('rustdesk.exe --get-id ^| more') do set rustdesk_id=%%i
goto :Run
) else (
echo.
echo RustDesk 未安装,请先安装 RustDesk。
echo.
echo 按任意键退出。
pause >nul
exit
)
:Run
pushd %temp% >nul 2>&1
echo.
echo ==========================================================================================
echo.
echo	  RustDesk ID Changer 由 mephistooo2 ^| TNCTR.com
echo.
echo	 	  1 - 使用计算机名设置 RustDesk ID : "%computername%"
echo.
echo	 	  2 - 使用9位随机数字设置 RustDesk ID
echo.
echo	 	  3 - 设置为您指定的 RustDesk ID
echo.
echo	 	  4 - 退出
echo.
echo ==========================================================================================
echo.
choice /c 1234 /cs /n /m "请选择: "
echo.
if errorlevel 4 Exit
if errorlevel 3 goto :ID_UserDefined
if errorlevel 2 goto :ID_Random
if errorlevel 1 goto :ID_Host
echo.
::===============================================================================================================
:ID_Host
echo.
echo Stop-Service RustDesk > RustDesk_ID_Host.ps1
echo taskkill /im rustdesk.exe /f >> RustDesk_ID_Host.ps1
echo $id = Get-Content "C:\Windows\ServiceProfiles\LocalService\AppData\Roaming\RustDesk\config\RustDesk.toml" ^| Select-Object -Index 0 >> RustDesk_ID_Host.ps1
echo $hostname = hostname >> RustDesk_ID_Host.ps1
echo Write-Host "当前 ID: %rustdesk_id%" >> RustDesk_ID_Host.ps1
echo $newId = "id = '$hostname'" >> RustDesk_ID_Host.ps1
echo Write-Host "新 ID: $newId" >> RustDesk_ID_Host.ps1
echo $fileContent = Get-Content -Path "C:\Windows\ServiceProfiles\LocalService\AppData\Roaming\RustDesk\config\RustDesk.toml" >> RustDesk_ID_Host.ps1
echo $newContent = $fileContent -replace [regex]::Escape($id), $newId >> RustDesk_ID_Host.ps1
echo $newContent ^| Set-Content -Path "C:\Windows\ServiceProfiles\LocalService\AppData\Roaming\RustDesk\config\RustDesk.toml" >> RustDesk_ID_Host.ps1
echo Restart-Service RustDesk >> RustDesk_ID_Host.ps1
powershell.exe -ExecutionPolicy Bypass -File RustDesk_ID_Host.ps1
start "" "C:\Program Files\RustDesk\rustdesk.exe" --tray
goto :done
::===============================================================================================================
:ID_Random
echo.
echo Stop-Service RustDesk > RustDesk_ID_Random.ps1
echo taskkill /im rustdesk.exe /f >> RustDesk_ID_Random.ps1
echo $randomId = -join ((48..57) ^| Get-Random -Count 9 ^| ForEach-Object {[char]$_}) >> RustDesk_ID_Random.ps1
echo $id = Get-Content "C:\Windows\ServiceProfiles\LocalService\AppData\Roaming\RustDesk\config\RustDesk.toml" ^| Select-Object -Index 0 >> RustDesk_ID_Random.ps1
echo Write-Host "当前 ID: %rustdesk_id%" >> RustDesk_ID_Random.ps1
echo $newId = "id = '$randomId'" >> RustDesk_ID_Random.ps1
echo Write-Host "新 ID: $newId" >> RustDesk_ID_Random.ps1
echo $fileContent = Get-Content -Path "C:\Windows\ServiceProfiles\LocalService\AppData\Roaming\RustDesk\config\RustDesk.toml" >> RustDesk_ID_Random.ps1
echo $newContent = $fileContent -replace [regex]::Escape($id), $newId >> RustDesk_ID_Random.ps1
echo $newContent ^| Set-Content -Path "C:\Windows\ServiceProfiles\LocalService\AppData\Roaming\RustDesk\config\RustDesk.toml" >> RustDesk_ID_Random.ps1
echo Restart-Service RustDesk >> RustDesk_ID_Random.ps1
powershell.exe -ExecutionPolicy Bypass -File RustDesk_ID_Random.ps1
start "" "C:\Program Files\RustDesk\rustdesk.exe" --tray
goto :done
::===============================================================================================================
:ID_UserDefined
echo.
echo Stop-Service RustDesk > RustDesk_ID_UserDefined.ps1
echo taskkill /im rustdesk.exe /f >> RustDesk_ID_UserDefined.ps1
echo $id = Get-Content "C:\Windows\ServiceProfiles\LocalService\AppData\Roaming\RustDesk\config\RustDesk.toml" ^| Select-Object -Index 0 >> RustDesk_ID_UserDefined.ps1
echo 新的 RustDesk ID 值必须至少为 6 个字符
timeout /t 2 >nul 2>&1
echo.
echo $newId = Read-Host "输入 RustDesk ID" >> RustDesk_ID_UserDefined.ps1
echo Write-Host "当前 ID: %rustdesk_id%" >> RustDesk_ID_UserDefined.ps1
echo $newId = "id = '$newId'" >> RustDesk_ID_UserDefined.ps1
echo Write-Host "新 ID: $newId" >> RustDesk_ID_UserDefined.ps1
echo $fileContent = Get-Content -Path "C:\Windows\ServiceProfiles\LocalService\AppData\Roaming\RustDesk\config\RustDesk.toml" >> RustDesk_ID_UserDefined.ps1
echo $newContent = $fileContent -replace [regex]::Escape($id), $newId >> RustDesk_ID_UserDefined.ps1
echo $newContent ^| Set-Content -Path "C:\Windows\ServiceProfiles\LocalService\AppData\Roaming\RustDesk\config\RustDesk.toml" >> RustDesk_ID_UserDefined.ps1
echo Restart-Service RustDesk >> RustDesk_ID_UserDefined.ps1
powershell.exe -ExecutionPolicy Bypass -File RustDesk_ID_UserDefined.ps1
start "" "C:\Program Files\RustDesk\rustdesk.exe" --tray
goto :done
::===============================================================================================================
:done
del RustDesk_ID_Host.ps1 >nul 2>&1
del RustDesk_ID_Random.ps1 >nul 2>&1
del RustDesk_ID_UserDefined.ps1 >nul 2>&1
echo.
echo	 处理完成
echo.
choice /C:MX /N /M "按 M 返回主菜单 -- 按 X 退出: "
if errorlevel 2 Exit
if errorlevel 1 goto :Main
::===============================================================================================================
沙发
gengyin 发表于 2024-12-14 20:33
3#
gengyin 发表于 2024-12-14 20:44
改了以后连接提示id不存在,后面才发现是区分大小写
4#
又是馒头 发表于 2024-12-15 09:07
下载试试
5#
wapj2900958 发表于 2024-12-15 09:55
真666啊,谢谢了
6#
周爱瑶 发表于 2024-12-15 16:07
感谢楼主的分享
7#
gaoec 发表于 2024-12-16 11:43
终于等到你了!正需要
8#
nicksean 发表于 2024-12-16 12:21
感谢楼主分享
9#
hh7418695 发表于 2024-12-16 14:58
好像有点用哈哈哈哈,虽说官方的修改也是随便的,
10#
aYuNi 发表于 2024-12-16 15:16
牛批,拿走了,
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

返回列表

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - 52pojie.cn ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2026-5-7 14:14

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表