Skip to content

Instantly share code, notes, and snippets.

@ptrcnull
Created February 22, 2024 08:05
Show Gist options
  • Save ptrcnull/bd177e34bb4a791f6bb3b3591a23621d to your computer and use it in GitHub Desktop.
Save ptrcnull/bd177e34bb4a791f6bb3b3591a23621d to your computer and use it in GitHub Desktop.
Enable DevTools in Microsoft Teams classic desktop app
needle = b'this.appStateService.isDebugModeEnabled()'
better = b'true/*ppStateService.isDebugModeEnabled*/'
with open('/Applications/Microsoft Teams classic.app/Contents/Resources/app.asar', 'r+b') as f:
x = f.read()
off = x.find(needle)
f.seek(off)
f.write(better)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment