11
11
from datetime import datetime
12
12
from prompt_toolkit import print_formatted_text , HTML
13
13
14
+ #changes the size of the Command promp so it is easyer to read (and that the ASCII doesnt soft wrap)
15
+ #from ctypes import windll, byref
16
+ #from ctypes.wintypes import SMALL_RECT
14
17
18
+ #STDOUT = -11
15
19
20
+ #hdl = windll.kernel32.GetStdHandle(STDOUT)
21
+ #currently broken without wintypes
22
+ #rect = wintypes.SMALL_RECT(0, 50, 50, 80) # (left, top, right, bottom)
23
+ #windll.kernel32.SetConsoleWindowInfo(hdl, True, byref(rect))
24
+
25
+
26
+ #NOTE: THERE MAY BE MINOR LINE WRAP IN THE ASCII
16
27
# Loading screen with VAIIYA SECURITY ASCII Art
17
28
def startup_screen_ASCII ():
18
29
print (r"""
19
- ██╗ ██╗ █████╗ ██╗██╗██╗ ██╗ █████╗
20
- ██║ ██║██╔══██╗██║██║╚██╗ ██╔╝██╔══██╗
21
- ██║ ██║███████║██║██║ ╚████╔╝ ███████║
22
- ╚██╗ ██╔╝██╔══██║██║██║ ╚██╔╝ ██╔══██║
23
- ╚████╔╝ ██║ ██║██║██║ ██║ ██║ ██║
24
- ╚═══╝ ╚═╝ ╚═╝╚═╝╚═╝ ╚═╝ ╚═╝ ╚═╝
25
- ███████╗███████╗ ██████╗██╗ ██╗██████╗ ██╗████████╗██╗ ██╗
26
- ██╔════╝██╔════╝██╔════╝██║ ██║██╔══██╗██║╚══██╔══╝╚██╗ ██╔╝
27
- ███████╗█████╗ ██║ ██║ ██║██████╔╝██║ ██║ ╚████╔╝
28
- ╚════██║██╔══╝ ██║ ██║ ██║██╔══██╗██║ ██║ ╚██╔╝
29
- ███████║███████╗╚██████╗╚██████╔╝██║ ██║██║ ██║ ██║
30
- ╚══════╝╚══════╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝
31
- ███████╗██╗ ██╗███████╗████████╗███████╗███╗ ███╗███████╗
32
- ██╔════╝╚██╗ ██╔╝██╔════╝╚══██╔══╝██╔════╝████╗ ████║██╔════╝
33
- ███████╗ ╚████╔╝ ███████╗ ██║ █████╗ ██╔████╔██║███████╗
34
- ╚════██║ ╚██╔╝ ╚════██║ ██║ ██╔══╝ ██║╚██╔╝██║╚════██║
35
- ███████║ ██║ ███████║ ██║ ███████╗██║ ╚═╝ ██║███████║
36
- ╚══════╝ ╚═╝ ╚══════╝ ╚═╝ ╚══════╝╚═╝ ╚═╝╚══════╝
37
-
38
- Welcome to the VAIIYA SECURITY terminal!
30
+
31
+
32
+ __________ __________
33
+ \|||||||||\ \::::::::::\
34
+ \|||||||||\ \::::::::::\
35
+ \|||||||||\ \::::::::::\
36
+ \|||||||||\ \::::::::::\
37
+ \-------\ /--------/ /-------\ \--------\ \--------\ \--------\ /---------/ /-------\
38
+ \.......\ /......../ /.........\ \........\ \........\ \........\ /........./ /.........\
39
+ \.......\ /......../ /...........\ \........\ \........\ \........\ /........./ /...........\
40
+ \.......\ /......../ /.............\ \........\ \........\ \........\ /........./ /.............\
41
+ \.......\ /......../ /......__.......\ \........\ \........\ \........\ /........./ /...............\
42
+ \.......\ /......../ /....../ \.......\ \........\ \........\ \........\_/........./ /......./ \......\
43
+ \.......\ /......../ /....../ \.......\ \........\ \........\ \................../ /......./ \......\
44
+ \................/ /....../ \.......\ \........\ \........\ \................/ /......./ \......\
45
+ \............../ /....../ \.......\ \........\ \........\ \............../ /......./ \......\
46
+ \............/ /....../ \.......\ \........\ \........\ \............/ /......./ \......\
47
+ \........../ /....../ \.......\ \........\ \........\ \........../ /......./ \......\
48
+ /........./
49
+ /........./
50
+ /........./
51
+ /........./
52
+ /---------/
53
+ VAIIYA technologies LLC
54
+ Empowering security, one byte at a time.
55
+
56
+
57
+ please wait while the program does mandatory checks.
39
58
""" )
40
59
#title stuff for new loadin screen
41
60
42
- def loading_bars_into ():
61
+ def loading_bars_intro_1 ():
43
62
44
- title = HTML ('<style bg="blue" fg="black"> Connecting to the VAIIYA Defender framework....</style> ' )
45
- label = HTML ('<ansired>Connecting</ansired>.... ' )
63
+ title = HTML ('Connecting to the VAIIYA Defender framework....' )
64
+ label = HTML ('' )
46
65
47
66
# loading screen system with prompTK
48
67
with ProgressBar (title = title ) as pb :
49
68
for i in pb (range (300 ), label = label ):
50
69
time .sleep (.01 )
51
-
70
+ time .sleep (1 )
71
+
72
+ print ("connection: approved" )
73
+ time .sleep (0.3 )
74
+
75
+ def loading_bars_intro_2 ():
76
+
77
+ title = HTML ('Checking root for verification codes....' )
78
+ label = HTML ('' )
79
+
80
+ # loading screen system with prompTK
81
+ with ProgressBar (title = title ) as pb :
82
+ for i in pb (range (215 ), label = label ):
83
+ time .sleep (.01 )
84
+ time .sleep (1 )
85
+
86
+ print ("codes found! checking with system.... approved!" )
87
+ time .sleep (0.2 )
88
+
89
+ def loading_bars_intro_3 ():
90
+
91
+ title = HTML ('Sending system logs and debug info for system approval' )
92
+ label = HTML ('' )
93
+
94
+ # loading screen system with prompTK
95
+ with ProgressBar (title = title ) as pb :
96
+ for i in pb (range (175 ), label = label ):
97
+ time .sleep (.01 )
98
+ time .sleep (1 )
99
+
100
+ print ("sending logs.... approved! sending debug... approved! " )
101
+ time .sleep (0.3 )
102
+
103
+
104
+ print ("All connections approved! opening VAIIYA terminal...." )
105
+ time .sleep (0.5 )
52
106
53
107
# Display main menu
54
108
def main_menu ():
@@ -75,7 +129,7 @@ def main_menu():
75
129
|______||______||______||______||______||______||______||______||______||______||______||______||______|
76
130
77
131
Welcome to the VAIIYA terminal!
78
- Use this handy dandy terminal for all your duties at VAIIYA cybersecurity corp !
132
+ Use this handy dandy terminal for all your duties at VAIIYA Technologies LLC !
79
133
""" )
80
134
def timefetch ():
81
135
#time fetch for login
@@ -84,7 +138,7 @@ def timefetch():
84
138
85
139
print ('Welcome VAIIYA trustee! the time is: ' ,curtime )
86
140
print ('and the date is: ' ,curdate )
87
- print ("have a wonerful day at VAIIYA cybersecurity corp !" )
141
+ print ("have a wonerful day at VAIIYA Technologies LLC !" )
88
142
89
143
# Start the TERMINAL and its commands
90
144
def open_terminal ():
@@ -254,7 +308,9 @@ def frostbytes_EE_entered():
254
308
# Main system loop
255
309
def game_loop ():
256
310
startup_screen_ASCII ()
257
- loading_bars_into ()
311
+ loading_bars_intro_1 ()
312
+ loading_bars_intro_2 ()
313
+ loading_bars_intro_3 ()
258
314
main_menu ()
259
315
timefetch ()
260
316
open_terminal ()
0 commit comments