Intensio Obfuscator : Obfuscate A Python Code 2.x & 3.x

Intensio Obfuscator is an obfuscate a python code 2.x and 3.x. 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 different 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/

Also Read – ShellPhish : Phishing Tool For 18 Social Media

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
RemoveRemove all commentaries and all line breaks
Mixer 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
Mixer 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
Mixer 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
-f, –onefileif only one file
-d, –multiplefilesif multiple files (project)
-i, –inputsource file or directory – if multiple files indicate a directory that contain all your files
-c, –codelanguage used in input file or directory, default value: [python], possible value: [python]
-o, –outputoutput file or directory that will be obfuscated – if multiple file indicate a empty directory that will contain all your files
-m, –mixerlength 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
-rm, –removeactivate the ‘remove’ obfuscation 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

Examples

Python target file(s):

  • Multiple files basic:
  • Multiple files advanced:
  • One files basic and advanced :
    • The command is same that for multiple file, just do not pointed a directory but a python file directly for -i and -oparameters, then change -d parameter into -f parameter

Possible Malfunctions

  • Do not define identically your names of local variables/classes/functions to python keywords or names of functions/classes of imported python libraries !
  • If a variable/class/function has an identical name with a word between ' ' or " " in print() 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.

To Do

  • 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.

R K

Recent Posts

Install VirtualBox on Ubuntu 18.04 from the Oracle Repository

VirtualBox is a free, open-source, cross-platform virtualization application maintained by Oracle. It lets you run multiple…

14 hours ago

Install PostgreSQL on Ubuntu 18.04 with Remote Access Setup

PostgreSQL (also called Postgres) is a free, open-source, object-relational database management system with a strong reputation…

14 hours ago

Install VMware on Ubuntu 18.04: Workstation Player Setup Guide

VMware Workstation Player is a mature, stable virtualization platform that lets you run multiple isolated operating…

14 hours ago

Set Up a UFW Firewall on Ubuntu 18.04: Allow, Deny, and Manage

A properly configured firewall is one of the most important layers of security for any internet-facing server. UFW (Uncomplicated Firewall) is a user-friendly front-end for managing iptables rules that ships pre-installed on Ubuntu. Its defaults are sensible: block all incoming connections, allow all outgoing connections. No outside traffic reaches your server unless you explicitly open a port. This guide covers how to configure a UFW firewall on Ubuntu 18.04, from setting default policies and application profiles to writing allow and deny rules for specific ports, IPs, and subnets. <strong>Prerequisite:</strong>&nbsp;You&nbsp;need&nbsp;sudo&nbsp;access. Configure UFW Firewall on Ubuntu: Defaults, SSH, and Application Profiles If UFW is not installed, add it with: bashsudo…

14 hours ago

Disable UFW Firewall on Ubuntu 18.04: Stop, Reset, and Re-enable

UFW (Uncomplicated Firewall) is a user-friendly front-end for managing iptables rules on Ubuntu. It ships pre-installed…

14 hours ago

Install Apache Cassandra on Ubuntu 18.04: NoSQL Setup Guide

Apache Cassandra is a free, open-source NoSQL database designed for high availability and linear scalability with…

2 days ago