02.07.2019       Выпуск 289 (01.07.2019 - 07.07.2019)       Интересные проекты, инструменты, библиотеки

Intensio-Obfuscator - Obfuscate python code 2.x and 3.x

Читать>>




Экспериментальная функция:

Ниже вы видите текст статьи по ссылке. По нему можно быстро понять ссылка достойна прочтения или нет

Просим обратить внимание, что текст по ссылке и здесь может не совпадать.

Intensio-Obfuscator (Beta)

What is this ?

  • Intensio-Obfsucator tool takes a python source code and transform it into an obfuscated python code
    • Replace name of variables/classes/functions to random chars and defined length
    • Remove commentaries, all lines breaks, all print functions
    • Add to each line a random script with an always differents values

Requirements

Files supported

Installation

git clone https://github.com/Hnfull/Intensio-Obfuscator.git

pip3 install -r Intensio-Obfuscator/requirements.txt

cd Intensio-Obfuscator/intensio/

python3.x intensio_obfuscator.py --help

Features

FeaturesDescriptions
ReplaceReplace all names of variables/classes/functions defined and remove all line breaks
PaddingAdd random scripts after each line and remove all line breaks
RcommentariesRemove all commentaries and all line breaks (this feature is executed by default)
RprintRemove all print functions and all line breaks
Mixerlevel lowerGenerate words with 32 chars that replace variables/classes/functions defined in source code and in random scripts if 'replace' or 'padding' features are specified
Mixerlevel mediumGenerate words with 64 chars that replace variables/classes/functions defined in source code and in random scripts if 'replace' or 'padding' features are specified
Mixerlevel highGenerate words with 128 chars that replace variables/classes/functions defined in source code and in random scripts if 'replace' or 'padding' features are specified

Usages

ParametersDescriptions
-h, --helpshow this help message and exit
-i, --inputsource directory - indicate a directory that contain your file(s)
-c, --codelanguage used in input directory, default value: [python], possible value: [python]
-o, --outputoutput directory that will be obfuscated - indicate a empty directory that will contain your file(s)
-m, --mixerlevellength levels of the number of characters for output variables /classes/functions, default value: [medium], possible values: [lower, medium, high]
-r, --replaceactivate the 'replace' obfuscation feature
-p, --paddingactivate the 'padding' obfuscation feature
-rc, --rcommentariesactivate the 'rcommentaries' obfuscation feature (this feature is executed by default)
-rp, --rprintactivate the 'rprint' obfuscation feature
-v, --verboseimprove verbosity
  • Replace, Padding, Rprint features can be executed separatly

  • If you want exclude python variables/classes/functions which will be taken by the 'Replace' feature, edit intensio/exclude/python/exclude_python_words.txt

  • If you want to include python variables/classes/functions that are not included when launching the 'Replace' feature, edit intensio/include/python/include_python_words.txt

Examples

Demo

Python target files demo

Recommendations / Malfunctions

Todo

  • Version 1.0.1-x:

    • Code optimization
    • Fix bugs and problems
    • Improved features already present
  • Version 1.1.x

    • Stable version for files written in python 2.x and 3.x
    • Supported files written in C
  • Version 1.1.x

    • Stable version for file written in C
    • Supported files written in C++

License

Disclamer

  • Intensio-Obfuscator is for education/research purposes only. The author takes NO responsibility ay for how you choose to use any of the tools provided





Разместим вашу рекламу

Пиши: mail@pythondigest.ru

Нашли опечатку?

Выделите фрагмент и отправьте нажатием Ctrl+Enter.

Система Orphus