Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

decrypted_word always returned something #10

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Beercow
Copy link

@Beercow Beercow commented Jun 7, 2024

Removed cipher_text_orig from decrypt(). This broke decryption of older versions that relied on ObfuscationStringMap.txt because decrypted_word always returned something causing the map to not be checked.

   for part in parts:
        if part[1] == 0: # token
            output += part[0]
        else: # word
            word = part[0]
            decrypted_word = decrypt(word)
            if decrypted_word:  # was always true because it would return the original word
                output += decrypted_word
            elif word in map:  # This statement would never be called
                output += map[word]
            else:
                output += word

Removed cipher_text_orig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant