Skip to content

Instantly share code, notes, and snippets.

@ifau
Created June 12, 2021 13:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ifau/0819ba7fa8c24b8b747f33bbed4173c2 to your computer and use it in GitHub Desktop.
Save ifau/0819ba7fa8c24b8b747f33bbed4173c2 to your computer and use it in GitHub Desktop.
Get admin rights in radio-t chat (macOS Telegram app exploit)
# This script gives the user admin rights in the radio-t telegram group
# using an exploit in the official Telegram desktop app for macOS
#
# Note: in case of -1002 error go to "System Preferences" - "Security & Privacy"
# - "Accessibility" and select "Allow Terminal to control your computer"
osascript -e '
tell application "Telegram" to activate
delay 1
tell application "System Events"
keystroke "F" using {shift down, command down}
delay 0.8
keystroke "radio_t_chat"
delay 0.8
key down return
delay 0.8
keystroke "wtf?"
key down return
end tell'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment