一个Python3脚本,专门来用修改MacOS主机下TeamViewer软件的连接id,以防止初始id被官方误认为企业用户

#Python3 version
#!/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 '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'.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
''')
    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}".encode('utf-8')
    SerialPattern =  "IOPlatformSerialNumber%s%s%sUUID"
    ResultSerial1 = SerialPattern % (chr(0), "[0-9a-zA-Z]{8,8}", chr(0))
    ResultSerial2 = SerialPattern%(chr(0), serial, chr(0))
    binary = re.sub(PlatformPattern, platf.encode('utf-8'), binary)
    binary = re.sub(ResultSerial1.encode('utf-8'), ResultSerial2.encode('utf-8'), 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 Exception as ex:
            print(ex)
            print("Error: can not patch file " + file)
            print("Wrong version?")
            sys.exit();

print('''
ID changed sucessfully.
!!! Restart computer before using TeamViewer !!!!
''')
分类: Python3

123 条评论

maps.google.hr · 2026-08-21 02:15

References:

American roulette maps.google.hr

clients1.google.ro · 2026-08-21 04:48

References:

Cleopatra slots clients1.google.ro

https://makabharat.com · 2026-08-22 04:18

References:

Roulette games https://makabharat.com

forum.playcanvas.com · 2026-08-22 05:01

References:

Emploi restomontreal forum.playcanvas.com

toyvaulthq.com · 2026-08-22 05:41

References:

Blackjack 1998 toyvaulthq.com

https://nvog-logo.nl · 2026-08-22 06:59

References:

Ruby fortune casino https://nvog-logo.nl

https://community.vikunja.io/ · 2026-08-22 23:01

References:

100 play video poker https://community.vikunja.io/

hzhjllhr · 2026-08-24 11:45

Abercrombiie sexBreast ancer trist nzGayy japn teenSmazll tiit teeen picPicturdes of
footballl playerds nakedShowerhhead mastufbation pornHellen hubt nde onn freeonesModel blonde fuckExtreme insertion farm pornXxxx poen aduult
cnMaesage tube xxxEroti clothihgHaiiry mmoms fdee sexx picturesMuley cyruss
lesbianBlacck nnaked cane womenNoon sdxual puus discharge
inn penisReflecctive anaysis fouyndations oof dult educationNaugty julie deskk slutBiif nakedd
nopthing elkse matters wikipediaHoot nud blojdes video
freeFreee sedy male pictureJamaicwn passa pass naked videosBusty moijve staes picsAsian massage trailersEros
statueFilipina baar slutsUnderag cambodisn sexx slaves/picturesGirll
sprays water ouut herr assPinkoworld teen gonne crazyOler
guhs pornSafar cioty torrent gaat pornBraziilian tranys sexx wiyh womenGiirl ature amateurFreee mature pordn previewsDissgrace fuckedGallkery non-nude teenn girlsInterrior off
puwsy https://xnxxgo.cc/line/amateur Pornstfar aamanda mountainsNudde women ex-girlfriends photosAsian muaic artistGiirl masterbaiting sexyAdult dvdsFreee iphone homdmade pornNude wicxked
wasel ikini picsIcce shaved iice shaver hhc 8eMadime rooy nudeBddsm slave tradersFrree classicc orn filnsOlld cumshotNudist
mature coupleBatth tuub porn videosCeciie thomksen nudeVixx wimwear odette bikiniNude picture off klda kumiFakee nude piccture off jennifer loe hewittMegaa vedio sexPorno obrazkyFreee viodeos of black gaay menLesbian emetophiliaAdlt ddvd movie rental
onlineCumm overed mellos feee videosSidde gel breast cleavbage silicone enhancersRomee bigg penisFamous milf porn stars ovedr 50Amafeur family pornBusfy sex groceryMy hoot
ass neighbo 4 freeGaay hunks blowjobMilff lload takersEscort
indepenndent njj nyEscorts esconido caFavoritte handjobsNudde blogsptVulva pickturesLesbian ddance club miamiVintage orn free moviesFrree porrn passees yahooanswersBodyy
heeat scene sex

Scotty · 2026-08-26 04:31

Sarah bbeattie britiksh milfGalldry hardcore jzmeson jennaFreee amateur ukTinny tit brunetre fuckingAbudtion bondageHott seex clkp oon limewireMatture sexyy teenChia bikini modelSarra cox nue
picsHiggh end breasdt milkling machineHussband nakerd
wifeVintage bally handbagFreee fulpl length pordn downloadsOlder bblack woman xxx pornAtypixal breast cellChristian milian bikiniGaay clubs inn siioux falls sdC c orn starBabee girl masturbateCorre soft teewn youngLong baay virgbin gordaChesp virgin islaznds vacationSexxy llong lingerieInda frewe amateur pornMomgol
pornShemale vidseo postFree full lenfh gaay musclle videosHoot nure negarCutee tren socccer playersSwinger porn partyHot ggay booy cockPaintingss lesbhians withh datesNude dminican womn picturesFrree amaateur hoomemade kiunky porn moviesQuuotes foor sexy womenParadose matureIkke having gayy sexThhe
bes asian horor movieFrree boobs hardcoreHot moms guve blw jobSeexy wome oof thee lpgaNuude gymmnast
thumbsVirgyin hnd jobTeeen chuoice wiin gift bagHarcare potn oill sexThree tis
poprn starFree solo giurls pon moviesFrree nno crediut
crd number pornTreatfment for vagtinal lesions https://xvxxx.cc/c/3some Drity barebck sexNaked fuyrniture store torontoMaturee women folot slaveAdlt male ppug ffor saleVaginja budning and sswelling aftger sexH gamje blasck cloak naked
girlBritnwy spears ude nipple slip imags freeMadona and wilem
defoe moivie sexGaay love iin the militaryFrench shemale fuckCollegge girls
passe oout aand nudeRihanna’s bikini cwmel toeSatanic pornEscodt servie ratyes lass vegasLesbia ory pardty storiesBig ass trck gmcc cTraay ttv vintageExtreme emo
nudeSecreet free pkrn sitesBrast chicken honeyCrolss dressing fetishNaughty virginsNew potn linksFamily cruelty nakedHandjob fill vidsNew aasian femaleGay teens tubeAdultt
videos for couuples 10Good gaay anime seriesNuude inn boulderWhwel of tiume
nude imagesGayy anga wallpaperFemalee excort usaA
sex stirySelll myy sexEriin lovbe sexMartne basque amatehr photographerMasturbation tefhniques householdBust angelique video clipWii mte vaginaJennifer anjiston look aalike blow jobStacie tthe splrts chichk xxxYoou thee owners manual sexMealey naed natashaActresws bollywwood nakd piccture
riua senHelena boham nakedPrincess lesas metasl bikiniFreee nudee model phogos bby mailKachey 18
gangbangCaai cuu flme pornCamlla coduri nudeWatc gitls strip
freeFree seex fuill lngh videosRon jedmey cockButgterfly chickjen breast
hhow toStolries ssex illary duffFreee tramjp pornNorthern virvinia
breaast liftDoees yoir wife orgasmAsiian comm
girlCambodia porn xxxLearnin disabbled casmps teensSuppoirt trolps eploying sexEricc thhe
midget websiteDick goores rrv jacksonvilleGeorhia ssex offendeer registry listWatch sex tapesKelly
brook nudxe picxture galleryHomemade boobb moviezMedget pornCum all over my big boobsGaay manya video clips

bd99 · 2026-09-07 07:44

[9193]bd99 Login PH | Legit Online Slots at Mababang Deposit,Gamitin ang bd99 login ph para sa legit online slots gcash. I-download ang app at mahanap ang pinaka mababang minimum deposit casino. Maglaro na rito! visit: bd99

xxx clips · 2026-09-19 13:35

Pretty! Thiis hhas beden ann xtremely wondeeful post.
Thaqnk you foor roviding ths information. xnxx

http://pandora.nla.gov.au/ · 2026-09-22 05:22

References:

Echtgeld casino sofort http://pandora.nla.gov.au/

online casino sofort bezahlen · 2026-09-22 09:42

References:

Casino sofortzahlung online casino sofort bezahlen

https://school-of-safety-russia.ru · 2026-09-22 13:07

References:

Casino mit sofort bonus https://school-of-safety-russia.ru

http://x.kongminghu.com · 2026-09-23 02:24

References:

Spielautomaten sofortüberweisung http://x.kongminghu.com

http://gm6699.com/ · 2026-09-23 04:07

References:

Sofort Casino mobil http://gm6699.com/

Sofort Casino Liste · 2026-09-23 05:45

References:

Online casino sofortüberweisung test Sofort Casino Liste

https://xs.xylvip.com/home.php?mod=space&uid=4885927 · 2026-09-23 07:46

References:

Online casino sofortüberweisung ab 1 euro https://xs.xylvip.com/home.php?mod=space&uid=4885927

http://bbs.88moli.top · 2026-09-23 08:48

References:

Online casinos sofortüberweisung http://bbs.88moli.top

oneclickcarehk.com · 2026-09-23 10:18

References:

Sofortüberweisung casino auszahlung http://oneclickcarehk.com/forum/home.php?mod=space&uid=283907

http://www.qilurexian.net/?241591 · 2026-09-23 17:38

References:

Online Casinos mit Sofortüberweisung http://www.qilurexian.net/?241591

http://www.automingwei.com/ · 2026-09-23 17:49

References:

Casinos mit sofortüberweisung http://www.automingwei.com/home.php?mod=space&uid=527851

pad.funkwhale.audio · 2026-09-25 20:28

References:

Daily free spins payid pokies https://pad.funkwhale.audio/cpFRM_TPSLm57cRxCFxoHQ

top payid pokies australia · 2026-09-26 03:10

References:

Payid pokies real money australia https://school-of-safety-russia.ru/user/waytongue93/

best pay id pokies · 2026-09-29 03:53

References:

Legit payid pokies https://dreevoo.com/profile.php?pid=2442722

best pay id pokies · 2026-09-29 10:32

References:

Payid accepted pokies http://mashspec.ru/user/liquidfarmer1/

http://www.qingdaomop.com · 2026-09-29 14:29

References:

Australian pokies that accept payid http://www.qingdaomop.com/?278891

bbs.sdhuifa.com · 2026-09-29 15:07

References:

Direct bank transfer payid pokies http://bbs.sdhuifa.com/home.php?mod=space&uid=1229440

creswicknorthps.vic.edu.au · 2026-09-30 17:37

References:

MiFinity casino sites accepting MiFinity Australia https://www.creswicknorthps.vic.edu.au/profile/korsholmawcdawson18542/profile

bbs.88moli.top · 2026-10-04 07:26

References:

Neosurf $10 deposit casinos http://bbs.88moli.top/home.php?mod=space&uid=117271

https://dahuafu.us/?32278 · 2026-10-04 12:11

References:

Payid pokies app https://dahuafu.us/?32278

neosurf blackjack casino australia · 2026-10-04 13:48

References:

Neosurf casino no bank account australia https://hedgedoc.dezentrale.space/l3TMxCUnRISmtj9wijuETA

justbookmark.win · 2026-10-04 14:06

References:

Online pokies that accept payid https://justbookmark.win/story.php?title=austender-homepage-austender

https://pad.stuve.de · 2026-10-04 15:54

References:

Where to buy neosurf australia https://pad.stuve.de/tsJdEe1oTpyILh_tRds8mg

aupeopleweb.com.au · 2026-10-04 21:56

References:

Casinos accepting neosurf australia https://www.aupeopleweb.com.au/au/home.php?mod=space&uid=3132379

daojianchina.com · 2026-10-05 03:15

References:

Neosurf gambling sites australia http://daojianchina.com/home.php?mod=space&uid=1455115

g.clicgo.ru · 2026-10-05 18:40

References:

How to deposit with neosurf at online casinos https://g.clicgo.ru/user/conetile4/

https://guzhen0552.cn/home.php?mod=space&uid=2523016 · 2026-10-06 05:06

References:

New casino sites accepting neosurf australia https://guzhen0552.cn/home.php?mod=space&uid=2523016

hedgedoc.envs.net · 2026-10-06 10:53

References:

Neosurf casino online real money australia https://hedgedoc.envs.net/VLvUZ07TTm27_jCjvgeoGw

neosurf $5 deposit casinos · 2026-10-06 14:30

References:

Neosurf alternative payment methods casino https://aryba.kg/user/diggercrocus43/

vko-itlyceum.edu.kz · 2026-10-16 06:58

References:

Osko pokies safe banking https://vko-itlyceum.edu.kz/user/toastprice98/

docs.monadical.com · 2026-10-16 23:41

References:

Legal wire transfer casino Australia https://docs.monadical.com/f2-WDqHZRKe0f7ThaCIfSQ

https://tvoyaskala.com/user/sproutflag14/ · 2026-10-17 00:27

References:

Secure idebit online casino https://tvoyaskala.com/user/sproutflag14/

payid pokies casinos · 2026-10-17 06:06

References:

Australian online casino payid pokies http://www.jzq5.cn/space-uid-495524.html

pad.cttue.de · 2026-10-17 09:20

References:

Payid withdrawal online pokies https://pad.cttue.de/Ry94MdsLQY29tze1v6cnoQ

https://guzhen0552.cn · 2026-10-18 04:34

References:

Legal bpay pokies australia https://guzhen0552.cn/home.php?mod=space&uid=2561930

pad.batsense.net · 2026-10-18 06:55

References:

BPay casino deposit fees https://pad.batsense.net/14WL9nKZR3KyxmZRFvIZWQ

http://bbs.88moli.top · 2026-10-18 07:19

References:

Play real money pokies with bpay http://bbs.88moli.top/home.php?mod=space&uid=197997

https://md.sebastians.dev · 2026-10-18 15:01

References:

Real money pokies australia bpay https://md.sebastians.dev/TZhxPtiYRBWR2RLHyAFSRQ

MiFinity casino license Australia · 2026-10-18 17:42

References:

Best e-wallet casinos Australia MiFinity https://bbs.yp001.net/home.php?mod=space&uid=626004

peatix.com · 2026-10-19 02:37

References:

Neosurf high roller casino australia https://peatix.com/user/30759110/view

new Australian online casinos MiFinity · 2026-10-19 02:51

References:

MiFinity casino tournaments Australia https://docs.monadical.com/Cz-S312uSLKru0hS9EmKqg

online pokies neosurf australia · 2026-10-19 04:38

References:

International casinos accepting neosurf australia https://myspace.com/caseticket45

http://www.jzq5.cn/space-uid-498004.html · 2026-10-19 05:11

References:

Minimum deposit casino neosurf australia http://www.jzq5.cn/space-uid-498004.html

casino direct bank transfer Australia · 2026-10-19 15:44

References:

Bank transfer online pokies real money australia https://skitterphoto.com/photographers/3500997/song-dennis

http://www.jzq5.cn/space-uid-498316.html · 2026-10-19 17:24

References:

Wire transfer accepted casino Australia http://www.jzq5.cn/space-uid-498316.html

https://xjj3.cc/home.php?mod=space&uid=661562 · 2026-10-19 20:39

References:

Australian pokies wire transfer deposit https://xjj3.cc/home.php?mod=space&uid=661562

https://test-sida.noads.biz · 2026-10-19 21:54

References:

Wire transfer casino minimum withdrawal Australia https://test-sida.noads.biz/?534230

ancientroman.space · 2026-10-20 05:32

References:

No deposit bonus wire transfer casino australia https://ancientroman.space/wiki/Bank_Transfer_Casinos_Australia_2026_What_Aussies_Need_to_Know

osko casino sites · 2026-10-20 06:08

References:

Osko pokies Australian dollars http://git.yang800.cn/childlier01

best payid pokies sites · 2026-10-20 06:40

References:

Payid pokies real money australia https://www.rcmx.net/userinfo.php?uid=63021

aussie casino bank transfer · 2026-10-20 09:41

References:

Online casinos bank transfer Australia https://docs.localcharts.org/GNk1F3gKR6qmP70C5yIXGw

https://hedgedoc.dawan.fr · 2026-10-20 11:47

References:

Quick withdrawal pokies osko https://hedgedoc.dawan.fr/ipuy37bfT8qMUHUaV5WNCw

progressive jackpot payid pokies · 2026-10-20 23:17

References:

Payid pokies real money australia https://comsenz-service.com/?245823

wire transfer online gambling australia · 2026-10-21 00:10

References:

High limit wire transfer casinos australia https://www.aupeopleweb.com.au/au/home.php?mod=space&uid=3163225

codimd.camba.coop · 2026-10-21 03:50

References:

Is BPay good for casino deposits https://codimd.camba.coop/7hX04vh-Qk696cNEc-9JTQ

BPay pokies deposit limit · 2026-10-21 06:14

References:

BPay pokies reviews Australia http://www.jzq5.cn/space-uid-500145.html

payid pokies australia · 2026-10-21 16:51

References:

Pay id pokies real money https://schoolido.lu/user/risemusic9/

MiFinity casino limits Australia · 2026-10-22 04:50

References:

Australian online casinos that take MiFinity http://creativespace.biz/discuss/forum/home.php?mod=space&uid=250929

Osko slots Australia · 2026-10-23 02:39

References:

How to deposit with osko at a casino https://doc.anagora.org/mccVVDmNQ6CQJ0lXG551Iw

osko online pokies real money · 2026-10-23 16:27

References:

Best payid casinos australia https://docs.localcharts.org/NvYBDXQKRoOKD4S8RkDulw

https://bbs.ybk001.com · 2026-10-25 19:15

References:

Payid deposit online pokies https://bbs.ybk001.com/home.php?mod=space&uid=630727

legit BPay casinos Australia · 2026-10-27 03:47

References:

Best bpay online pokies australia https://hedgedoc.dawan.fr/xtpjG4tRS4m6QGyYA8flbQ

https://rentry.co/risx6s9m · 2026-10-27 13:08

References:

Neosurf casino bonus australia https://rentry.co/risx6s9m

online pokies accepting bank transfer australia · 2026-10-28 12:53

References:

Licensed wire transfer casino Australia https://gitlab.oc3.ru/flatpound8

https://rdcvw.com · 2026-10-30 05:12

References:

Wire transfer gambling sites australia https://rdcvw.com/?548118

codimd.zaehlwerk.net · 2026-10-30 06:11

References:

New payid pokies australia https://codimd.zaehlwerk.net/bN8FWBmORtGNiNqEqYsKpg

neosurf casino loyalty program · 2026-11-09 01:41

References:

Neosurf prepaid voucher casino australia https://rdcvw.com/?556675

neosurf casino vip program australia · 2026-11-09 04:06

References:

Neosurf blackjack casino australia http://bbs.xingxiancn.com/home.php?mod=space&uid=1112587

top rated neosurf casinos · 2026-11-09 21:52

References:

Compare neosurf casinos australia http://gm6699.com/home.php?mod=space&uid=3364491

fund casino with neosurf · 2026-11-09 22:32

References:

Best online pokies neosurf australia https://www.8njy.com/?167367

online casino mit sofort einzahlen · 2026-11-09 22:53

References:

Beste online casinos mit sofortüberweisung https://bbs.kxwh.cn/home.php?mod=space&uid=442842

发表回复

Avatar placeholder

您的邮箱地址不会被公开。 必填项已用 * 标注