-
Notifications
You must be signed in to change notification settings - Fork 0
/
qStore.py
788 lines (615 loc) · 29.3 KB
/
qStore.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
import cv2
import numpy as np
import secrets
import string
import os
import beaupy
from pystyle import Colors, Colorate
from tqdm import tqdm
import shutil
import magic
from Chaeslib import Chaes
import base64
import yt_dlp
from subprocess import call, STDOUT
from PIL import Image
import pyqrcode
import pyzbar.pyzbar as pyzbar
import sqlite3
import wget
import math
chaes = Chaes()
def banner():
banner = """
.d8888b. 888
d88P Y88b 888
Y88b. 888
.d88888 "Y888b. 888888 .d88b. 888d888 .d88b.
d88" 888 "Y88b. 888 d88""88b 888P" d8P Y8b
888 888 "888 888 888 888 888 88888888
Y88b 888 Y88b d88P Y88b. Y88..88P 888 Y8b.
"Y88888 "Y8888P" "Y888 "Y88P" 888 "Y8888
888
888
888
Made by Ori#6338 | @therealOri_ | https://github.com/therealOri
"""
colored_banner = Colorate.Horizontal(Colors.purple_to_blue, banner, 1)
return colored_banner
def clear():
os.system('clear||cls')
def get_file_type(bytes_data):
mime = magic.Magic(mime=True)
file_type = mime.from_buffer(bytes_data)
return file_type.split('/')[1]
def generate_filename():
alphabet = string.ascii_letters + string.digits
filename = ''.join(secrets.choice(alphabet) for i in range(12)) + ".avi"
return filename
def generate_video(duration):
output_filename = generate_filename()
width=1920
height=1080
fps=30
fourcc = cv2.VideoWriter_fourcc(*'FFV1')
out = cv2.VideoWriter(output_filename, fourcc, fps, (width, height))
# Generates a "random" background color | BGR from left to right
background_color = tuple(secrets.randbelow(256) for i in range(3)) #(0, 0, 255) = red
# Creates frames with the "random" color
for i in tqdm(range(int(fps * duration)), desc="Creating video..."):
frame = np.zeros((height, width, 3), dtype=np.uint8)
frame[:, :, :] = background_color
out.write(frame)
out.release()
cv2.destroyAllWindows()
clear()
return output_filename
def clean_tmp(path=".tmp"):
if os.path.exists(path):
shutil.rmtree(path)
print("[INFO] tmp files have been cleaned up.\n")
def split_string(s_str, count=21):
per_c=math.ceil(len(s_str)/count)
c_cout=0
out_str=''
split_list=[]
for s in s_str:
out_str+=s
c_cout+=1
if c_cout == per_c:
split_list.append(out_str)
out_str=''
c_cout=0
if c_cout!=0:
split_list.append(out_str)
return split_list
def frame_extraction(video):
if not os.path.exists(".tmp"):
os.makedirs(".tmp")
temp_folder=".tmp"
print("[INFO] tmp directory has been created.")
vidcap = cv2.VideoCapture(video)
count = 0
n_frames = int(vidcap.get(cv2.CAP_PROP_FRAME_COUNT))
pbar = tqdm(total=n_frames, desc="Extracting frames...")
while True:
success, image = vidcap.read()
if not success:
break
cv2.imwrite(os.path.join(temp_folder, "{:d}.png".format(count)), image)
count += 1
pbar.update(1)
pbar.close()
def resize_and_center_image(qr_image_path, background_image_path):
new_height = 950
new_width = 950
qr_image = cv2.imread(qr_image_path)
resized_qr_image = cv2.resize(qr_image, (new_width, new_height))
background_image = cv2.imread(background_image_path)
x = (background_image.shape[1] - resized_qr_image.shape[1]) // 2
y = (background_image.shape[0] - resized_qr_image.shape[0]) // 2
background_image[y:y+resized_qr_image.shape[0], x:x+resized_qr_image.shape[1]] = resized_qr_image
cv2.imwrite(background_image_path, background_image)
def encode_video(file_name, string_split=51, vid_length=10):
chaes_ev = Chaes() # each time this function is called and you want to encode a video with a file, a new "chaes.salt" will be generated.
clear()
key_data = beaupy.prompt("Data for key gen")
if not key_data:
clear()
return
key_data = key_data.encode()
clear()
eKey = chaes.keygen(key_data) #Returns random bytes from Argon2id and will return "None" if what's provided is less than 100 characters.
if not eKey:
return
save_me = base64.b64encode(eKey)
bSalt = base64.b64encode(chaes_ev.salt)
master_key = f"{save_me.decode()}:{bSalt.decode()}"
input(f'Save this key so you can decrypt and decode later: {master_key}\n\nPress "enter" to contine...')
clear()
with open(file_name, 'rb') as rb:
data = rb.read()
data_enc = chaes.encrypt(data, eKey)
split_string_list=split_string(data_enc, string_split)
video_file = generate_video(duration=vid_length)
frame_extraction(video_file)
for i in range(len(split_string_list)):
root=".tmp/"
f_name=f"{root}{i}.png"
qr_code_file_name=f'{root}qr_code{i}.png'
qr_code = pyqrcode.create(split_string_list[i], error='H', version=40, mode='binary')
qr_code.png(f'{root}qr_code{i}.png', scale=12)
resize_and_center_image(qr_code_file_name, f_name)
print(f"\n[INFO] frame {f_name} holds {split_string_list[i]}\n")
output_vid = '.tmp_vid.avi'
call(["ffmpeg", "-framerate", "30", "-i", ".tmp/%d.png" , "-vcodec", 'ffv1', output_vid, "-y"], stdout=open(os.devnull, "w"), stderr=STDOUT)
cwd = os.getcwd()
os.walk(f".tmp/{output_vid}", cwd)
clean_tmp()
os.rename(output_vid, video_file)
return True
def decode_video(video, b64_enc_key):
frame_extraction(video)
secret=[]
root=".tmp/"
for i in range(len(os.listdir(root))):
f_name = f"{root}{i}.png"
try:
img = Image.open(f_name)
result = pyzbar.decode(img)[0].data.decode('utf-8')
print(f"\n[INFO] found data in: {f_name}. Data: {result}\n")
secret.append(result)
except Exception: # hoping the error that happens is an out of index error. Which would mean there are no more qr codes to read. (Or the qr code is un-readable/not found)
input(f'[INFO] No more data/QR codes can be found."\n\nPress "enter" to contine...')
break # not sure if the "break" here is needed.
result = ''.join(list(secret))
clean_tmp()
enc_message = chaes.hex_to_base64(result)
json_input = base64.b64decode(enc_message)
key_and_salt = b64_enc_key.split(":")
salt_1 = key_and_salt[1]
key_0 = key_and_salt[0]
salt = base64.b64decode(salt_1)
key = base64.b64decode(key_0)
cha_aes_crypt = chaes.decrypt(key, json_input, salt)
clear()
return cha_aes_crypt
if __name__ == '__main__':
############################### Main Options ###############################
clear()
while True:
main_options = ["Embed?", "Extract?", "Download Video?", "Database?", "Exit?"]
print(f'{banner()}\n\nWhat would you like to do?\n-----------------------------------------------------------\n')
main_option = beaupy.select(main_options, cursor_style="#ffa533")
if not main_option:
clear()
exit("Keyboard Interuption Detected!\nGoodbye <3")
if main_options[0] in main_option:
clear()
file_to_store = beaupy.prompt("File to embed/store. - (Drag & Drop)")
if not file_to_store:
clear()
continue
file_to_store = file_to_store.replace('\\ ', ' ').strip()
if file_to_store.endswith((".zip", ".gz")):
# This number should be changed depending on how big your .zip/tar.gz archive is. (Bigger = higher)
if beaupy.confirm("Would you like to increase or decrease the ammount of frames to be used for the storing of encrypted data? - (default is at 51)"):
frames_to_use = beaupy.prompt("How many frames?")
if not frames_to_use:
clear()
continue
try:
frames_to_use = int(frames_to_use)
frames = True
except Exception:
clear()
continue
else:
frames = False
if beaupy.confirm('Would you like to change the length of the video that will be made? - (default is "10" seconds)'):
# Decide how long you want the video to be. (longer takes..well..longer to make and extract frames.)
vid_length = beaupy.prompt("How long would you like the duration of the video to be?")
if not vid_length:
clear()
continue
try:
vid_length = int(vid_length)
length = True
except Exception:
clear()
continue
else:
length = False
if frames and length == True:
clear()
none_check = encode_video(file_to_store, frames_to_use, vid_length)
if not none_check:
clear()
continue
input('\n\nPress "enter" to continue...')
clear()
elif frames == True and length == False:
vid_length=10
clear()
none_check = encode_video(file_to_store, frames_to_use, vid_length)
if not none_check:
clear()
continue
input('\n\nPress "enter" to continue...')
clear()
elif frames == False and length == True:
clear()
frames_to_use=51
none_check = encode_video(file_to_store, frames_to_use, vid_length)
if not none_check:
clear()
continue
input('\n\nPress "enter" to continue...')
clear()
else:
clear()
none_check = encode_video(file_to_store) # returns True if successful.
if not none_check:
clear()
continue
input('\n\nPress "enter" to continue...')
clear()
else:
input('Invalid filetype, file must be a .zip or .tar.gz archive.\n\nPress "enter" to continue...')
clear()
if main_options[1] in main_option:
clear()
vid_that_has_file = beaupy.prompt("Video that has the embedded file in it. - (Drag & Drop)")
if not vid_that_has_file:
clear()
continue
vid_that_has_file = vid_that_has_file.replace('\\ ', ' ').strip()
dKey = beaupy.prompt("Encryption Key", secure=True)
if not dKey:
clear()
continue
clear()
file_data = decode_video(vid_that_has_file, dKey)
if file_data == None:
clear()
continue
file_type = get_file_type(file_data)
if file_type == 'gzip':
output_file_name = "".join(secrets.choice(string.ascii_letters + string.digits) for _ in range(10)) + ".tar.gz"
with open(output_file_name, 'wb') as wb:
wb.write(file_data)
input(f'File has been extracted as {output_file_name}.\n\nPress "enter" to continue...')
clear()
elif file_type == 'zip':
output_file_name = "".join(secrets.choice(string.ascii_letters + string.digits) for _ in range(10)) + ".zip"
with open(output_file_name, 'wb') as wb:
wb.write(file_data)
input(f'File has been extracted as {output_file_name}.\n\nPress "enter" to continue...')
clear()
else:
input('File is not a supported archive type - (.zip or .tar.gz)\n\nPress "enter" to continue...')
clear()
if main_options[2] in main_option:
yt_url = beaupy.prompt("Youtube video url/link.")
if not yt_url:
clear()
continue
clear()
print("Downloading video...")
ydl_opts = {
'format': 'bestvideo[ext=mp4]/best[ext=mp4]',
'outtmpl': '%(title)s.%(ext)s',
'postprocessors': [{
'key': 'FFmpegVideoConvertor',
'preferedformat': 'avi'
}]
}
with yt_dlp.YoutubeDL(ydl_opts) as ydl:
ydl.download([yt_url])
input('Video has been downloaded.\n\nPress "enter" to contine...')
clear()
############################### Database Options & functions ###############################
def add_item(link, description, enc_key):
conn = sqlite3.connect('qS_links.db')
c = conn.cursor()
c.execute(f"INSERT INTO items (link, description, enc_key) VALUES ('{link}', '{description}', '{enc_key}')")
conn.commit()
conn.close()
def remove_item():
conn = sqlite3.connect('qS_links.db')
c = conn.cursor()
c.execute("SELECT COUNT(*) FROM items")
count = c.fetchone()[0]
if count == 0:
input('There are no records to remove...\n\nPress "enter" to continue.')
conn.close()
return None
print(f"Available options:\n---------------------------------------------------------------------------------------\n")
for row in c.execute("SELECT id, link, description, enc_key FROM items"):
print(row)
delete_ids = beaupy.prompt("\n\nEnter the ID(s) of the item(s) you want to delete (separated by commas): ")
delete_ids = delete_ids.split(",")
for delete_id in delete_ids:
c.execute(f"DELETE FROM items WHERE id = '{delete_id.strip()}'")
conn.commit()
conn.close()
return True
class PageSchema:
def __init__(self, page_size):
self.page_size = page_size
def get_page(self, items, page_number):
start_index = (page_number - 1) * self.page_size
end_index = start_index + self.page_size
return items[start_index:end_index]
def get_page_count(self, items):
return int((len(items) + self.page_size - 1) / self.page_size)
#headache...but worth it.
def view_items(page_size=15):
conn = sqlite3.connect('qS_links.db')
c = conn.cursor()
items = []
for row in c.execute("SELECT id, link, description, enc_key FROM items"):
items.append(row)
c.execute("SELECT COUNT(*) FROM items")
count = c.fetchone()[0]
if count == 0:
input('There are no records to view...\n\nPress "enter" to continue.')
conn.close()
return None
page_schema = PageSchema(page_size=page_size)
page_count = page_schema.get_page_count(items)
page_number = 1
while True:
# Get current page
page_items = page_schema.get_page(items, page_number)
clear()
print("Available items (Page {}/{}):\n".format(page_number, page_count))
print("{:<5} {:<50} {:<50} {:<50}".format("ID", "Link", "Description", "Encryption Key"))
print("-" * 150)
for item in page_items:
print("{:<5} {:<50} {:<50} {:<50}".format(item[0], item[1], item[2], item[3]))
# Prompt user to go to next/previous page or exit
print("\n")
if page_number == 1 and page_count > 1:
print("Press 'p' to go to the last page.")
elif page_number == page_count and page_count > 1:
print("Press 'n' to go to the first page.")
print("Press 'p' to go to the previous page.")
elif page_number > 1:
print("Press 'p' to go to the previous page.")
if page_number < page_count:
print("Press 'n' to go to the next page.")
print("Press 'q' to exit.")
choice = input("\n>_ ")
if choice == 'p':
if page_number > 1:
page_number -= 1
else:
page_number = page_count
elif choice == 'n':
if page_number < page_count:
page_number += 1
else:
page_number = 1
elif choice == 'q':
return None
conn.close()
# Locking and unlocking files.
def lock(file_path, key):
with open(file_path, 'rb') as fr:
data = fr.read()
enc_data = chaes.encrypt(data, key)
with open(f'{file_path}', 'w') as fw:
fw.write(enc_data)
os.rename(file_path, file_path.replace(file_path, f'{file_path}.locked'))
def unlock(file_path, dKey):
with open(file_path, 'r') as fr:
data = fr.read()
enc_message = chaes.hex_to_base64(data)
json_input = base64.b64decode(enc_message)
key_and_salt = dKey.split(":")
salt_1 = key_and_salt[1]
key_0 = key_and_salt[0]
salt = base64.b64decode(salt_1)
key = base64.b64decode(key_0)
cha_aes_crypt = chaes.decrypt(key, json_input, salt)
with open(file_path, 'wb') as fw:
fw.write(cha_aes_crypt)
os.rename(file_path, file_path.replace('.locked', ''))
if main_options[3] in main_option:
clear()
while True:
db_options = ["Add record?", "Remove record?", "View records?", "Lock?", "Unlock?", "Back?"]
print(f'{banner()}\n\nWhat would you like to do?\n-----------------------------------------------------------\n')
db_option = beaupy.select(db_options, cursor_style="#ffa533")
if not db_option:
clear()
break
if db_options[0] in db_option:
if os.path.isfile('qS_links.db') or os.path.isfile('qS_links.db.locked'):
if os.path.isfile('qS_links.db.locked'):
clear()
print("Database file already encrypted...")
input('\n\nPress "enter" to continue...')
clear()
else:
clear()
link = beaupy.prompt("Url/Link of the video that has your file embedded in it.")
if not link or link.lower() == 'q':
clear()
continue
description = beaupy.prompt("Description of what the file is/contains so you can distinguish what is what.")
if not description or description.lower() == 'q':
clear()
continue
enc_key0 = beaupy.prompt("The key that was used to encrypt the file that is stroed in the video file.")
if not enc_key0 or enc_key0.lower() == 'q':
clear()
continue
clear()
add_item(link, description, enc_key0)
input('[INFO] Database has been updated!\n\nPress "enter" to continue...')
clear()
else:
clear()
print("qS_links.db not found, downloading from the repository...")
wget.download("https://github.com/therealOri/qStore/blob/main/qS_links.db?raw=true")
clear()
link = beaupy.prompt("Url/Link of the video that has your file embedded in it.")
if not link or link.lower() == 'q':
clear()
continue
description = beaupy.prompt("Description of what the file is/contains so you can distinguish what is what.")
if not description or description.lower() == 'q':
clear()
continue
enc_key0 = beaupy.prompt("The key that was used to encrypt the file that is stroed in the video file.")
if not enc_key0 or enc_key0.lower() == 'q':
clear()
continue
clear()
add_item(link, description, enc_key0)
input('[INFO] Database has been updated!\n\nPress "enter" to continue...')
clear()
if db_options[1] in db_option:
if os.path.isfile('qS_links.db') or os.path.isfile('qS_links.db.locked'):
if os.path.isfile('qS_links.db.locked'):
clear()
print("Database file already encrypted...")
input('\n\nPress "enter" to continue...')
clear()
else:
clear()
check = remove_item()
if not check:
clear()
continue
clear()
input('[INFO] Database has been updated!\n\nPress "enter" to continue...')
clear()
else:
clear()
print("qS_links.db not found, downloading from the repository...")
wget.download("https://github.com/therealOri/qStore/blob/main/qS_links.db?raw=true")
input('\n\nDatabse is empty, nothing to remove.\n\nPress "enter" to continue...')
clear()
continue
if db_options[2] in db_option:
if os.path.isfile('qS_links.db') or os.path.isfile('qS_links.db.locked'):
if os.path.isfile('qS_links.db.locked'):
clear()
print("Database file already encrypted...")
input('\n\nPress "enter" to continue...')
clear()
else:
clear()
check = view_items()
if not check:
clear()
continue
input('Press "enter" to continue...')
clear()
else:
clear()
print("qS_links.db not found, downloading from the repository...")
wget.download("https://github.com/therealOri/qStore/blob/main/qS_links.db?raw=true")
input('\n\nDatabse is empty, nothing to view.\n\nPress "enter" to continue...')
clear()
continue
#Lock Database
if db_options[3] in db_option:
if os.path.isfile('qS_links.db') or os.path.isfile('qS_links.db.locked'):
if os.path.isfile('qS_links.db.locked'):
clear()
print("Database file already encrypted...")
input('\n\nPress "enter" to continue...')
clear()
else:
clear()
print('Please provide credentials to lock the database.\nPress "q" to go back/quit.\n\n')
file_path = beaupy.prompt("File path? - (Drag & drop): ")
if not file_path or file_path.lower() == 'q':
clear()
continue
file_path = file_path.replace('\\ ', ' ').strip()
# Each time we lock the database, a new key will get made.
chaes2 = Chaes()
clear()
key_data = beaupy.prompt("Data for key generation. - (100+ characters)")
if not key_data:
clear()
continue
key_data = key_data.encode()
clear()
eKey = chaes2.keygen(key_data)
if not eKey:
clear()
continue
save_me = base64.b64encode(eKey)
bSalt = base64.b64encode(chaes2.salt)
master_key = f"{save_me.decode()}:{bSalt.decode()}"
input(f'Save this key so you can decrypt and decode later: {master_key}\n\nPress "enter" to contine...')
clear()
lock(file_path, eKey)
clear()
input('Your file has been succesfully locked!\n\nPress "enter" to continue...')
clear()
continue
else:
clear()
print("qS_links.db not found, downloading from the repository...")
wget.download("https://github.com/therealOri/qStore/blob/main/qS_links.db?raw=true")
input('\n\nDatabse is empty, skipping on locking the database.\n\nPress "enter" to continue...')
clear()
continue
#unlock Database
if db_options[4] in db_option:
if os.path.isfile('qS_links.db') or os.path.isfile('qS_links.db.locked'):
if os.path.isfile('qS_links.db.locked'):
clear()
print('Please provide the correct credentials to unlock the database.\nPress "q" to go back/quit.\n\n')
file_path2 = beaupy.prompt("File path? - (Drag & drop): ")
if not file_path2 or file_path2.lower() == 'q':
clear()
file_path2 = file_path2.replace('\\ ', ' ').strip()
enc_key2 = beaupy.prompt("Encryption Key: ")
try:
enc_key_check = enc_key2
enc_key_check = base64.b64decode(enc_key_check)
except Exception:
clear()
print("Provided key isn't base64 encoded...\n\n")
input('Press "enter" to continue...')
clear()
continue
try:
enc_key_check = enc_key2.split(':')
except Exception:
clear()
print("Provided key isn't a valid chaeslib key...\n\n")
input('Press "enter" to continue...')
clear()
continue
unlock(file_path2, enc_key2)
clear()
input('Your file has been succesfully unlocked!\n\nPress "enter" to continue...')
clear()
else:
clear()
print("Database file is not encrypted/locked...")
input('\n\nPress "enter" to continue...')
clear()
else:
clear()
print("qS_links.db not found, downloading from the repository...")
wget.download("https://github.com/therealOri/qStore/blob/main/qS_links.db?raw=true")
input('\n\nDatabse is empty and not locked, skipping on unlocking the database.\n\nPress "enter" to continue...')
clear()
if db_options[5] in db_option:
clear()
break
############################### Database Options & functions ###############################
if main_options[4] in main_option:
clear()
exit("Goodbye! <3")
############################### Main Options ###############################