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

Commit 840f3d3

Browse files
authored
Merge pull request #4 from T34256/experimental
Experimental to MAIN merge (the v0.0.3 sourcecode )
2 parents e414423 + d5b90bc commit 840f3d3

File tree

1 file changed

+179
-0
lines changed

1 file changed

+179
-0
lines changed

experimental branch sourcecode.py

Lines changed: 179 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,179 @@
1+
import time
2+
import os
3+
from prompt_toolkit.shortcuts import ProgressBar
4+
from prompt_toolkit.formatted_text import HTML
5+
from prompt_toolkit import prompt
6+
import time
7+
import bcrypt
8+
9+
# Loading screen with VAIIYA SECURITY ASCII Art
10+
def startup_screen_ASCII():
11+
print(r"""
12+
██╗ ██╗ █████╗ ██╗██╗██╗ ██╗ █████╗
13+
██║ ██║██╔══██╗██║██║╚██╗ ██╔╝██╔══██╗
14+
██║ ██║███████║██║██║ ╚████╔╝ ███████║
15+
╚██╗ ██╔╝██╔══██║██║██║ ╚██╔╝ ██╔══██║
16+
╚████╔╝ ██║ ██║██║██║ ██║ ██║ ██║
17+
╚═══╝ ╚═╝ ╚═╝╚═╝╚═╝ ╚═╝ ╚═╝ ╚═╝
18+
███████╗███████╗ ██████╗██╗ ██╗██████╗ ██╗████████╗██╗ ██╗
19+
██╔════╝██╔════╝██╔════╝██║ ██║██╔══██╗██║╚══██╔══╝╚██╗ ██╔╝
20+
███████╗█████╗ ██║ ██║ ██║██████╔╝██║ ██║ ╚████╔╝
21+
╚════██║██╔══╝ ██║ ██║ ██║██╔══██╗██║ ██║ ╚██╔╝
22+
███████║███████╗╚██████╗╚██████╔╝██║ ██║██║ ██║ ██║
23+
╚══════╝╚══════╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝
24+
███████╗██╗ ██╗███████╗████████╗███████╗███╗ ███╗███████╗
25+
██╔════╝╚██╗ ██╔╝██╔════╝╚══██╔══╝██╔════╝████╗ ████║██╔════╝
26+
███████╗ ╚████╔╝ ███████╗ ██║ █████╗ ██╔████╔██║███████╗
27+
╚════██║ ╚██╔╝ ╚════██║ ██║ ██╔══╝ ██║╚██╔╝██║╚════██║
28+
███████║ ██║ ███████║ ██║ ███████╗██║ ╚═╝ ██║███████║
29+
╚══════╝ ╚═╝ ╚══════╝ ╚═╝ ╚══════╝╚═╝ ╚═╝╚══════╝
30+
31+
Welcome to the VAIIYA SECURITY terminal!
32+
""")
33+
#title stuff for new loadin screen
34+
35+
def loading_bars_into():
36+
37+
title = HTML('<style bg="blue" fg="black">Connecting to the VAIIYA Defender framework....</style>')
38+
label = HTML('<ansired>Connecting</ansired>.... ')
39+
40+
# loading screen system with prompTK
41+
with ProgressBar(title=title) as pb:
42+
for i in pb(range(300), label=label):
43+
time.sleep(.01)
44+
45+
46+
# Display main menu
47+
def main_menu():
48+
print(r"""
49+
______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______
50+
| |__| || |__| || |__| || |__| || |__| || |__| || |__| || |__| || |__| || |__| || |__| || |__| || |__| |
51+
| () || () || () || () || () || () || () || () || () || () || () || () || () |
52+
|______||______||______||______||______||______||______||______||______||______||______||______||______|
53+
______ ______
54+
| |__| | | |__| |
55+
| () | __ __ _ ___ ___ __ __ _ ___ ___ ___ _ _ ___ ___ _____ __ __ | () |
56+
|______| \ \ / //_\ |_ _||_ _|\ \ / //_\ / __|| __|/ __|| | | || _ \|_ _||_ _|\ \ / / |______|
57+
______ \ V // _ \ | | | | \ V // _ \ \__ \| _|| (__ | |_| || / | | | | \ V / ______
58+
| |__| | \_//_/ \_\|___||___| |_|/_/ \_\ |___/|___|\___| \___/ |_|_\|___| |_| |_| | |__| |
59+
| () | ___ __ __ ___ _____ ___ __ __ ___ __ __ ___ _ _ _ _ | () |
60+
|______| / __|\ \ / // __||_ _|| __|| \/ |/ __| | \/ || __|| \| || | | | |______|
61+
______ \__ \ \ V / \__ \ | | | _| | |\/| |\__ \ | |\/| || _| | .` || |_| | ______
62+
| |__| | |___/ |_| |___/ |_| |___||_| |_||___/ |_| |_||___||_|\_| \___/ | |__| |
63+
| () | | () |
64+
|______| |______|
65+
______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______
66+
| |__| || |__| || |__| || |__| || |__| || |__| || |__| || |__| || |__| || |__| || |__| || |__| || |__| |
67+
| () || () || () || () || () || () || () || () || () || () || () || () || () |
68+
|______||______||______||______||______||______||______||______||______||______||______||______||______|
69+
70+
Welcome to the VAIIYA terminal!
71+
Use this handy dandy terminal for all your duties at VAIIYA security corp!
72+
""")
73+
74+
# Start the TERMINAL and its commands
75+
def open_terminal():
76+
77+
while True:
78+
text = prompt('awaiting commands>>>> ')
79+
#put all the usercommands under here please!
80+
81+
if text == 't342':
82+
print('wrong answer')
83+
continue
84+
85+
#BUG: the error "no command" will reply when exiting the FROST EE!
86+
# FROST EE WIP!!
87+
if text == 'frostbyte':
88+
print("loading frostbyte EE...")
89+
frostbyte_EE()
90+
91+
92+
#below are all the non-user commands, DO NOT REMOVE!
93+
#the COMMANDS directory, DO NOT REMOVE!
94+
if text == 'commands':
95+
print("Commands;")
96+
print("placeholder here | explanation here")
97+
print("placeholder here | explanation here")
98+
print("placeholder here | explanation here")
99+
print("placeholder here | explanation here")
100+
print("placeholder here | explanation here")
101+
102+
103+
#the EXIT command, DO NOT REMOVE!!
104+
if text == 'exit':
105+
print('exiting the terminal... have a nice day!')
106+
time.sleep(0.5)
107+
exit()
108+
109+
#error response
110+
else:
111+
print("uhh, hmm, i dont think thats a command friend! type 'commands' for a list of commands!")
112+
113+
114+
#hehe youll never get de password now! ahahahah AHAHAHAHA
115+
#frostEEpswrd1
116+
hash = b'$2b$12$AUur7AKX1aGQurOlmM46Pu0OX9HXqx6UHH9SHiEvrCJM56JvUjYfu'
117+
# FROST EE STUFF OVER HERE!
118+
def frostbyte_EE():
119+
120+
121+
print("to exit, type EXIT in the password!")
122+
userpassword = text = prompt('frotbytes password: ', is_password=True)
123+
124+
userpassword = userpassword.encode('utf-8')
125+
126+
#comapre password hashes
127+
result = bcrypt.checkpw(userpassword, hash)
128+
if result:
129+
frostbytes_EE_entered()
130+
if text == 'exit':
131+
return
132+
# 2nd part to the FROST EE
133+
def frostbytes_EE_entered():
134+
print(f"""welcome frostbyte! to your ee! dont worry, no one will find your password ^_+ """)
135+
text = prompt('type EXIT to exit this page; ')
136+
if text == 'exit':
137+
return
138+
#END OF FROST EE CODE,
139+
140+
141+
142+
# Main system loop
143+
def game_loop():
144+
startup_screen_ASCII()
145+
loading_bars_into()
146+
main_menu()
147+
open_terminal()
148+
149+
while True:
150+
151+
pass
152+
153+
# Start the game
154+
game_loop()
155+
156+
157+
#if __name__ == "__main__":
158+
# main()
159+
160+
161+
162+
#IMPORTANT NOTES AND BEHAVEIORS IN CODE!!!!
163+
# 1. NEVER put a IF staement with a OR command!! or any other command will do the same action!! including undefined ones!!
164+
# the way to get arount this is use a ELIF command, than the OR statement will not reapet undefined or incorrect strings!!! - T342 the owner if you were snooping >:3
165+
166+
#update above: you cannot use workaround in main menu!! i have no idea why! you will just need to make a dual command instead.
167+
168+
# 2. UwU dont you say ANYTHING ABOUT THAT - NOT T342, DONT TELL FROST PLEASESSSSSSSSSSSSSSSSSSSSSS
169+
170+
171+
#found new menu system that need the EXIT command:
172+
#
173+
#command = input("type EXIT to go to main menu>>> ").lower()
174+
# while True:
175+
#if command == "exit":
176+
#break
177+
# use that at the end of a text viewscreen or file viewer - T342 you extra snoop >:3
178+
179+

0 commit comments

Comments
 (0)