Open XingkaiLiang opened 2 years ago
you can't because hyperion changes the name of the variables so you wont be able to import anything
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:
you cant obfuscate multiple files, even if you edit the class constructor
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
(',' 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
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:
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 ?
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
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.
i want to obscure all whole project,cant it