

GitHub - Hnfull/Intensio-Obfuscator: Obfuscate a python code 2.x and 3.x
source link: https://github.com/Hnfull/Intensio-Obfuscator
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md
Intensio-Obfuscator (Beta)
- 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, removes comments, line breaks and add to each line a random script with an always differents values.
Requirement
- Python >= 3.5
Files supported
- Files written in python 2.x and 3.x
Installation
git clone https://github.com/Hnfull/Intensio-Obfuscator.git
cd Intensio-Obfuscator/intensio/
Features
Feature Description Replace Replace all names of variables - classes - functions defined and remove all line breaks Padding Add random scripts after each line and remove all line breaks Remove Remove all commentaries and all line breaks Secret Only for the curious :) Mixer lower Generate words with 32 chars that replace variables - classes - functions defined in source code and in random scripts if 'replace' or 'padding' features are specified Mixer medium Generate words with 64 chars that replace variables - classes - functions defined in source code and in random scripts if 'replace' or 'padding' features are specified Mixer high Generate words with 128 chars that replace variables - classes - functions defined in source code and in random scripts if 'replace' or 'padding' features are specifiedUsages
-h, --help -> show this help message and exit.
-f, --onefile -> if only one file.
-d, --multiplefiles -> if multiple files (project).
-i, --input -> source file or directory - if multiple files indicate a directory that contain all your files.
-c, --code -> language used in input file or directory. value: [python]
-o, --output -> output file or directory that will be obfuscated - if multiple file indicate a empty directory that will contain all your files.
-m, --mixer -> length level of variables mix output. values: [lower,medium,high]
-r, --replace -> activate the 'replace' obfuscation feature.
-p, --padding -> activate the 'padding' obfuscation feature.
-rm, --remove -> activate the 'remove' obfuscation feature.
-s, --secret -> activate the 'secret' bullshit feature.
- If you want exclude python variables - classes - functions which will be taken by the 'replace' feature, edit
intensio/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_words.txt
Do not define identically your names of local variables - classes - functions to python keywords or names of functions - classes of imported python libraries !!
Examples
Python target file(s):
-
Multiple files basic:
python3.x intensio_obfuscator.py -d -i test/python/multiplefiles/basic/input/basicRAT -c python -o test/python/multiplefiles/basic/output/basicRAT -m lower -r -rm
-
Multiple files advanced:
python3.x intensio_obfuscator.py -d -i test/python/multiplefiles/advanced/input/basicRAT -c python -o test/python/multiplefiles/advanced/output/basicRAT -m high -r -p -rm
-
If it's one file only, the command is same that for multiple file, just do not pointed a directory but a python file directly for
-i
and-o
parameters, then change-d
parameter into-f
parameter
Possible malfunctions
- If a variable - class - function has an identical name with a word between
' '
or" "
inprint()
function, your text will have the same value that the mixer variables - class - function. - If a variable - class - function has an identical name with a word in after
#
(commentary) your text will have the same value that the mixer variables - class - function, but if between"""
or'''
without a variables before, no replacing is performed. - If you named your variables - classes - functions in the same way as python keywords or names of functions/class of imported python libraries, an error may appear. Edit
intensio/excluded_python_words.txt
to add the variables not to obfuscate or change your names of local variables - classes - fuctions, if your variables - classes - functions have the same name as a keyword it, he will be obfuscated and errors will appear.
Todo
-
Version 1.0.1-x:
- Code optimization
- Fix bugs and problems
- Improved features already present
-
Version 1.1.0:
- Support files written in C
-
Version 1.2.0:
- Support files written in C++
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
Recommend
-
99
Start WritingLog inNotificationsThe Cybersecurity Writing Contest by Twingate and HackerNoonLast Wednesd...
-
137
How to obfuscate CSS class names with React and Webpack
-
160
The project is on hold. Don't expect updates in the near future. JavaScript obfuscator
-
120
README.md
-
79
Taking charge of your data: using Cloud DLP to de-identify an...
-
200
今天给大家介绍的是一款名叫Intensio-Obfuscator的专业代码混淆处理工具,广大Python开发人员以及安全专家可以使用这款工具来对v2.x以及v3.x版本的Python代码进行混淆处理。
-
52
Intensio-Obfuscator:一款专业Python代码混淆处理工具 2019-06-27 15:00:24 今天给大家介绍的是一款名叫Intensio-Obfuscator的专业代码混淆处理...
-
143
README.md Cette page en Français YAK Pro - Php Obfuscator
-
9
garble GO111MODULE=on go get mvdan.cc/garble Obfuscate Go code by wrapping the Go toolchain. Requires Go 1.16 or later. garble build [build flags] [packages] The tool also supp...
-
15
DEX控制流混淆 · BlackObfuscator English Version 本项目针对Android APK DEX控制流混淆,在不会改变应用原有逻辑的前提下,会将原始...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK