macOS使用TeamViewer ID避免连接失败

作者:matrix 被围观: 13,964 次 发布时间:2019-02-27 分类:零零星星 | 6 条评论 »

这是一个创建于 1847 天前的主题,其中的信息可能已经有所发展或是发生改变。

TeamViewer使用频繁或者被检测到某些ip段中会被标记为商业行为的使用,也就会要求付费。对应的TeamViewer ID也就会被要求进行商业授权许可。
图片4393-macOS切换TeamViewer ID避免连接失败的商业许可
本来之前使用都是正常,今天给朋友远程执行脚本命令,我连接控制了半分钟就提示断开连接「超时后连接被阻断」,然后等待时间过后就提示了监测到「商业行为」。网上说TeamViewer修改了商业行为的判定导致客户大量流失,TeamViewer目前报价对于单用户单连接/年需要¥2500,有点贵啊。期间尝试过mac端的向日葵远程控制端和系统自带的屏幕共享,前者只能查看不能操作,后者完全连接不上亦或使用内网VNC地址成功,使用apple id就连接失败,mac端qq就根本没这个功能。

方法0

使用其他工具:
https://anydesk.com/zhs
https://sunlogin.oray.com/zh_CN/download
http://www.xt800.cn/download

参考:https://www.appinn.com/alternative-teamviewer/

有人建议使用俄罗斯版本:https://www.teamviewer.com/ru/

方法1

申述TeamViewerID为个人用户使用,最快7天内解决申请。
https://www.teamviewer.com/en/support/commercial-use-suspected/

2019年3月11日 22:36收到邮件“Your TeamViewer ID has been reset to free”

图片4452-macOS使用TeamViewer ID避免连接失败

方法2

TeamViewer会把ID进行标记,所以换一个新的ID就可以使用了。
使用虚拟机VirtualBox来使用TeamViewer,如果被检测有商业行为就给虚拟机重新初始化MAC地址。这样就可以切换新ID

方法3

使用脚本修改,切换TeamViewer新ID

感谢@zhovner的一键切换脚本TeamViewer ID Changer for MAC OS解决帮了大忙:

测试版本:TeamViewer for macOs V14.0.13880版本
python 2.7.10测试运行

#!/usr/bin/env python 

#coding:utf-8
import sys
import os
import glob
import platform
import re
import random
import string

print('''
--------------------------------
TeamViewer ID Changer for MAC OS
--------------------------------
''')

if platform.system() != 'Darwin':
    print('This script can be run only on MAC OS.')
    sys.exit();

if os.geteuid() != 0:
    print('This script must be run form root.')
    sys.exit();

if os.environ.has_key('SUDO_USER'):
    USERNAME = os.environ['SUDO_USER']
    if USERNAME == 'root':
       print('Can not find user name. Run this script via sudo from regular user')
       sys.exit();
else:
    print('Can not find user name. Run this script via sudo from regular user')
    sys.exit();

HOMEDIRLIB = '/Users/' + USERNAME  + '/library/preferences/'
GLOBALLIB  =  '/library/preferences/'

CONFIGS = []

# Find config files

def listdir_fullpath(d):
    return [os.path.join(d, f) for f in os.listdir(d)]

for file in listdir_fullpath(HOMEDIRLIB):
    if 'teamviewer'.lower() in file.lower():
        CONFIGS.append(file)

if not CONFIGS:
    print ('''
There is no TemViewer configs found.
Maybe you have deleted it manualy or never run TeamViewer after installation.
Nothing to delete.
''')
# Delete config files
else:
    print("Configs found:\n")
    for file in CONFIGS:
        print file

    print('''
This files will be DELETED permanently.
All TeamViewer settings will be lost
''')
    raw_input("Press Enter to continue or CTR+C to abort...")

    for file in CONFIGS:
        try:
            os.remove(file)
        except:
            print("Cannot delete config files. Permission denied?")
            sys.exit();
    print("Done.")

# Find binaryes

TMBINARYES = [
'/Applications/TeamViewer.app/Contents/MacOS/TeamViewer',
'/Applications/TeamViewer.app/Contents/MacOS/TeamViewer_Service',
'/Applications/TeamViewer.app/Contents/Helpers/TeamViewer_Desktop',
]

for file in TMBINARYES:
    if os.path.exists(file):
        pass
    else:
        print("File not found: " + file)
        print ("Install TeamViewer correctly")
        sys.exit();

# Patch files

def idpatch(fpath,platf,serial):
    file = open(fpath, 'r+b')
    binary = file.read()
    PlatformPattern = "IOPlatformExpert.{6}"
    SerialPattern =  "IOPlatformSerialNumber%s%s%sUUID"

    binary = re.sub(PlatformPattern, platf, binary)
    binary = re.sub(SerialPattern % (chr(0), "[0-9a-zA-Z]{8,8}", chr(0)), SerialPattern%(chr(0), serial, chr(0)), binary)

    file = open(fpath,'wb').write(binary)
    return True

def random_generator(size=8, chars=string.ascii_uppercase + string.digits):
    return ''.join(random.choice(chars) for _ in range(size))

RANDOMSERIAL = random_generator()
RANDOMPLATFORM = "IOPlatformExpert" + random_generator(6)


for file in TMBINARYES:
        try:
            idpatch(file,RANDOMPLATFORM,RANDOMSERIAL)
        except:
            print "Error: can not patch file " + file
            print "Wrong version?"
            sys.exit();

print "PlatformDevice: " + RANDOMPLATFORM
print "PlatformSerial: " + RANDOMSERIAL

print('''
ID changed sucessfully.
!!! Logout User Or Restart computer before using TeamViewer !!!!
''')

脚本执行成功会显示ID changed sucessfully.之后重启电脑或者注销用户启用就好了。之后打开teamViewer会发现是新的ID。

主要兼容11,12,和14.0版本

14.0.13880 mac版本:https://www.malavida.com/en/soft/teamviewer/mac/
14.0.13488 windows:https://www.filepuma.com/download/teamviewer_14.0.13488-20699/
12.0.72647 mac版本:https://teamviewer.en.uptodown.com/mac/download/1510547

P.S. 4月份发现脚本无法切换ID,软件会提示商业使用,但是使用上依然没问题

PEACE~

参考:
https://gist.github.com/zhovner/b1d72f3465c46e7b58a4ea42d625c3e8
https://community.spiceworks.com/topic/1151930-teamviewer-5-minute-timelimit

其他文章:
本文固定链接:https://www.hhtjim.com/switch-macos-teamviewer-id-to-avoid-the-connection-fails.html
matrix
本文章由 matrix 于2019年02月27日发布在零零星星分类下,目前没有通告,你可以至底部留下评论。
转载请注明:macOS使用TeamViewer ID避免连接失败-HHTjim'S 部落格
关键字:, , , ,

有6 条评论 »

  1. 星星 星星 2019-3-22 16:31:27 +0800#1

    按照方法一,已经收到了邮件“Your TeamViewer ID has been reset to free”,但是仍旧无法远程控制 😭 还是图一中的情况,楼主有遇到这种情况?求帮助

    • matrix matrix Moderator 2019-3-22 16:41:23 +0800

      邮件收到之后我就没管了 😂 😂

      如果是用的mac,还是建议还是用方法3,简单快捷
      Windows的话我还真没试过

    • 奶爸de笔记 奶爸de笔记 2019-5-1 0:49:23 +0800

      一楼的可能是马克丁受害者,你需要去真正的官网下载一个新版本客户端使用。另外马克丁应该会通过搜索引擎到这文章,然后博主不要鸟他。

      • matrix matrix Moderator 2019-5-5 14:46:26 +0800

        几年前收到过马克丁的通知邮件,然后我乖乖的把介绍会声会影注册机的文章隐藏了 🙈 🙈

        • 奶爸de笔记 奶爸de笔记 2019-5-5 14:48:39 +0800

          你这主题自动选择表单历史记录有bug啊,要手动输入称呼邮件这些才行,不然选不中。马克丁还举报过我微信,MD

          • matrix matrix Moderator 2019-5-12 14:34:44 +0800

            没太注意浏览器的表单记录。应该是type="text"这种导致的

添加新评论 »

 🙈 😱 😂 😛 😭 😳 😀 😆 👿 😉 😯 😮 😕 😎 😐 😥 😡 😈 💡

插入图片

NOTICE: You should type some Chinese word (like “你好”) in your comment to pass the spam-check, thanks for your patience!