Skip to content

Instantly share code, notes, and snippets.

@zhovner
Last active November 17, 2023 04:25
Star You must be signed in to star a gist
Embed
What would you like to do?
#!/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 !!!!
''')
@Modapkme
Copy link

Thank you for yet another helpful Code. Where else can I find this kind of information written in such a perfect manner? I hope you like my post Waka Mod Apk

@Modapkme
Copy link

I hope you like my post  jerkmat mod apk is free app

@Modapkme
Copy link

@Modapkme
Copy link

@Modapkme
Copy link

@Modapkme
Copy link

@Modapkme
Copy link

@Modapkme
Copy link

I hope you like my post Download the XCall Mod Apk and get access to a whole bunch of features that will improve your gaming experience.

@KissAnim
Copy link

KissAnim commented Sep 8, 2022

gogoanime is an anime streaming site where you can watch anime online in HD quality for free with English subtitles or dubbing.

@jhumar1
Copy link

jhumar1 commented Sep 15, 2022

Good one. can you make one for remove YouTube ads from browser...
https://www.abrasivesshots.com/blog/5+steel-shots

@hassandevelopers
Copy link

hassandevelopers commented Oct 9, 2022

Thank you regarding another informative document. Where else may I get that kind of info outlined in an excellent approach Black Clover Mobile APK Please speak with me.

@Jimmychohankhan
Copy link

I greatly appreciate your careful analysis of Code. Where can I find more thorough information presented in such a beneficial way? chainsaw man 9anime I hope you like my article.

@aeroshotska
Copy link

Good one. can you make one for remove YouTube ads from browser...
https://www.sandblast.in/product/zinc-wire

@shotblasting1
Copy link

Our organigation is known to be one of the truthworthy Supplier, Manufacturers, and Exporters of the Shot Blasting Machine, Sand blasting machine, Thermal Spray Guns, and Abrasive Blasting Media.

@copper63
Copy link

copper63 commented Jan 5, 2023

Copper Slag :
Copper slag is a byproduct of copper extraction from copper ore. It is composed of the non-metallic components that are left over after the copper has been extracted from the ore. Copper slag is typically made up of a mixture of silica, alumina, and iron, which are all elements that are commonly found in copper ore.

@steelgrit
Copy link

Zinc Wire is a great material decision for erosion security in both climatic and marine conditions. Utilizing either the electrical bend splash weapon or burning wire fire shower firearm, Zinc Spray Gun, Zinc Wire Coating of those materials go about as conciliatory anodes, galvanically ensuring amalgam or steel substrates. Many years of hands-on work utilizing these Zinc coatings have unmistakably exhibited that they are definitely more successful and longer-enduring than hot-plunge exciting.

@WorldWideWebDev
Copy link

Zinc Wire is a great material decision for erosion security in both climatic and marine conditions. Utilizing either the electrical bend splash weapon or burning wire fire shower firearm, Zinc Spray Gun, Zinc Wire Coating of those materials go about as conciliatory anodes, galvanically ensuring amalgam or steel substrates. Many years of hands-on work utilizing these Zinc coatings have unmistakably exhibited that they are definitely more successful and longer-enduring than hot-plunge exciting.

Do you actually think you can sell this crap here on Github? Far out,,, the idea//

@Jimmychohankhan
Copy link

TeamViewer-id-changer.py is a script written in Python that allows you to change the ID of your TeamViewer like tubi tv mod apk installation. It works by generating a new random ID and then modifying the registry entries associated with TeamViewer on your system.

@manontop
Copy link

Does this also work with TeamViewer 15?

@yashvs898
Copy link

The [aluminum oxide] particles used in grit blasting are typically very small and range in size from around 40 to 400 microns. These particles are propelled through the nozzle using compressed air, which creates a high-pressure stream that blasts away surface contaminants.
(https://shotsblastingmachine.com/aluminum-oxide-grit-blasting-media/)

@Gimytv
Copy link

Gimytv commented May 22, 2023

Gimy劇迷, 煲劇, 劇迷戲劇, 劇迷電影, Gimy戲劇, Gimy電視劇,劇迷影音,韓劇線上看, 台劇線上看,韓劇線上看,電影線上看

@harrypotter9501
Copy link

Aluminum-oxide-grit
In conclusion, aluminum oxide grit blasting is a highly effective and environmentally friendly surface preparation technique that is used in a wide range of industries. The process is capable of removing surface contaminants from a wide range of materials, including metal, plastic, and wood, and is ideal for preparing surfaces for painting, bonding, or coating. However, it is important to take appropriate safety measures when performing aluminum oxide grit blasting to avoid potential health risks and surface damage.

@robinuttapaa
Copy link

Steel shots
It's important to note that the selection of steel shots and the specific parameters for each application may vary based on factors such as the material being treated, desired surface finish, environmental considerations, and safety requirements. Consulting with industry experts or manufacturers is recommended to ensure the best results and adherence to specific industry standards and regulations.

@strng123
Copy link

the codes are really helpful for me to create apksvillage, and it makes too much easy for me to made my first mod and crack version.

@akiarasingh295
Copy link

I recently switched to using Shot Blaster's steel shots for our construction projects, and the difference has been remarkable. The increased productivity and improved surface quality have not only saved us time but also boosted our project outcomes. Shot Blaster has definitely become our go-to supplier for steel shots.

@Stryill
Copy link

Stryill commented Oct 10, 2023

please visit Pikashow Apk for IOS, and enjoy live streamings free on it

@Stryill
Copy link

Stryill commented Oct 10, 2023

must play Madfut 24 Download an amazing game with an entertaining gameplay.

@kamrenolandreo
Copy link

kamrenolandreo commented Oct 24, 2023

Utilizing the Team function in the synthesia io allows for collaborative efforts within the platform. This feature enhances communication and coordination, making it easier for multiple users to work together effectively and efficiently.

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