Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os, bz2, string, shutil
- def Hide():
- Already = raw_input('Use "E"xisting folder or "N"ew folder? (E/N): ')
- Already1 = string.upper(Already)
- if Already1 == 'N':
- FolderName = raw_input('What do you want your new folder name to be? ')
- os.makedirs(FolderName)
- Password = raw_input('Choose password: ')
- try:
- os.makedirs('xerotic1')
- os.popen('attrib +H +S +R xerotic1')
- except:
- pass
- try:
- os.rename(FolderName, 'Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}')
- os.popen('attrib +H +S "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"')
- f=open("xerotic1/xerotic.log", "w")
- f.write(bz2.compress(Password))
- f.close()
- Begin()
- except:
- print 'There is already a hidden folder in this directory or that folder name is in use.\n\n'
- Begin()
- elif Already1 == 'E':
- FolderName = raw_input('Name of folder? ')
- Password = raw_input('Choose password: ')
- try:
- os.makedirs('xerotic1')
- os.popen('attrib +H +S +R xerotic1')
- except:
- pass
- try:
- os.rename(FolderName, 'Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}')
- os.popen('attrib +H +S "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"')
- f=open("xerotic1/xerotic.log", "w")
- f.write(bz2.compress(Password))
- f.close()
- Begin()
- except:
- print 'There is already a hidden folder in this directory\n\n'
- Begin()
- else:
- print 'Invalid Option....'
- Hide()
- def Decrypt():
- PasswordAsk = raw_input('What is the password: ')
- w = open("xerotic1/xerotic.log", "r")
- StoredPass = bz2.decompress(w.read())
- w.close()
- if PasswordAsk == StoredPass:
- FolderName1 = raw_input('What do you want to name the folder to: ')
- os.popen('attrib -H -S "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"')
- os.rename('Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}', FolderName1)
- Begin()
- else:
- print 'Incorrect Password'
- Decrypt()
- def Begin():
- Ask = raw_input('\nWould you like to encrypt and "H"ide a folder or "S"how a folder or\n"D"estroy all traces of this program? (H/S/D): ')
- Ask1 = string.upper(Ask)
- if Ask1 == 'H':
- Hide()
- elif Ask1 == 'S':
- Decrypt()
- elif Ask1 == 'D':
- Destroy()
- else:
- print 'Invalid Option\n'
- Begin()
- def Destroy():
- print 'Make sure all folders are unlocked first!!!'
- Dest = raw_input('Would you like to remove all traces of this program? (Y/N): ')
- Dest1 = string.upper(Dest)
- if Dest1 == 'Y':
- try:
- os.popen('attrib -H -S -R xerotic1')
- shutil.rmtree('xerotic1')
- print 'Now you just have to delete this file, and all will be gone.\n\n'
- except:
- print 'There are no traces except this file.'
- Begin()
- elif Dest1 == 'N':
- Begin()
- else:
- print 'Invalid Option'
- Destroy()
- Begin()
Add Comment
Please, Sign In to add comment