Intensio-Obfuscator icon indicating copy to clipboard operation
Intensio-Obfuscator copied to clipboard

-rts mode unable to replace variables in strings

Open zystudios opened this issue 1 year ago • 1 comments

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)

  • Puts the parameters placed with Intensio-Obfuscator
 python3 intensio_obfuscator.py -i E:\src -o E:\dist -mlen "lower" -rts -ind 4

Example(s)

  • Input file (source file)
  • Output file (obfuscated file)
  • Describe the normally expected behavior (optionnal)

Feature

Description

  • Description of functionality

Example(s)

  • Input example
  • Output example (optionnal)

zystudios avatar Mar 22 '24 07:03 zystudios

@zystudios Use .format to fix the issue

DmytroShevchenko-VDC avatar Jun 07 '24 12:06 DmytroShevchenko-VDC