Hnfull / Intensio-Obfuscator

Obfuscate a python code 2.x and 3.x
MIT License
624 stars 129 forks source link

-rts mode unable to replace variables in strings #72

Open zystudios opened 3 months ago

zystudios commented 3 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 4 weeks ago

@zystudios Use .format to fix the issue