1111from datetime import datetime
1212from prompt_toolkit import print_formatted_text , HTML
1313
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
1417
18+ #STDOUT = -11
1519
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
1627# Loading screen with VAIIYA SECURITY ASCII Art
1728def startup_screen_ASCII ():
1829 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.
3958 """ )
4059#title stuff for new loadin screen
4160
42- def loading_bars_into ():
61+ def loading_bars_intro_1 ():
4362
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 ('' )
4665
4766 # loading screen system with prompTK
4867 with ProgressBar (title = title ) as pb :
4968 for i in pb (range (300 ), label = label ):
5069 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 )
52106
53107# Display main menu
54108def main_menu ():
@@ -75,7 +129,7 @@ def main_menu():
75129|______||______||______||______||______||______||______||______||______||______||______||______||______|
76130
77131 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 !
79133 """ )
80134def timefetch ():
81135#time fetch for login
@@ -84,7 +138,7 @@ def timefetch():
84138
85139 print ('Welcome VAIIYA trustee! the time is: ' ,curtime )
86140 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 !" )
88142
89143# Start the TERMINAL and its commands
90144def open_terminal ():
@@ -254,7 +308,9 @@ def frostbytes_EE_entered():
254308# Main system loop
255309def game_loop ():
256310 startup_screen_ASCII ()
257- loading_bars_into ()
311+ loading_bars_intro_1 ()
312+ loading_bars_intro_2 ()
313+ loading_bars_intro_3 ()
258314 main_menu ()
259315 timefetch ()
260316 open_terminal ()
0 commit comments