From 5f8b382b70d684b6634abfe66f2bc23efa016fb8 Mon Sep 17 00:00:00 2001
From: T342 <147361653+T34256@users.noreply.github.com>
Date: Wed, 9 Oct 2024 12:21:17 -0700
Subject: [PATCH 1/5] experimental branch source code upload
so that i can edit it thru gitdesktop
---
experimental branch sourcecode.py | 119 ++++++++++++++++++++++++++++++
1 file changed, 119 insertions(+)
create mode 100644 experimental branch sourcecode.py
diff --git a/experimental branch sourcecode.py b/experimental branch sourcecode.py
new file mode 100644
index 0000000..d650b07
--- /dev/null
+++ b/experimental branch sourcecode.py
@@ -0,0 +1,119 @@
+import time
+import os
+from prompt_toolkit.shortcuts import ProgressBar
+from prompt_toolkit.formatted_text import HTML
+from prompt_toolkit import prompt
+import time
+
+# Loading screen with VAIIYA SECURITY ASCII Art
+def startup_screen_ASCII():
+ print(r"""
+██╗ ██╗ █████╗ ██╗██╗██╗ ██╗ █████╗
+██║ ██║██╔══██╗██║██║╚██╗ ██╔╝██╔══██╗
+██║ ██║███████║██║██║ ╚████╔╝ ███████║
+╚██╗ ██╔╝██╔══██║██║██║ ╚██╔╝ ██╔══██║
+ ╚████╔╝ ██║ ██║██║██║ ██║ ██║ ██║
+ ╚═══╝ ╚═╝ ╚═╝╚═╝╚═╝ ╚═╝ ╚═╝ ╚═╝
+███████╗███████╗ ██████╗██╗ ██╗██████╗ ██╗████████╗██╗ ██╗
+██╔════╝██╔════╝██╔════╝██║ ██║██╔══██╗██║╚══██╔══╝╚██╗ ██╔╝
+███████╗█████╗ ██║ ██║ ██║██████╔╝██║ ██║ ╚████╔╝
+╚════██║██╔══╝ ██║ ██║ ██║██╔══██╗██║ ██║ ╚██╔╝
+███████║███████╗╚██████╗╚██████╔╝██║ ██║██║ ██║ ██║
+╚══════╝╚══════╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝
+███████╗██╗ ██╗███████╗████████╗███████╗███╗ ███╗███████╗
+██╔════╝╚██╗ ██╔╝██╔════╝╚══██╔══╝██╔════╝████╗ ████║██╔════╝
+███████╗ ╚████╔╝ ███████╗ ██║ █████╗ ██╔████╔██║███████╗
+╚════██║ ╚██╔╝ ╚════██║ ██║ ██╔══╝ ██║╚██╔╝██║╚════██║
+███████║ ██║ ███████║ ██║ ███████╗██║ ╚═╝ ██║███████║
+╚══════╝ ╚═╝ ╚══════╝ ╚═╝ ╚══════╝╚═╝ ╚═╝╚══════╝
+
+ Welcome to the VAIIYA SECURITY terminal!
+ """)
+#title stuff for new loadin screen
+
+def loading_bars_into():
+
+ title = HTML('')
+ label = HTML('Connecting.... ')
+
+ # loading screen system with prompTK
+ with ProgressBar(title=title) as pb:
+ for i in pb(range(300), label=label):
+ time.sleep(.01)
+
+
+# Display main menu
+def main_menu():
+ print(r"""
+ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______
+| |__| || |__| || |__| || |__| || |__| || |__| || |__| || |__| || |__| || |__| || |__| || |__| || |__| |
+| () || () || () || () || () || () || () || () || () || () || () || () || () |
+|______||______||______||______||______||______||______||______||______||______||______||______||______|
+ ______ ______
+| |__| | | |__| |
+| () | __ __ _ ___ ___ __ __ _ ___ ___ ___ _ _ ___ ___ _____ __ __ | () |
+|______| \ \ / //_\ |_ _||_ _|\ \ / //_\ / __|| __|/ __|| | | || _ \|_ _||_ _|\ \ / / |______|
+ ______ \ V // _ \ | | | | \ V // _ \ \__ \| _|| (__ | |_| || / | | | | \ V / ______
+| |__| | \_//_/ \_\|___||___| |_|/_/ \_\ |___/|___|\___| \___/ |_|_\|___| |_| |_| | |__| |
+| () | ___ __ __ ___ _____ ___ __ __ ___ __ __ ___ _ _ _ _ | () |
+|______| / __|\ \ / // __||_ _|| __|| \/ |/ __| | \/ || __|| \| || | | | |______|
+ ______ \__ \ \ V / \__ \ | | | _| | |\/| |\__ \ | |\/| || _| | .` || |_| | ______
+| |__| | |___/ |_| |___/ |_| |___||_| |_||___/ |_| |_||___||_|\_| \___/ | |__| |
+| () | | () |
+|______| |______|
+ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______
+| |__| || |__| || |__| || |__| || |__| || |__| || |__| || |__| || |__| || |__| || |__| || |__| || |__| |
+| () || () || () || () || () || () || () || () || () || () || () || () || () |
+|______||______||______||______||______||______||______||______||______||______||______||______||______|
+
+ Welcome to the VAIIYA terminal!
+ Use this handy dandy terminal for all your duties at VAIIYA security corp!
+ """)
+
+# Start the TERMINAL and its commands
+def open_terminal():
+
+ prompt('awaiting command(s)>>>> ')
+
+ text = 'hello'
+ print("i am bannana man")
+ pass
+
+# Main system loop
+def game_loop():
+ #startup_screen_ASCII()
+ #loading_bars_into()
+ main_menu()
+ open_terminal()
+
+ while True:
+
+ pass
+
+# Start the game
+game_loop()
+
+
+#if __name__ == "__main__":
+# main()
+
+
+
+#IMPORTANT NOTES AND BEHAVEIORS IN CODE!!!!
+# 1. NEVER put a IF staement with a OR command!! or any other command will do the same action!! including undefined ones!!
+# 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
+
+#update above: you cannot use workaround in main menu!! i have no idea why! you will just need to make a dual command instead.
+
+# 2. UwU dont you say ANYTHING ABOUT THAT - NOT T342, DONT TELL FROST PLEASESSSSSSSSSSSSSSSSSSSSSS
+
+
+#found new menu system that need the EXIT command:
+#
+#command = input("type EXIT to go to main menu>>> ").lower()
+# while True:
+ #if command == "exit":
+ #break
+# use that at the end of a text viewscreen or file viewer - T342 you extra snoop >:3
+
+
From 1ad0d3a0e482a8ab851d0d661b94a72991983d34 Mon Sep 17 00:00:00 2001
From: T342 <147361653+T34256@users.noreply.github.com>
Date: Wed, 9 Oct 2024 13:37:14 -0700
Subject: [PATCH 2/5] - added todo and fix the darn thing please
---
experimental branch sourcecode.py | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/experimental branch sourcecode.py b/experimental branch sourcecode.py
index d650b07..c192973 100644
--- a/experimental branch sourcecode.py
+++ b/experimental branch sourcecode.py
@@ -73,12 +73,11 @@ def main_menu():
# Start the TERMINAL and its commands
def open_terminal():
- prompt('awaiting command(s)>>>> ')
+#TODO: PLEASE FIX THIS FREAKIN COMMAND THING I CANT FIGURE IT OUT!!!
+
+ #prompt('awaiting command(s)>>>> ')
- text = 'hello'
- print("i am bannana man")
pass
-
# Main system loop
def game_loop():
#startup_screen_ASCII()
From 7dbd71c6cab5a54576cba64ceee09dce2759f0c1 Mon Sep 17 00:00:00 2001
From: T342 <147361653+T34256@users.noreply.github.com>
Date: Wed, 9 Oct 2024 14:52:42 -0700
Subject: [PATCH 3/5] - fixed the command system mostly, working and the frost
EE WIP
---
experimental branch sourcecode.py | 57 ++++++++++++++++++++++++++++---
1 file changed, 53 insertions(+), 4 deletions(-)
diff --git a/experimental branch sourcecode.py b/experimental branch sourcecode.py
index c192973..5642c6f 100644
--- a/experimental branch sourcecode.py
+++ b/experimental branch sourcecode.py
@@ -73,11 +73,60 @@ def main_menu():
# Start the TERMINAL and its commands
def open_terminal():
-#TODO: PLEASE FIX THIS FREAKIN COMMAND THING I CANT FIGURE IT OUT!!!
-
- #prompt('awaiting command(s)>>>> ')
+ while True:
+ text = prompt('awaiting commands>>>> ')
+#put all the usercommands under here please!
+
+ if text == 't342':
+ print('wrong answer')
+ continue
+
+ # FROST EE WIP!!
+ if text == 'frostbyte':
+ print("loading frostbyte EE...")
+ frostbyte_EE()
+
+
+#below are all the non-user commands, DO NOT REMOVE!
+ #the COMMANDS directory, DO NOT REMOVE!
+ if text == 'commands':
+ print("Commands;")
+ print("placeholder here | explanation here")
+ print("placeholder here | explanation here")
+ print("placeholder here | explanation here")
+ print("placeholder here | explanation here")
+ print("placeholder here | explanation here")
+
+
+ #the EXIT command, DO NOT REMOVE!!
+ if text == 'exit':
+ print('exiting the terminal... have a nice day!')
+ time.sleep(0.5)
+ exit()
+
+ #error response
+ else:
+ print("uhh, hmm, i dont think thats a command friend! type 'commands' for a list of commands!")
+
+
+# FROST EE STUFF OVER HERE!
+def frostbyte_EE():
+ print("to exit, type EXIT in the password!")
+ text = prompt('frotbytes password: ', is_password=True)
+ if text == 'frostbyte_somthing_i_dont_know':
+ frostbytes_EE_entered()
+ if text == 'exit':
+ return
+ else:
+ print("Sorry! wrong password!")
+
+# 2nd part to the FROST EE
+def frostbytes_EE_entered():
+
+ text = prompt('type EXIT to exit this page; ')
+ if text == 'exit':
+ return
- pass
# Main system loop
def game_loop():
#startup_screen_ASCII()
From 99133801025a0793c2ca212b6a1eca621f0336b7 Mon Sep 17 00:00:00 2001
From: T342 <147361653+T34256@users.noreply.github.com>
Date: Wed, 9 Oct 2024 15:20:52 -0700
Subject: [PATCH 4/5] made finishing toutches on the frost EE, broken ATM
---
experimental branch sourcecode.py | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/experimental branch sourcecode.py b/experimental branch sourcecode.py
index 5642c6f..eb867c2 100644
--- a/experimental branch sourcecode.py
+++ b/experimental branch sourcecode.py
@@ -4,6 +4,7 @@
from prompt_toolkit.formatted_text import HTML
from prompt_toolkit import prompt
import time
+import base64
# Loading screen with VAIIYA SECURITY ASCII Art
def startup_screen_ASCII():
@@ -113,7 +114,7 @@ def open_terminal():
def frostbyte_EE():
print("to exit, type EXIT in the password!")
text = prompt('frotbytes password: ', is_password=True)
- if text == 'frostbyte_somthing_i_dont_know':
+ if text == frost_encoded_pass():
frostbytes_EE_entered()
if text == 'exit':
return
@@ -126,6 +127,14 @@ def frostbytes_EE_entered():
text = prompt('type EXIT to exit this page; ')
if text == 'exit':
return
+def frost_encoded_pass():
+ base64_string ="Ao_g2FCKN;ATM3t@<6L6DfT@"
+ base64_bytes = base64_string.encode("ascii",)
+
+ sample_string_bytes = base64.b64decode(base64_bytes, altchars=None, validate=False)
+ sample_string = sample_string_bytes.decode("ascii")
+
+result = frost_encoded_pass()
# Main system loop
def game_loop():
From f41fe0f5e886d5f209fe029c392b609e7b63eba7 Mon Sep 17 00:00:00 2001
From: T342 <147361653+T34256@users.noreply.github.com>
Date: Wed, 9 Oct 2024 20:21:58 -0700
Subject: [PATCH 5/5] - FIXED frostEE and new password encryption works! -more
to be worked on but its all coming soon!
---
experimental branch sourcecode.py | 41 +++++++++++++++++--------------
1 file changed, 22 insertions(+), 19 deletions(-)
diff --git a/experimental branch sourcecode.py b/experimental branch sourcecode.py
index eb867c2..fc94538 100644
--- a/experimental branch sourcecode.py
+++ b/experimental branch sourcecode.py
@@ -4,7 +4,7 @@
from prompt_toolkit.formatted_text import HTML
from prompt_toolkit import prompt
import time
-import base64
+import bcrypt
# Loading screen with VAIIYA SECURITY ASCII Art
def startup_screen_ASCII():
@@ -82,6 +82,7 @@ def open_terminal():
print('wrong answer')
continue
+ #BUG: the error "no command" will reply when exiting the FROST EE!
# FROST EE WIP!!
if text == 'frostbyte':
print("loading frostbyte EE...")
@@ -110,36 +111,38 @@ def open_terminal():
print("uhh, hmm, i dont think thats a command friend! type 'commands' for a list of commands!")
+#hehe youll never get de password now! ahahahah AHAHAHAHA
+#frostEEpswrd1
+hash = b'$2b$12$AUur7AKX1aGQurOlmM46Pu0OX9HXqx6UHH9SHiEvrCJM56JvUjYfu'
# FROST EE STUFF OVER HERE!
def frostbyte_EE():
- print("to exit, type EXIT in the password!")
- text = prompt('frotbytes password: ', is_password=True)
- if text == frost_encoded_pass():
- frostbytes_EE_entered()
- if text == 'exit':
- return
- else:
- print("Sorry! wrong password!")
-
+
+
+ print("to exit, type EXIT in the password!")
+ userpassword = text = prompt('frotbytes password: ', is_password=True)
+
+ userpassword = userpassword.encode('utf-8')
+
+ #comapre password hashes
+ result = bcrypt.checkpw(userpassword, hash)
+ if result:
+ frostbytes_EE_entered()
+ if text == 'exit':
+ return
# 2nd part to the FROST EE
def frostbytes_EE_entered():
-
+ print(f"""welcome frostbyte! to your ee! dont worry, no one will find your password ^_+ """)
text = prompt('type EXIT to exit this page; ')
if text == 'exit':
return
-def frost_encoded_pass():
- base64_string ="Ao_g2FCKN;ATM3t@<6L6DfT@"
- base64_bytes = base64_string.encode("ascii",)
+#END OF FROST EE CODE,
- sample_string_bytes = base64.b64decode(base64_bytes, altchars=None, validate=False)
- sample_string = sample_string_bytes.decode("ascii")
-result = frost_encoded_pass()
# Main system loop
def game_loop():
- #startup_screen_ASCII()
- #loading_bars_into()
+ startup_screen_ASCII()
+ loading_bars_into()
main_menu()
open_terminal()