Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/billythegoat356/Hyperion
The most powerful 100% Python obfuscator.
https://github.com/billythegoat356/Hyperion
hyperion obf obfuscation obfuscator python python3
Last synced: 4 days ago
JSON representation
The most powerful 100% Python obfuscator.
- Host: GitHub
- URL: https://github.com/billythegoat356/Hyperion
- Owner: billythegoat356
- License: epl-2.0
- Created: 2022-06-02T19:32:29.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-27T13:30:50.000Z (8 months ago)
- Last Synced: 2024-08-02T14:07:56.373Z (3 months ago)
- Topics: hyperion, obf, obfuscation, obfuscator, python, python3
- Language: Python
- Homepage:
- Size: 27.3 KB
- Stars: 328
- Watchers: 6
- Forks: 53
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-python-re - Hyperion - This obfuscator is unique since it's one of the only ones that actually transforms your Python code. Since it returns plain Python source code it can be used on any platform that has Python available. (Obfuscators / Manual analysis)
README
-----
-----
###
💥 Hyperion 💥
Hyperion is the most powerful fully Python obfuscator for Python scripts,
developped by billythegoat356 (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:
* Python3
* `pip install -U -r requirements.txt`-----
###
📋 Examples 📋
**Before**:
```python3
print("discord.gg/plague")
```
**Obfuscated**:
```python3
from builtins import *
from math import prod as Power__obfuscator__ = 'Hyperion'
__authors__ = ('billythegoat356', 'BlueRed')
__github__ = 'https://github.com/billythegoat356/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) == strdef _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) == Falsedef 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) != _whileexcept:
_floor(-67745 / -55149) == booldef 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\xf1Fm\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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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 🎬
* [Svenskithesource](https://github.com/Svenskithesource) | Showed us how to rename variables
-----###
📌 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.***-----
###
billythegoat356