billythegoat356 / Hyperion

The most powerful 100% Python obfuscator.
Eclipse Public License 2.0
338 stars 58 forks source link

hypeion only support single to obfuscate? #6

Open XingkaiLiang opened 2 years ago

XingkaiLiang commented 2 years ago

i want to obscure all whole project,cant it

billythegoat356 commented 2 years ago

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

XingkaiLiang commented 2 years ago

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:

billythegoat356 commented 2 years ago

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

XingkaiLiang commented 2 years ago

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 commented 2 years ago

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:

LcyDev commented 2 years ago

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 ?

XingkaiLiang commented 1 year ago

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

LcyDev commented 1 year ago

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