-
Notifications
You must be signed in to change notification settings - Fork 0
/
safebox.py
22 lines (21 loc) · 711 Bytes
/
safebox.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from stdiomask import getpass
from os import path, system, mkdir
# Password
pwd = 'proto'
if path.exists('Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}'):
# Unlock
if not getpass() == pwd:
input('Wrong Password!')
exit()
system('attrib -h -s -r "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"')
system('ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" HexBox')
input('Unlocked!')
elif not path.exists('HexBox'):
# Make Dir
mkdir('HexBox')
input('HexBox Created')
else:
# Lock
system('ren HexBox "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"')
system('attrib +h +s +r "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"')
input('Locked!')