GithubHelp home page GithubHelp logo

jonike / intensio-obfuscator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hnfull/intensio-obfuscator

0.0 1.0 0.0 30.85 MB

Obfuscate a python code 2.x and 3.x

License: MIT License

Python 100.00%

intensio-obfuscator's Introduction

Intensio-Obfuscator (Beta)

What is this ?

  • Intensio-Obfsucator tool takes a python source code and transform it into an obfuscated python code
    • Replace all names of variables/classes/functions/files-name to random strings with length and obfuscation level defined then all chars to their hexadecimal value
    • Delete all comments, all spaces lines
    • Padding random scripts with an always differents values

Requirements

  • Python >= 3.5
  • requirements.txt

Files supported

  • Files written in python 2.x and 3.x

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

Features Descriptions
delete comments Delete all comments (this feature is executed by default)
delete line spaces Delete all spaces line (this feature is executed by default)
correction padding empty classes/functions Add padding to empty classes and functions, if the class or function contains only comments, the default feature delete comments will leave a class or function empty, this will avoid generating an error (this feature is executed by default)
replace string to string mixed Replace all names of variables/classes/functions to random strings with length defined
padding script Add padding of random scripts after each line
replace file name Replace all files name to random strings with length defined
replace string to hex Replace all chars to their hexadecimal value
correction delete pyc file Delete all pyc file in output directory (this feature is executed by default)
mixer length lower Define random strings length of 32 chars when -rts, --replacetostr or -ps, --paddingscripts or -rfn, --replacefilesname or -rth, --replacetohex parameters are specified
mixer length medium Define random strings length of 64 chars when -rts, --replacetostr or -ps, --paddingscripts or -rfn, --replacefilesname or -rth, --replacetohex parameters are specified
mixer length high Define random strings length of 128 chars when -rts, --replacetostr or -ps, --paddingscripts or -rfn, --replacefilesname or -rth, --replacetohex parameters are specified (increase the time of obfuscation)
mixer level simple Define obfuscation level to simple of random strings generated when -rts, --replacetostr or -ps, --paddingscripts or -rfn, --replacefilesname or -rth, --replacetohex parameters are specified
mixer level hard Define obfuscation level to hard of random strings generated when -rts, --replacetostr or -ps, --paddingscripts or -rfn, --replacefilesname or -rth, --replacetohex parameters are specified (can increase the time of obfuscation)
  • Features can be executed separatly
    • replace string to string mixed -> -rts, --replacetostr
    • padding script -> -ps, --paddingscript
    • replace file name -> -rfn, --replacefilename
    • replace string to hex -> -rth, --replacetohex

Usages

Parameters Descriptions
-h, --help show this help message and exit
-i, --input source directory - indicate a directory that contain your file
-o, --output output directory that will be obfuscated - indicate a empty directory that will contain your file
-mlen, --mixerlength define length of random strings generated [ lower:32 | medium:64 | high:128 ] chars when --replacetostr or --paddingscripts or -rfn, --replacefilesname or --replacetohex features are specified, default value: [medium], possible values: [lower - medium - high]
-mlvl, --mixerlevel define obfuscation level of random strings generated [ simple | hard ] when --replacetostr or --paddingscripts or -rfn, --replacefilesname or --replacetohex features are specified, default value: [simple], possible values: [simple - hard]
-rts, --replacetostr launch replace string to string mixed obfuscation feature
-ps, --paddingscript launch padding script obfuscation feature
-rfn, --replacefilename launch replace file name obfuscation feature
-rth, --replacetohex launch replace string to hex obfuscation feature
-v, --verbose improve verbosity

Obfuscation examples

Todo

  • Next Version 1.0.9:

    • Optimisation of 'Replace string to string' feature allowing to reduce considerably time to obfuscate code
  • Version 1.0.1-x:

    • Code optimization
    • Fix issues
    • Improved features already present
  • Version 1.1.0-x:

    • Stable version

License

  • MIT

Contact

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

intensio-obfuscator's People

Contributors

hnfull avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.