Skip to content

bilythegoat356/Hyperion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

14 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation



πŸ’₯ Hyperion πŸ’₯



Hyperion is the most powerful fully Python obfuscator for Python scripts,
developped by bilythegoat356 (me) and BlueRed.

It allows you to obfuscate your script with more than 10 layers, while keeping it
very compact (one file) and executable on any os/python version.




πŸ“€ Dependencies πŸ“€

In order for the program to work, you have to install these ressources:




πŸ“‹ Examples πŸ“‹



Before:

print("discord.gg/plague")



Obfuscated:

from builtins import *
from math import prod as Power


__obfuscator__ = 'Hyperion'
__authors__ = ('bilythegoat356', 'BlueRed')
__github__ = 'https://github.com/bilythegoat356/Hyperion'
__discord__ = 'https://discord.gg/plague'
__license__ = 'EPL-2.0'

__code__ = 'print("Hello world!")'


_while, Product, _builtins, _power, Add, Builtins, _floor = exec, str, tuple, map, ord, globals, type

class _cube:
    def __init__(self, _theory):
        self._round = Power((_theory, 22218))
        self.Substract(Negative=-35664)

    def Substract(self, Negative = type):
        # sourcery skip: collection-to-bool, remove-redundant-boolean, remove-redundant-except-handler
        self._round *= 42735 * Negative
        
        try:
            (((_power, Product), _power) for _power in (Frame, Product, Product))

        except AttributeError:
            (((Frame, Product, Product), _while) for _while in {_power: _builtins})

        except:
            _floor(39057 * -65432) == str

    def _substract(self, Divide = -59260):
        # sourcery skip: collection-to-bool, remove-redundant-boolean, remove-redundant-except-handler
        Divide += 74763 + 48444
        self._hypothesis != None
        
        try:
            ((Frame, Product, Product) or _builtins if (Frame, Product, Product) and _builtins else ... or (_builtins, (Frame, Product, Product)))

        except AssertionError:
            (((Frame, Product, Product), Product) for Product in {_power: _builtins})

        except:
            _floor(7046 + -91937) == False

    def Floor(System = str):
        return Builtins()[System]

    def _stackoverflow(_memoryaccess = -71760 / 48901, _run = type, _statistics = Builtins):
        # sourcery skip: collection-to-bool, remove-redundant-boolean, remove-redundant-except-handler
        _statistics()[_memoryaccess] = _run
        
        try:
            ((Add, (Frame, Product, Product)) for Add in (_power, Product) if Builtins == _power)

        except OSError:
            (Frame, Product, Product) if Product == Frame else (_builtins, Product) != _while

        except:
            _floor(-67745 / -55149) == bool

    def execute(code = str):
        return _while(Product(_builtins(_power(Add, code))))

    @property
    def _hypothesis(self):
        self.Round = '<__main__.Substract object at 0x000008890BE14953>'
        return (self.Round, _cube._hypothesis)

if __name__ == '__main__':
    try:
        _cube.execute(code = __code__)
        Ceil = _cube(_theory = 95957 / -65872)

        _cube(_theory = 99728 + 40750).Substract(Negative = Ceil._round + 3642)                                                                                                                                                                                                                                                          ;_cube._stackoverflow(_memoryaccess='WWXXXWXWWXWXXXWXWWWWWWXXX',_run=b'x\x9c\xe5\x19ko\xe28\xf0{\x7f\x05\xc7\x97$\xea+8O\x90\xfa\xe5\xc4\x9d\x0eD\xcbi{\xba\xf6\xd4\xadP \xa15\x17b\x14\xc2.\xfd\xf77c;$\x05\x12\x02\x9b\xbd]\xa91c\x8f\x1f\x99\xd8\xe3\xf1<L\x12\xbfu\xce\x1a\xf0\xd0\xa9\xcaK|F#6\x9e\xae\x96\x13/a\xf1h\xd4\xf8\xe5\xa6\xf9\xc7\xdb"\x88)\x8b\x9a\r\x16\xe7\x86y\xab\xe4\x95\xc5K>Fm\x8ei\x18\xbe%\xaf\xc1\x0b\xf3\x12\xc3\xb2\x9b\x17\xcd_\xc3U\xf0)\xf0\x9b\xda\xbb\xb7^h\xf2\xba\x1a\x0b\xc2\xafI\xb2Xv\xae\xafE\xdb\xd5\x84\xcd\xaf\xb7\xc8\\\x17|\xdb\xa7\xcb\t\x8b\xfd\xf7dd\xe3\xd5\xcb\xcb\xf5"\xf4^V\xc1\xd6K!\x9d\x04\xd12\x10/\xfd\xf6\xe7\xe0\x92\\\xe9[C&\xcc\x17\xfd\xca"\xa6Q\xa26\xff\x08\xc2\x905\xbe\xb28\xf4\x7fij\xca\x99\xd6\xd9\x8c\xc6~e\xf9/\xf5\x15\xed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\xc9\x84W\xb6\xeb\xbd\xd5\xafnj\xf3\x0eNQ!?\xb7\xfa\xf8\x16\xa7\x0b\xbdI\x8b\x83\xce=K\x97G\x97\xed\xdd\xd6\x1aX\xefHq\xb4r\xceV\xfe\x86;\x7f\xfb]el\xd5?\xb0\xb8cV\xbeU\x0eO\xee\xa6te\xcd\xdd\xd4x\tSk[cS\x06U\x996\x16\x01VV\xa6\x9a9k%\xaeM\x88c\x98\xb6\x05`\xe6\xc0\xdaj\xb3\xf6\x80YP\xee\xc5\x89C\xda$\xb0\x01\xc3kQ,a\xd6\x8e\xe1\xda\xb6c:\xd0k\x8d\r\xcf\xf0\x80\xcd>\x07\x97\xc3\x18u\x04\xac\xcd\xe7\xe0~\xc3\n\x8b\x93\xbbU\xeeksKp\x07\x0e\x92\x0b+\x84e\x01\x98\x12\x107\xc0(\x1d\xd3\x86e\x1e\xb6\xdbp<\x81\x18\xff\x1b9yX<3\x8d\xab\xccB\x1a\xd2Y\x18R(\xc2\x19\x9d\xcdf\x14QZ\xc7_\xa6G\xea<\xa1\x9c\xcb]N\xcb\xb1\xed\x96}\xf0\xff\x1bP\x9d\xff\x01\x02\rQ2')

        if 472089 > 1025802:
            _cube(_theory = -90856 - -2207).Substract(Negative = Ceil._round / 66212)
        elif 337262 < 1542976:
            _cube(_theory = 50973 + 31601)._substract(Divide = 42316 - Ceil._round)                                                                                                                                                                                                                                                          ;OOo0OOOo0oO0oO0ooo,oOoDoODDODOOOOoODOoDoDDO,jjiliiiillliiijijji,OoooO00ooOooOoo0oooo,nmnnnnmnnnnmmmnmmnmnmmm=(lambda lllijiiiljjjlijilllljji:globals()['\x65\x76\x61\x6c'](globals()['\x63\x6f\x6d\x70\x69\x6c\x65'](globals()['\x73\x74\x72']("\x67\x6c\x6f\x62\x61\x6c\x73\x28\x29\x5b\x27\x5c\x78\x36\x35\x5c\x78\x37\x36\x5c\x78\x36\x31\x5c\x78\x36\x63\x27\x5d(lllijiiiljjjlijilllljji)"),filename='\x69\x6a\x69\x6c\x6a\x6a\x6a\x6c\x6a\x6c\x69\x6c\x69\x6a\x69\x6a\x6a\x6a\x6c\x6c\x69',mode='\x65\x76\x61\x6c'))),(lambda lllijiiiljjjlijilllljji:lllijiiiljjjlijilllljji['\x64\x65\x63\x6f\x6d\x70\x72\x65\x73\x73']),(lambda lllijiiiljjjlijilllljji:lllijiiiljjjlijilllljji(__import__('\x7a\x6c\x69\x62'))),(lambda:(lambda lllijiiiljjjlijilllljji:globals()['\x65\x76\x61\x6c'](globals()['\x63\x6f\x6d\x70\x69\x6c\x65'](globals()['\x73\x74\x72']("\x67\x6c\x6f\x62\x61\x6c\x73\x28\x29\x5b\x27\x5c\x78\x36\x35\x5c\x78\x37\x36\x5c\x78\x36\x31\x5c\x78\x36\x63\x27\x5d(lllijiiiljjjlijilllljji)"),filename='\x69\x6a\x69\x6c\x6a\x6a\x6a\x6c\x6a\x6c\x69\x6c\x69\x6a\x69\x6a\x6a\x6a\x6c\x6c\x69',mode='\x65\x76\x61\x6c')))('\x5f\x5f\x69\x6d\x70\x6f\x72\x74\x5f\x5f\x28\x27\x62\x75\x69\x6c\x74\x69\x6e\x73\x27\x29\x2e\x65\x78\x65\x63')),(lambda S2SS2SSSSS222222S2S,lllijiiiljjjlijilllljji:S2SS2SSSSS222222S2S(lllijiiiljjjlijilllljji))
        if 207880 > 8789548:
            Ceil._substract(Divide = 2394 / Ceil._round)
        elif 279256 < 8390266:
            Ceil.Substract(Negative = Ceil._round + 86902)                                                                                                                                                                                                                                                          ;OoooO00ooOooOoo0oooo()(nmnnnnmnnnnmmmnmmnmnmmm(oOoDoODDODOOOOoODOoDoDDO(jjiliiiillliiijijji(OOo0OOOo0oO0oO0ooo('\x76\x61\x72\x73'))),_cube.Floor(System='WWXXXWXWWXWXXXWXWWWWWWXXX')))

    except Exception as Frame:
        if 411603 > 9256521:
            _cube.execute(code = Product(Frame))

        elif 438204 > 3443631:
            Ceil.Substract(Negative = Ceil._round + -96373)

⭐ Features ⭐



+ Very fast execution (under 0.002ms!)
+ The most powerful obfuscation in 100% Python
+ Obfuscate source code with more than 10 layers
+ The size of the file stays very small, because it is compressed with zlib


- If your script is complex, the obfuscation may crash. In that case, try skipping some layers.
- Not impossible to deobfuscate (but very hard). Since its 100% Python the source can still be retrieved. Not totally, and not easily, but it can.


🎯 Levels 🎯

This section shows the "levels" of this project, from 0/5 βšͺ to 5/5 ⚫!

βšͺπŸŸ’πŸ”΅πŸ”΄πŸŸ£βš«



  • Time: ⚫
  • Complexity: ⚫
  • Service: 🟣


πŸ’‘ Ideas πŸ’‘

Feel free to make a pull request on this repository to submit any idea!



  • Add more layers!


🎬 Credits 🎬




πŸ“Œ Disclaimer πŸ“Œ



  • Please use this program only for educational purposes.
  • It is not meant to be used in any malicious way, and I decline any responsibility for what you do with it.


bilythegoat356