Skip to content

Commit

Permalink
discord-krisp: Update patcher (#932)
Browse files Browse the repository at this point in the history
  • Loading branch information
ch4og authored Dec 2, 2024
1 parent 0aaf7a4 commit 7324550
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/discord-krisp/krisp-patcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

symtab = elf.get_section_by_name('.symtab')

krisp_initialize_address = symtab.get_symbol_by_name("_ZN7discord15KrispInitializeEv")[0].entry.st_value
krisp_initialize_address = symtab.get_symbol_by_name("_ZN7discordL17DoKrispInitializeEv")[0].entry.st_value
isSignedByDiscord_address = symtab.get_symbol_by_name("_ZN7discord4util17IsSignedByDiscordERKNSt4__Cr12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE")[0].entry.st_value

text = elf.get_section_by_name('.text')
Expand All @@ -40,7 +40,7 @@

f = open(executable, "rb")
f.seek(krisp_initialize_offset)
krisp_initialize = f.read(64)
krisp_initialize = f.read(256)
f.close()

# States
Expand Down

0 comments on commit 7324550

Please sign in to comment.