Skip to content

Instantly share code, notes, and snippets.

@zhovner
Last active October 7, 2024 16:56
Show Gist options
  • Save zhovner/b1d72f3465c46e7b58a4ea42d625c3e8 to your computer and use it in GitHub Desktop.
Save zhovner/b1d72f3465c46e7b58a4ea42d625c3e8 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import platform
import random
import re
import string
import sys
print('''
--------------------------------
TeamViewer 14 ID Changer for MAC OS
Version: 0.2 2019
--------------------------------
''')
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/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 -f -s - /Applications/TeamViewer.app/")
print('''
ID changed sucessfully.
!!! Restart computer before using TeamViewer !!!!
''')
@ItsVenom1
Copy link

The MOD APK version of CarX Street introduces an array of exhilarating features that set it apart from the conventional version. Players can relish: xouda the website is working good i check it

@50game100
Copy link

Download Alight Motion MOD APK Pro Version for free and take your video editing to the next level. Create stunning Videos on Mobile

@50game100
Copy link

Alight Motion is a versatile animation and video editing app that allows users to craft stunning animations and videos right on their mobile devices.

@webngfx
Copy link

webngfx commented Jan 18, 2024

Looking for a Wr3d 2k24 MOD APK they have updated on their site.

@kamriclandreo
Copy link

Unlock a richer gaming experience with the TeamViewer ID changer, enabling seamless access to the FGO JP game. Enjoy enhanced flexibility and convenience as you explore the virtual realms.

@kamrickandreo
Copy link

TeamViewer-id-changer.py is a Python script that resolves identification issues within TeamViewer. This ingenious solution leverages Gemini AI technology, ensuring seamless ID modifications. By implementing this script, users can effortlessly address and overcome challenges related to TeamViewer identification, enhancing flexibility and streamlining remote access processes.

@jackjason123
Copy link

This is an amazing gameplay Dragon Ball Xenoverse 2 Apk
download. I love to play it

@Stryill
Copy link

Stryill commented Apr 24, 2024

Silent Castle Mod Apk offers realistic graphics and simple controls. So, progress through the game levels and master your defense abilities. You can move to different locations and hide behind the pillars. Be silent in your space when you inspect any specific area in the castle.

@kamronanthreo
Copy link

By using Devin AI, the trailblazing AI software engineer, you can effectively tackle the challenge posed by TeamViewer-id-changer.py, receiving comprehensive support and groundbreaking solutions to overcome any obstacles encountered.

@Stryill
Copy link

Stryill commented May 21, 2024

Picsart For IOS breaks all the barriers and allows you to download the Picsart App for iOS. Indeed, the iPhone is always famous for HD snaps or images. You get a better appearance in IOS as compared to Android.

@Stryill
Copy link

Stryill commented Jul 17, 2024

temple of shadows mod apk and tekken 4 apk download one of the best games to spend a quality and entertaining time.

@dramasqtv
Copy link

if you are interested to watch free online shows of Korea on freeportal like Dramasq then you are on the perfect point to get them...

@dramasqtv
Copy link

韓劇網,韓劇線上看,韓劇推薦,韓劇排行榜,韓國電視線上看,最新韓劇, 韓劇網

@dramasqtv
Copy link

dramasq-劇Q線上看,韓劇,日劇,陸劇,台劇,線上看

@dramasqtv
Copy link

楓林網,楓林網电影,韓劇線上看,台劇線上看,韓劇線上看,電影線上看,陸劇線上看

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment