Hyperion icon indicating copy to clipboard operation
Hyperion copied to clipboard

hypeion only support single to obfuscate?

Open XingkaiLiang opened this issue 2 years ago • 8 comments

i want to obscure all whole project,cant it

XingkaiLiang avatar Jul 28 '22 01:07 XingkaiLiang

you can't because hyperion changes the name of the variables so you wont be able to import anything

billythegoat356 avatar Jul 28 '22 12:07 billythegoat356

i just update class construction as following and project would run. wiluld you help to explain how can it work well? def init(self, content: str, clean=False, obfcontent=False, renlibs=False, renvars=False, addbuiltins=False, randlines=False, shell=False, camouflate=False, safemode=True, ultrasafemode=False) -> None:

XingkaiLiang avatar Aug 05 '22 02:08 XingkaiLiang

you cant obfuscate multiple files, even if you edit the class constructor

billythegoat356 avatar Aug 05 '22 02:08 billythegoat356

Thanks. i will try and test line 307 if lin is ' ' lin.strip()[-1] will out of range, how to fix it?

Hype = Hyperion(content=code)

File "obfuscate.py", line 116, in init self.RandLines() File "obfuscate.py", line 316, in RandLines lin.strip()[-1] == ',' IndexError: string index out of range

fix as following for lin, nextlin in zip(lines, range(len(lines))): content.append(lin) if ( nextlin == len(lines) - 1 or self._get_first_statement(lines[nextlin + 1]) in ('elif', 'else', 'except', 'finally') or #lin.strip()[-1] == ',' (',' in lin and lin.strip()[-1] == ',') ):

but obfuscated code fail to run:

fg\xec\xeej\r\xa82\xc3]\x8dt\x8d"\xab\x8c\xac\xfe\x1f\x8b\xa8\xdeo')) File "<string>", line 226 if OO000OoOO00OOooO0OoO0o0O00: ^ IndentationError: unexpected indent

XingkaiLiang avatar Aug 06 '22 11:08 XingkaiLiang

ultrasafemode only work well for whole project.

def init(self, content: str, clean=False, obfcontent=False, renlibs=False, renvars=False, addbuiltins=False, randlines=False, shell=False, camouflate=False, safemode=True, ultrasafemode=True) -> None:

XingkaiLiang avatar Aug 15 '22 13:08 XingkaiLiang

Oh yeah, i did this and even better i made my own automation script for my whole proyect.

You just have to disable the renameVars option and the rest SHOULD work, since chunks disable themselves but i disable them just in case.

Did you solve this @XingkaiLiang ?

LcyDev avatar Aug 29 '22 15:08 LcyDev

Oh yeah, i did this and even better i made my own automation script for my whole proyect.

You just have to disable the renameVars option and the rest SHOULD work, since chunks disable themselves but i disable them just in case.

Did you solve this @XingkaiLiang ?

Yes. i can obfuscate whole project now

XingkaiLiang avatar Oct 06 '22 14:10 XingkaiLiang

If you're interested i have made a fork with some improvements and also i'm working on a new obfuscator "Chronos" made from the ground up.

https://github.com/ConaII/Hyperion

LcyDev avatar Dec 14 '22 00:12 LcyDev