script_hidener_tool.py

Created by zetamap

Created on April 04, 2023

896 Bytes

Only works on Omega, Upsilon and KhiCass.
Add a dot at beginning of all scripts names to hide them and automatically delete this script.
To show all scripts, just run exec(open(".show").read()) in the shell or in a new script.

This script is for single use, once run it will delete itself, so you will have to transfer the script again.


from os import *
print('Hidener python script tool started! \n\nListing files ...')
FILES = listdir()
FILES.remove(__name__+'.py')
print('Creating loader ...')
with open('.show', 'w') as f: f.write(r'''from os import *
print('Hidener python script tool started! \n\nShowing files ...')
for i in {}:
  try:
    if i.startswith('.'): rename(i, i[1:]+'.py')
    else: rename('.'+i[:i.rindex('.')], i)
  except OSError: print('WARINNG: hidden version of \''+i+'\' not found, can\'t restore')
print('Self deleting ...')
if __name__ != '__main__': remove(__name__+'.py')
remove('.show')
print('All done!')'''.format(FILES))
f.close()
print('Hiding files ...')
for i in FILES: 
  if not i.startswith('.'): rename(i, '.'+i[:i.rindex('.')])
print('Self deleting ...')
remove(__name__+'.py')
print('All done! \n\nTo unhide files, \nrun exec(open(\".show\").read()) in the shell')

During your visit to our site, NumWorks needs to install "cookies" or use other technologies to collect data about you in order to:

With the exception of Cookies essential to the operation of the site, NumWorks leaves you the choice: you can accept Cookies for audience measurement by clicking on the "Accept and continue" button, or refuse these Cookies by clicking on the "Continue without accepting" button or by continuing your browsing. You can update your choice at any time by clicking on the link "Manage my cookies" at the bottom of the page. For more information, please consult our <a href="https://www.numworks.com/legal/cookies-policy/">cookies policy</a>.