-
Notifications
You must be signed in to change notification settings - Fork 59
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
base: main
Are you sure you want to change the base?
Improvements #13
Conversation
* 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
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. |
skul |
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 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. |
if __name__ == '__main__'
because this prevents importing as a module (For obfuscated scripts produced)Fixes: #6, #7