Skip to content
This repository was archived by the owner on May 13, 2025. It is now read-only.

Commit f631d6f

Browse files
authored
Merge pull request #19 from T34256/experimental
v0.0.6 release commit exper to main
2 parents c841a23 + 3673dd5 commit f631d6f

File tree

2 files changed

+56
-9
lines changed

2 files changed

+56
-9
lines changed

VAIIYA terminal.py

Lines changed: 55 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,13 @@
55
from prompt_toolkit import prompt
66
from prompt_toolkit.shortcuts import message_dialog
77
from prompt_toolkit.shortcuts import yes_no_dialog
8+
from prompt_toolkit.shortcuts import input_dialog
89
import time
910
import bcrypt
11+
from datetime import datetime
12+
from prompt_toolkit import print_formatted_text, HTML
13+
14+
1015

1116
# Loading screen with VAIIYA SECURITY ASCII Art
1217
def startup_screen_ASCII():
@@ -70,8 +75,16 @@ def main_menu():
7075
|______||______||______||______||______||______||______||______||______||______||______||______||______|
7176
7277
Welcome to the VAIIYA terminal!
73-
Use this handy dandy terminal for all your duties at VAIIYA security corp!
78+
Use this handy dandy terminal for all your duties at VAIIYA cybersecurity corp!
7479
""")
80+
def timefetch():
81+
#time fetch for login
82+
curtime = datetime.now().strftime('%H:%M:%S')
83+
curdate = datetime.now().strftime('%Y-%m-%d')
84+
85+
print('Welcome VAIIYA trustee! the time is: ',curtime)
86+
print('and the date is: ',curdate)
87+
print("have a wonerful day at VAIIYA cybersecurity corp!")
7588

7689
# Start the TERMINAL and its commands
7790
def open_terminal():
@@ -80,6 +93,13 @@ def open_terminal():
8093
print(" for a list of commands, please type 'commands' ")
8194
text = prompt('awaiting command(s)>>> ')
8295
#put all the usercommands under here please!
96+
97+
98+
99+
100+
101+
102+
83103
if text == 'CNS':
84104
print("running secondary program...")
85105
time.sleep(2)
@@ -127,6 +147,12 @@ def open_terminal():
127147

128148
# PLEASE PUT ALL 2ND DEF(S) BELOW THIS NOTE!
129149

150+
151+
152+
153+
154+
155+
#PUT ALL OTHER NON SUBCOMMAND DEFs BELOW HERE!
130156
# the CNS EE below this messange
131157
def CNS_EE_HAKED():
132158
result = yes_no_dialog(
@@ -149,6 +175,8 @@ def CNS_EE_HAKED():
149175
time.sleep(4)
150176
exit()
151177

178+
179+
152180
#add passwords here for the logins and name the vars respectivly
153181
#hehe youll never get the passwords now! AHAHAHAHAHA!
154182
#walkerpasswrd1
@@ -159,34 +187,36 @@ def CNS_EE_HAKED():
159187

160188
#walker login here
161189
def walker_login():
162-
print("Welcome walker! please put in your password that i gave you!")
163-
print("To exit, please type 'EXIT' in the password prompt!")
190+
164191
#password prompt;
165-
userpassword = text = prompt('walkers password: ', is_password=True)
192+
userpassword = text = input_dialog(
193+
title='Walker password input',
194+
text='walker password:').run()
166195
#encodes the given password for comapare
167196
userpassword = userpassword.encode('utf-8')
168-
197+
169198
#comapre password hashes, if identical then "result" == True, then it will move onto walker_entered
170199
result = bcrypt.checkpw(userpassword, walkerhash)
171200
if result:
172201
walker_entered()
173-
if text == 'exit':
174-
return
175202
#end of walker password varifi
203+
176204
def walker_entered():
177205
print("welcome walker! here currnently there is nothing, i have no idea what to put here for you guys.")
178206
print("but id assume you are familiar with github so if you have an idea i would more than glad take a look and try to implement it! ")
179207
text = prompt("type EXIT to exit this page; ")
180208
if text == 'exit':
181209
return
182-
#end of walker login/EE
210+
#end of walker login
183211

184212
# FROST EE STUFF OVER HERE!
185213
def frostbyte_login():
186214

187215

188216
print("to exit, type EXIT in the password!")
189-
userpassword = text = prompt('frotbytes password: ', is_password=True)
217+
userpassword = text = input_dialog(
218+
title='frostbyte password input',
219+
text='frostbyte password:').run()
190220

191221
userpassword = userpassword.encode('utf-8')
192222

@@ -198,8 +228,23 @@ def frostbyte_login():
198228
return
199229
# 2nd part to the FROST EE
200230
def frostbytes_EE_entered():
231+
232+
message_dialog(
233+
title='VAIIYA Warning systems',
234+
text='VAIIYA TERMINAL WARNING AWAITING ATTENTION!').run()
235+
236+
message_dialog(
237+
title='VAIIYA Warning systems',
238+
text='VAIIYA employee T342 has marked you as "requires careful observation and mental medical attention." so the VAIIYA system observation drones will now observe you.').run()
239+
240+
message_dialog(
241+
title='VAIIYA Warning systems',
242+
text='thank you for your attention. you may continue your tasks and have a safe day!').run()
243+
244+
201245
print(f"""welcome frostbyte! to your ee/login! dont worry, no one will find your password ^_+ """)
202246
text = prompt("type EXIT to exit this page;")
247+
203248
if text == 'exit':
204249
return
205250
#END OF FROST EE CODE,
@@ -211,6 +256,7 @@ def game_loop():
211256
startup_screen_ASCII()
212257
loading_bars_into()
213258
main_menu()
259+
timefetch()
214260
open_terminal()
215261

216262
while True:

mySQLlite_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import sqlite3

0 commit comments

Comments
 (0)