Skip to content

Latest commit

 

History

History
37 lines (33 loc) · 1.52 KB

python_code_malfunctions.md

File metadata and controls

37 lines (33 loc) · 1.52 KB

Malfunctions

1) when [-rfn, --replacefilename] is called

  • If you import python file

    • Can generate an error = no
      • Recommended:

        # I have test1.py file that contain several functions or classes
        from path.test1 import get
        get("user")
      • Not Recommended:

        # I have test1.py file that contain several functions or classes
        from path import test1
        test1.get("user")
      • Intensio-Obfuscator will detect a non compliant format (currently this type of import is not supported by tool) code for obfuscation and exclude this file name automatically

      • You can exclude manually file names with --excludefiles parameter (see src/intensio_obfuscator/exclude_examples/exclude_files_name_by_user.txt template and --excludefiles parameter)

  • If you import python file and in path the file name have the same name that a folder

    • Can generate an error = no
      • Recommended:

        # I have test1.py file that contain several functions or classes
        from path.mytest.test1 import get
        get("user")
      • Not Recommended:

        # I have test1.py file that contain several functions or classes
        from path.test1.test1 import get
        get("user")
      • Intensio-Obfuscator will detect a non compliant format (currently this type of import is not supported by tool) code for obfuscation and exclude this file name automatically