Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements #13

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Improvements #13

wants to merge 2 commits into from

Conversation

LcyDev
Copy link

@LcyDev LcyDev commented Aug 30, 2022

  • Replaced if __name__ == '__main__' because this prevents importing as a module (For obfuscated scripts produced)
  • Added traceback for obfuscation errors (Very useful)
  • Replaced time.time() with perf_counter (designed for intervals)
  • Added obfuscation destination path and renaming
  • Added CLI arguments
  • Added support for arguments
  • Added logo toggle (Can be annoying)
  • Now correctly splitting filename acording of osname
  • Fixed destination and now supports file writting and folder conjunction
  • Added exit prompt

Fixes: #6, #7

* Replaced "if __name__ == '__main__'" because this prevents importing as a module
* Added traceback for obfuscation errors (Very useful)
* Replaced time.time() with perf_counter (designed for intervals)
* Added obfuscation destination path and renaming
* Added CLI arguments
* Added support for arguments
* Added logo toggle (Can be annoying)
* Now correctly splitting filename acording of osname
* Added exit prompt
* Fixed destination and now supports file writting and folder conjunction
@LcyDev
Copy link
Author

LcyDev commented Aug 30, 2022

image

Scripting potential (Just did 12 files in a row and auto-structured with usage of destiny):
image

@LcyDev
Copy link
Author

LcyDev commented Aug 30, 2022

I'll continue to improve it and probably change the obfuscation algorithm to implement fixes

Feel free to implement what you see optimal

I had to use the module os for a lot of things sadly but it comes at almost no cost.
Obfuscation time depends in the algoritm (before.py ranged me between 0.01s and 0.06s)

@ghost
Copy link

ghost commented Oct 2, 2022

skul

@verticalsync
Copy link

Replaced if name == 'main' because this prevents importing as a module

You are still able to import it and use the modules, just whenever you run the file directly the name is main so it works, but when importing you don't want to run that code automatically, so you could make some functions instead of doing it like this

@LcyDev
Copy link
Author

LcyDev commented Dec 9, 2022

You are still able to import it and use the modules, just whenever you run the file directly the name is main so it works, but when importing you don't want to run that code automatically, so you could make some functions instead of doing it like this

Thank you, but i know that already
If you check my changes, hyperion.py still has that check.

Where I removed this thing on the obfuscated scripts where THERE WAS NO WAY to unobfuscate the imported module manually because the name wont be main.

This way when you import your module it will load all your code inside.

Although this was my bad for documenting it like that.

@LcyDev LcyDev changed the title Update hyperion.py Improvements Dec 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants