Hnfull / Intensio-Obfuscator

Obfuscate a python code 2.x and 3.x
MIT License
627 stars 127 forks source link

-rts mode unable to replace variables in strings #72

Open zystudios opened 7 months ago

zystudios commented 7 months ago

Bug

Description

For example, the following code


user1 = "Lucy"
user2 = "Mike"

def test():
    return f'hello, {user1} and {user2}'

After the conversion, the variable user1 & user2 in the string is not converted, which results in a runtime error


THwduoHUJWTMxkVXADzCFBUbrbFzfRoc = "Lucy"
UWnpAPqUEpuCZcmpsAxrDRFRZRbCCrME = "Mike"
def WMoAftRwfkXoDwcMCniTSkJgSldSdlzy():
    return f'hello, {user1} and {user2}'

Command(s)

 python3 intensio_obfuscator.py -i E:\src -o E:\dist -mlen "lower" -rts -ind 4

Example(s)

Feature

Description

Example(s)

DmytroShevchenko-VDC commented 5 months ago

@zystudios Use .format to fix the issue