- 0x2a94b5 / TeamViewer-15-id-changer-for-mac.py
- This comment has been minimized.
- marble-it commented Oct 5, 2021
- This comment has been minimized.
- This comment has been minimized.
- marble-it commented Oct 7, 2021
- How to Reset the TeamViewer ID After Cloning a Mac
- How to Reset the TeamViewer ID After Clonging a Mac
- What the various commands mean
- teamviewer 14 сброс ID
- Поделиться ссылкой:
- СХОЖИЕ СТАТЬИБОЛЬШЕ ОТ АВТОРА
- 1С 7.7 выбрать принтер по умолчанию
- Corel Draw незаконное программное обеспечение
- РЕШЕНО: База данных не может быть открыта в однопользовательском режиме
- 41 КОММЕНТАРИИ
0x2a94b5 / TeamViewer-15-id-changer-for-mac.py
#!/usr/bin/env python |
# -*- coding: utf-8 -*- |
# |
# System: macOS Mojave 10.14.6 |
# Version: TeamViewer v15.2.2756 |
# Python: 2.7.10 |
# Command: sudo python TeamViewer-15-id-changer-for-mac.py |
# |
import os |
import platform |
import random |
import re |
import string |
import sys |
print ( »’ |
——————————— |
TeamViewer ID Changer for MAC OS |
——————————— |
»’ ) |
if sys . version [ 0 : 1 ] != «2» : |
print ( «This script can be run only on Python27.» ) |
sys . exit () |
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 «SUDO_USER» in os . environ : |
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’ in file . lower (): |
CONFIGS . append ( file ) |
for file in listdir_fullpath ( GLOBALLIB ): |
if ‘teamviewer’ 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. |
»’ ) |
else : |
# Delete config files |
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/MacOS/TeamViewer_Desktop’ , |
‘/Applications/TeamViewer.app/Contents/Helpers/Helper’ , |
‘/Applications/TeamViewer.app/Contents/Helpers/TeamViewer_Assignment’ |
] |
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%s» |
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 . ascii_lowercase + string . digits ): |
return » . join ( random . choice ( chars ) for _ in range ( size )) |
RANDOMSERIAL = random_generator ( 8 ) |
RANDOMPLATFORM = «IOPlatformExpert» + random_generator ( 6 ) |
for file in TMBINARYES : |
try : |
idpatch ( file , RANDOMPLATFORM , RANDOMSERIAL ) |
except : |
print ( «Error: can not patch file » + file ) |
sys . exit () |
print ( «PlatformDevice: » + RANDOMPLATFORM ) |
print ( «PlatformSerial: » + RANDOMSERIAL ) |
os . system ( «sudo codesign —force —deep —sign — /Applications/TeamViewer.app/» ) |
print ( »’ |
ID changed sucessfully. |
. Restart computer before using TeamViewer . |
»’ ) |
This comment has been minimized.
Copy link Quote reply
marble-it commented Oct 5, 2021
I downloaded the .py file but I have no clue how to run it. Sorry.
This comment has been minimized.
Copy link Quote reply
This comment has been minimized.
Copy link Quote reply
marble-it commented Oct 7, 2021
Hello,
thx for the quick reply.
I tried it installing 2.7 Python and then, after having deleted the 2.7, I tried even with the 3.10.
This is what I get on mac terminal (that is the terminal I should use, right?).
When I open again the TeamV, I get the window like it’s the first installation but the ID is always the same.
Thank you again for your support
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Источник
How to Reset the TeamViewer ID After Cloning a Mac
Recently, I set up a new MacBook Pro for my step-mom where I used Apple’s Migration Assistant to easily copy over all of her data, applications and preferences. One of the applications that I actually use on her machine is TeamViewer which is fanstanstic if you need to provide remote assistance to a Mac or PC (you can actually set up a free account – I highly recommend this service). So one of the first things that I do is to configure TeamViewer on any machine that I may need to provide remote assistance to. As part of the Migration Assistant process, TeamViewer was copied over to the new Mac so I didn’t need to reconfigure anything…or so I thought.
There was a problem though. As I was going to reconfigure the old Mac for my daughter, I was also going to set up TeamViewer on that Mac. Sounds great right? Wrong. When TeamViewer sets up the TeamViewer ID, it makes it so that you cannot easily change it. Unfortunately, that means that on cloned Mac systems, the TeamViewer ID will be the same on the old and the new Macs, pretty much rendering TeamViewer useless when both cloned and original Macs are running.
I had read some support posts and tested out some things (like changing the MAC address) to try to reset the TeamViewer ID but until I actually contacted TeamViewer support, none of the other fixes worked. So, instead of having to search for the solution, I figured I would write out the easy steps to reset the TeamViewer ID.
How to Reset the TeamViewer ID After Clonging a Mac
Here are the steps (which I slightly modified by adding some additional lines for the latest version 10 of TeamViewer) to reset the TeamViewer ID. The commands below are for the Mac. (I would expect the process for a PC to be different so I’m not covering how to do this on the PC.)
NOTE: YOU NEED TO RUN THESE COMMANDS ON THE NEW (CLONED) MAC, NOT THE ORIGINAL MAC.
These are terminal commands, meaning you need to launch the Terminal application (usually found under Applications > Utilities).
This is what TeamViewer Support provided me with:
(In case there are questions about the characters, here is an image with the commands.)
However, since I had installed TeamViewer version 10, there were some other .plist files specifically for version 10.
You can check to see which version you have by going to the Finder and choosing the “Go” menu and “Go to Folder…”. You then put in “
/Library/Preferences/“ and look for the “com.teamviewer.teamviewer10.plist” for example.
So if you have TeamViewer 10 installed, you will want to add some of these commands as well.
Here is the image of the commands to reset the TeamView ID:
Once you run these commands to reset the TeamViewer ID, everything should work ok.
What the various commands mean
You should never run terminal commands unless you know what you are doing and what the commands mean and do. For reference, I explain each of these commands. If you ever need to know what the commands mean, just go into termain and type “man” (for manual) and the command. For example, the first one here was from “man defaults”.
- Defaults – allows users to read, write, and delete Mac OS X user defaults from a command-line shell. Mac OS X applications and other programs use the defaults system to record user preferences and other information that must be maintained when the applications aren’t running (such as default font for new documents, or the position of an Info panel). Much of this information is accessible through an application’s Preferences panel, but some of it isn’t, such as the position of the Info panel.
- Defaults Delete – removes the default information.
- rm – The rm utility attempts to remove the non-directory type files specified on the command line.
- -f – Attempt to remove the files without prompting for confirmation, regardless of the file’s permissions. If the file does not exist, do not display a diagnostic message or modify the exit status to reflect an error.
- Sudo – sudo allows a permitted user to execute a command as the superuser or another user, as specified in the sudoers file. The real and effective uid and gid are set to match those of the target user as specified in the passwd file and the group vector is initialized based on the group file (unless the -P option was specified). If the invoking user is root or if the target user is the same as the invoking user, no password is required. Otherwise, sudo requires that users authenticate themselves with a password by default (NOTE: in the default configuration this is the user’s password, not the root password).
These commands and the process outlined worked as I now have both the cloned and original MacBook Pros with different TeamViewer IDs. Also, there is a setting buried in the Advanced part of the TeamViewer that allows you to uninstall the application including the configuration files.
I didn’t test this process but it try using other 3rd party uninstallers which are supposed to remove all traces of the app including .plists. Unfortunately the uninstallers still produced the same TeamViewer ID.
Regardless, I highly recommend using TeamViewer as a personal support tool for helping remote family members with technology issues. Again, it is free to use for personal use but if you are going to use it in a business or corporate environment, you need to purchase a license.
HTD says: Once you know the commands, it’s pretty easy to reset the TeamViewer ID.
Источник
teamviewer 14 сброс ID
Лекарство от жадности teamviewer в архиве
Поделиться ссылкой:
СХОЖИЕ СТАТЬИБОЛЬШЕ ОТ АВТОРА
1С 7.7 выбрать принтер по умолчанию
Corel Draw незаконное программное обеспечение
РЕШЕНО: База данных не может быть открыта в однопользовательском режиме
41 КОММЕНТАРИИ
большое спасибо, все работает
А для Mac OS есть подобное средство?
Все работает прекрасно. Winows7 64b
работает. только прогу кидайте в папку с тимом…
Аналогично.. Windows 10 обновилась и (то ли совпадение, то ли нет) такое же сообщение получаю.
Ребята, работает, если забросить эту штуку в каталог самого тим вивера. Тоже как-то думал, что не работает с такой ошибкой
Спасибо! Прога скинула id. Теперь у меня пробная версия на 7 дней.
Супер, раньше ходил длинной дорогой на 13, а на 14 помогла только эта прога. Супер. Как работает, что меняет ….
работает норм! благодарю.
Дружище, это просто праздник судьбы. Я протрахался с изменением мак адресов, меток томов, дат создания программных папок, потратил в общей сложности день где-то, а тут такое простое и работающее решение. ++ в карму тебе.
Полностью поддерживаю, все так, нечего добавить)
Подтверждаю, все заработало, до этого было с мая ограничение аля за коммерческое использование
VirusTotal ругается на BScope.Trojan.Skeeyah
Спасибо всё робит Windows 8.1 — TeamViewer 14.5.5819 Final
А для чего спрашивать пароль? У меня всё распаковалось без пароля… 😉
это ЧУДО какое-то.
Спасибо все работает Win 7×64 max — TeamViewer 14.3.4730P
Всё работает ровно и уверенно! Спасибо. Для таких, как ты, предусмотрен отдельный котёл в раю))))
Супер! Сработало! Сбросил ID на версии 14 (совет: выбирайте пункт ‘free’), а потом у отца оказалась версия 15. Мне пришлось обновиться, но ID никуда не слетело и я смог ему помочь удалённо! Спасибо! P.S. Спасибо Игорю за подсказку: бросить файл в папку с тимом! =)
Спасибо! Сработало. А то почему-то метод со сменой VolumeID + даты Programm Files + MAC + чистка реестра перестал работать. А тут в один клик 🙂
На 15 версии тоже сработало. Спасибо огромное автору.
Подтверждаю, на 15 работает! Win7x64sp1pro.
кто это сделал ты просто великолепен
работает великолепно в том числе с последней версией, укажи на сайте ссылку на донат, хочется тебя отблагодарить за такую утилиту
Источник