Professional Documents
Culture Documents
My Tgpatch
My Tgpatch
0
#
# Telegram Desktop Patch (tested for version 2.8.6 beta Linux x86_64)
# Don't use it on different version, it may crash!
#
# Author: @ammarfaizi2, @Akiekano, @rLapz
#
# Usage:
# gdb Telegram < my_tgpatch.txt >> /dev/null 2>&1 &
# disown
#
# -- Assume join
p ((int (*)(void *, size_t, int))mprotect)((void *)((unsigned long)
(_ZNK13HistoryWidget13isJoinChannelEv+9) & -4096ull), 4096ull << 2ull, 0x7)
p memcpy((void *)(_ZNK13HistoryWidget13isJoinChannelEv+9), "\xb8\x00\x00\x00\x00\
xc3", 6)