-
Notifications
You must be signed in to change notification settings - Fork 14
/
main.py
578 lines (533 loc) · 25.9 KB
/
main.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
#Watch Dogs Artificial Assistant
#Write by Pyrra in Python 3.8.0-
#This script is for fun, test and educationnal purpose only
import os
import time
import getpass
import platform
import webbrowser
import socket
import pyttsx3
import requests
import speech_recognition as sr
from datetime import datetime
from colorama import init
from termcolor import colored
import subprocess
import sys
import keyboard
try:
from urllib.request import urlopen
from urllib.parse import urlparse
except ImportError:
from urlparse import urlparse
from urllib2 import urlopen
import argparse
#color label
#red: system output or error
#blue: text
#white: user input and program launch time
#green: program output
username = getpass.getuser()
#system = platform.system()
engine = pyttsx3.init()
speech = sr.Recognizer()
#for voice in voices: UNCOMMENT IT ONLY IF YOU WANT TO CHANGE THE VOICES
# print(voice.id)
voices = engine.getProperty('voices')
rate = engine.getProperty('rate')
volume = engine.getProperty('volume')
engine.setProperty('voice','HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\Voices\Tokens\TTS_MS_EN-US_ZIRA_11.0')
rate = engine.getProperty('rate')
engine.setProperty('rate', rate-15)
def clear():
if platform.system() == 'Windows':
os.system('cls')
elif platform.system() == 'Linux':
os.system('clear')
else:
print(colored("Not supported on you device yet, please launch the program on linux or windows", 'red'))
time.sleep(3)
sys.exit()
def speak_text_cmd(cmd):
engine.say(cmd)
engine.runAndWait()
def get_server_ip():
print(": IP scanner launch at" , datetime.now().strftime('%Y-%m-%d %H:%M:%S'), "on", platform.system(), "by", username)
speak_text_cmd('IP scanner launch at' + datetime.now().strftime('%Y-%m-%d %H:%M:%S') + 'on' + platform.system() + 'by' + username)
print(colored(": What is the target ?", 'blue'))
speak_text_cmd("What is the target ?")
host = input(": ")
print(colored(": target set to " + host, 'blue'))
speak_text_cmd('target set to ' + host)
time.sleep(1)
print(': starting...')
speak_text_cmd('starting')
ip = socket.gethostbyname(host)
print(colored(": the IP adress of " + host + " is " + ip, 'green'))
speak_text_cmd('The IP adress of the target is: ' + ip)
print(": IP scanner stop at " , datetime.now().strftime('%Y-%m-%d %H:%M:%S'), "on", platform.system(), "by", username)
speak_text_cmd("IP scanner stop at " + datetime.now().strftime('%Y-%m-%d %H:%M:%S') + "on" + platform.system() + "by" + username)
def get_website_response_code():
import requests
print(": website response program launch at " , datetime.now().strftime('%Y-%m-%d %H:%M:%S'), "on", platform.system(), "by", username)
speak_text_cmd("website response program launch at " + datetime.now().strftime('%Y-%m-%d %H:%M:%S') + "on" + platform.system() + "by" + username)
print(colored(": What is the target ?", 'blue'))
speak_text_cmd("What is the target ?")
target = input()
print(colored(": target set to " + target, 'blue'))
speak_text_cmd('target set to ' + target)
time.sleep(1)
print(colored(': starting...', 'blue'))
speak_text_cmd('starting')
req = requests.get(target)
print('Response Code:' + str(req.status_code))
print("\nResponse:\n" + req.text)
print(": website response program stop at ", datetime.now().strftime('%Y-%m-%d %H:%M:%S'), "on", platform.system(), "by", username)
speak_text_cmd("website response program stop at " + datetime.now().strftime('%Y-%m-%d %H:%M:%S') + "on" + platform.system() + "by" + username)
def get_server_info():
print(": server info program launch at ", datetime.now().strftime('%Y-%m-%d %H:%M:%S'), "on", platform.system(), "by", username)
speak_text_cmd("server info program launch at "+ datetime.now().strftime('%Y-%m-%d %H:%M:%S') + "on" + platform.system() + "by" + username)
import socket
s = socket.socket()
s.settimeout(2)
print(colored(": What is the target ?", 'blue'))
speak_text_cmd("What is the target ?")
target = input()
print(colored(": target set to " + target, 'blue'))
speak_text_cmd('target set to ' + target)
time.sleep(1)
print(colored(': starting...', 'blue'))
speak_text_cmd('starting')
s.connect((target, 80))
s.send('HEAD / HTTP?1.1\nHost:', target, '\n\n')
print (s.recv(1024))
s.close
print(": server info program stop at ", datetime.now().strftime('%Y-%m-%d %H:%M:%S'), "on", platform.system(), "by", username)
speak_text_cmd("server info program stop at " + datetime.now().strftime('%Y-%m-%d %H:%M:%S') + "on" + platform.system() + "by" + username)
def parse_args():
"""Parse arguments."""
parser = argparse.ArgumentParser(
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
description='Diagnose script for checking the current system.')
choices = ['python', 'pip', 'mxnet', 'os', 'hardware', 'network']
for choice in choices:
parser.add_argument('--' + choice, default=1, type=int,
help='Diagnose {}.'.format(choice))
parser.add_argument('--region', default='', type=str,
help="Additional sites in which region(s) to test. \
Specify 'cn' for example to test mirror sites in China.")
parser.add_argument('--timeout', default=10, type=int,
help="Connection test timeout threshold, 0 to disable.")
args = parser.parse_args()
return args
URLS = {
'MXNet': 'https://github.com/apache/incubator-mxnet',
'Gluon Tutorial(en)': 'http://gluon.mxnet.io',
'Gluon Tutorial(cn)': 'https://zh.gluon.ai',
'FashionMNIST': 'https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/gluon/dataset/fashion-mnist/train-labels-idx1-ubyte.gz',
'PYPI': 'https://pypi.python.org/pypi/pip',
'Conda': 'https://repo.continuum.io/pkgs/free/',
}
REGIONAL_URLS = {
'cn': {
'PYPI(douban)': 'https://pypi.douban.com/',
'Conda(tsinghua)': 'https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/',
}
}
def test_connection(name, url, timeout=10):
"""Simple connection test"""
urlinfo = urlparse(url)
start = time.time()
try:
ip = socket.gethostbyname(urlinfo.netloc)
except Exception as e:
print('Error resolving DNS for {}: {}, {}'.format(name, url, e))
return
dns_elapsed = time.time() - start
start = time.time()
try:
_ = urlopen(url, timeout=timeout)
except Exception as e:
print("Error open {}: {}, {}, DNS finished in {} sec.".format(name, url, e, dns_elapsed))
return
load_elapsed = time.time() - start
print("Timing for {}: {}, DNS: {:.4f} sec, LOAD: {:.4f} sec.".format(name, url, dns_elapsed, load_elapsed))
def check_python():
print('----------Python Info----------')
print('Version :', platform.python_version())
print('Compiler :', platform.python_compiler())
print('Build :', platform.python_build())
print('Arch :', platform.architecture())
def check_pip():
print('------------Pip Info-----------')
try:
import pip
print('Version :', pip.__version__)
print('Directory :', os.path.dirname(pip.__file__))
except ImportError:
print('No corresponding pip install for current python.')
def check_mxnet():
print('----------MXNet Info-----------')
try:
import mxnet
print('Version :', mxnet.__version__)
mx_dir = os.path.dirname(mxnet.__file__)
print('Directory :', mx_dir)
commit_hash = os.path.join(mx_dir, 'COMMIT_HASH')
with open(commit_hash, 'r') as f:
ch = f.read().strip()
print('Commit Hash :', ch)
except ImportError:
print('No MXNet installed.')
except Exception as e:
import traceback
if not isinstance(e, IOError):
print("An error occured trying to import mxnet.")
print("This is very likely due to missing missing or incompatible library files.")
print(traceback.format_exc())
def check_os():
print('----------System Info----------')
print('Platform :', platform.platform())
print('system :', platform.system())
print('node :', platform.node())
print('release :', platform.release())
print('version :', platform.version())
def check_hardware():
print('----------Hardware Info----------')
print('machine :', platform.machine())
print('processor :', platform.processor())
if sys.platform.startswith('darwin'):
pipe = subprocess.Popen(('sysctl', '-a'), stdout=subprocess.PIPE)
output = pipe.communicate()[0]
for line in output.split(b'\n'):
if b'brand_string' in line or b'features' in line:
print(line.strip())
elif sys.platform.startswith('linux'):
subprocess.call(['lscpu'])
elif sys.platform.startswith('win32'):
subprocess.call(['wmic', 'cpu', 'get', 'name'])
def check_network(args):
print('----------Network Test----------')
if args.timeout > 0:
print('Setting timeout: {}'.format(args.timeout))
socket.setdefaulttimeout(10)
for region in args.region.strip().split(','):
r = region.strip().lower()
if not r:
continue
if r in REGIONAL_URLS:
URLS.update(REGIONAL_URLS[r])
else:
import warnings
warnings.warn('Region {} do not need specific test, please refer to global sites.'.format(r))
for name, url in URLS.items():
test_connection(name, url, args.timeout)
def exit():
print(colored("CTRL C pressed, do you want to exit ? y/n", "red"))
speak_text_cmd("CTRL C pressed, do you want to exit ? yes or no")
exit_opt = input(": ")
if exit_opt == 'y':
print(colored(": Bye " + username, 'green'))
speak_text_cmd("Bye " + username)
print(": Pyrra stop at:", datetime.now().strftime('%Y-%m-%d %H:%M:%S'), "on", platform.system(), "by", username)
sys.exit()
elif exit_opt == 'n':
voice_control_mode()
else:
print(colored(": Invalid option", 'red'))
speak_text_cmd("Invalid option")
exit()
def get_full_info():
print(colored(": Getting system info and network speed", 'blue'))
speak_text_cmd("Getting system info and network speed")
import platform, subprocess, sys, os
import socket, time
try:
from urllib.request import urlopen
from urllib.parse import urlparse
except ImportError:
from urlparse import urlparse
from urllib2 import urlopen
import argparse
args = parse_args()
if args.python:
check_python()
if args.pip:
check_pip()
if args.mxnet:
check_mxnet()
if args.os:
check_os()
if args.hardware:
check_hardware()
if args.network:
check_network(args)
def subdomain_scanner():
import requests
clear()
print(": Subdomain scanner lauch at", datetime.now().strftime('%Y-%m-%d %H:%M:%S'), "on", platform.system(), "by", username)
speak_text_cmd("Subdomain scanner lauch on" + platform.system() + "by" + username)
engine.runAndWait
print(colored(": What is the target(eg: google.com): ", 'blue'))
speak_text_cmd("What is the target ?")
domain = input(": ")
print(colored(": Domain set to " + domain, 'green'))
speak_text_cmd("Domain set to " + domain)
print(colored(": starting...", 'blue'))
speak_text_cmd("starting")
file = open("subdomains.txt")
content = file.read()
subdomains = content.splitlines()
for subdomain in subdomains:
url = f"http://{subdomain}.{domain}"
try:
requests.get(url)
except requests.ConnectionError:
pass
except KeyboardInterrupt:
print(": Subdomain scanner stop at ", datetime.now().strftime('%Y-%m-%d %H:%M:%S'), "on", platform.system(), "by", username)
voice_control_mode()
else:
print("[+] Discovered subdomain:", url, )
def portscan():
print(": port scan program launch at ", datetime.now().strftime('%Y-%m-%d %H:%M:%S'), "on", platform.system(), "by", username)
speak_text_cmd("port scan program launch at " + datetime.now().strftime('%Y-%m-%d %H:%M:%S') + "on" + platform.system() + "by" + username)
os.system('python portscan.py')
def ddos_attack():
print(": DDos program launch at ", datetime.now().strftime('%Y-%m-%d %H:%M:%S'), "on", platform.system(), "by", username)
speak_text_cmd("DDos program launch at " + datetime.now().strftime('%Y-%m-%d %H:%M:%S') + "on" + platform.system() + "by" + username)
os.system('python ddos.py')
def instagram_attack():
print(": Instagram bruteforce program launch at ", datetime.now().strftime('%Y-%m-%d %H:%M:%S'), "on", platform.system(), "by", username)
speak_text_cmd("Instagram bruteforce program launch at " + datetime.now().strftime('%Y-%m-%d %H:%M:%S') + "on" + platform.system() + "by" + username)
engine.runAndWait
print(colored("""
################# Instagram Bruteforce Program #################
# #
# modes: 0 => 32 bots; 1 => 16 bots; 2 => 8 bots; 3 => 4 bots #
# #
################################################################
""", 'green'))
print(colored(": Please enter the username: ", 'blue'))
speak_text_cmd("Please enter the username")
instaUsername = input()
print(colored(": Please enter the mode: ", 'blue'))
speak_text_cmd("Please enter the mode")
instaMode = input()
print(colored("The target username is:" + instaUsername + " and the crack mode is: " + instaMode, 'green'))
speak_text_cmd("The target username is: " + instaUsername + " and the crack mode is: " + instaMode)
print(colored(": Starting attack", 'blue'))
speak_text_cmd("Starting attack")
os.system('python instagram.py ' + instaUsername + ' passwords.txt ' + '-m '+ instaMode)
def credit():
print(colored("""
###################################################################
# Script code by Pyrra #
# #
# DDos script 1: Memcrashed ddos #
# Use python 3.8 #
# Speech recognition, pyttsx3, socket and more python module #
# Contact at [email protected] for advice #
# and be part of the developpers team #
# See my github page for more info(just search Pyrra) #
# #################################################################""", 'blue'))
def password_tester():
print(colored(": This program is for password tester, it will print the time taken for crack a password", 'blue'))
speak_text_cmd("This program is for password tester, it will print the time taken for crack a password")
clear()
print(": Password tester program launch at ", datetime.now().strftime('%Y-%m-%d %H:%M:%S'), "on", platform.system(), "by", username)
speak_text_cmd(": password tester program launch at " + datetime.now().strftime('%Y-%m-%d %H:%M:%S') + "on" + platform.system() + "by" + username)
print(": starting ")
speak_text_cmd("starting")
os.system('python BruteForcer.py')
def hash_crack_menu():
print("Hash crack program launch at ", datetime.now().strftime('%Y-%m-%d %H:%M:%S'), "on", platform.system(), "by", username)
speak_text_cmd("Hash crack program launch at " + datetime.now().strftime('%Y-%m-%d %H:%M:%S') + "on" + platform.system() + "by"+ username)
clear()
#YOU CAN GENERATE A MD5 PASSWORD HERE --> https://passwordsgenerator.net/md5-hash-generator/
os.system('python md5_cracker.py')
def manual_mode():
clear()
print(colored("""
██▓███ ▓██ ██▓ ██▀███ ██▀███ ▄▄▄
▓██░ ██▒▒██ ██▒▓██ ▒ ██▒▓██ ▒ ██▒▒████▄
▓██░ ██▓▒ ▒██ ██░▓██ ░▄█ ▒▓██ ░▄█ ▒▒██ ▀█▄
▒██▄█▓▒ ▒ ░ ▐██▓░▒██▀▀█▄ ▒██▀▀█▄ ░██▄▄▄▄██
▒██▒ ░ ░ ░ ██▒▓░░██▓ ▒██▒░██▓ ▒██▒ ▓█ ▓██▒
▒▓▒░ ░ ░ ██▒▒▒ ░ ▒▓ ░▒▓░░ ▒▓ ░▒▓░ ▒▒ ▓▒█░
░▒ ░ ▓██ ░▒░ ░▒ ░ ▒░ ░▒ ░ ▒░ ▒ ▒▒ ░
░░ ▒ ▒ ░░ ░░ ░ ░░ ░ ░ ▒
░ ░ ░ ░ ░ ░
░ ░
""", 'green'))
print(": Pyrra manual control mode launch at:", datetime.now().strftime('%Y-%m-%d %H:%M:%S'), "on", platform.system(), "by", username,)
speak_text_cmd('Pyrra launch at:' + datetime.now().strftime('%Y-%m-%d %H:%M:%S') + 'on' + platform.system() + 'by'+ username)
print(colored(": Hello " + username, 'green'))
speak_text_cmd('Hello' + username)
print(colored(': What can I do for you ?', 'blue'))
speak_text_cmd('What can I do for you ?')
while True:
try:
menu_opt = input(': ')
if 'get server ip' in menu_opt:
get_server_ip()
continue
elif 'website response code' in menu_opt:
get_website_response_code()
continue
elif 'voice control mode' in menu_opt:
print(colored(": Do you want to enter voice control mode ? y/n", 'green'))
speak_text_cmd("Do you want to enter voice control mode ? yes or no")
voice_control_opt = input(": ")
if voice_control_opt == 'y':
voice_control_mode()
elif voice_control_opt == 'n':
continue
else:
print(": Invalid option")
speak_text_cmd('Invalid option')
continue
elif 'get server info' in menu_opt:
get_server_info()
continue
elif 'get system info' in menu_opt:
get_full_info()
continue
elif 'ddos attack' in menu_opt:
ddos_attack()
continue
elif 'exit' in menu_opt:
print(colored(": Bye " + username, 'blue'))
speak_text_cmd("Bye " + username)
print(": Pyrra stop at: ", datetime.now().strftime('%Y-%m-%d %H:%M:%S'), "on", platform.system(), "by", username)
quit()
elif 'credit' in menu_opt:
credit()
continue
elif 'facebook bruteforce' in menu_opt:
print(colored(": Launching facebook bruteforce program...", 'green'))
speak_text_cmd("Launching facebook bruteforce program")
os.system('python fb.py')
continue
elif 'instagram bruteforce' in menu_opt:
instagram_attack()
continue
elif 'subdomain scanner' in menu_opt:
subdomain_scanner()
continue
elif 'exit' in menu_opt:
print(colored(": Bye " + username, 'blue'))
speak_text_cmd("Bye " + username)
print(": Pyrra stop at:", datetime.now().strftime('%Y-%m-%d %H:%M:%S'), "on", platform.system(), "by", username)
quit()
elif 'password tester' in menu_opt:
password_tester()
continue
elif 'hash crack' in menu_opt:
hash_crack_menu()
continue
else:
print(colored("Error: no command found", 'red'))
speak_text_cmd("Error, no command found")
except KeyboardInterrupt:
exit()
def read_voice_cmd():
voice_text = ''
print(colored(': Listening...', 'yellow'))
with sr.Microphone() as source:
audio = speech.listen(source)
try:
#voice_text = speech.recognize_bing(audio)
voice_text = speech.recognize_google(audio)
except sr.UnknownValueError:
pass
except sr.RequestError as e:
print('Network error.')
return voice_text
# MAIN PART
def voice_control_mode():
clear()
print(colored("""
██▓███ ▓██ ██▓ ██▀███ ██▀███ ▄▄▄
▓██░ ██▒▒██ ██▒▓██ ▒ ██▒▓██ ▒ ██▒▒████▄
▓██░ ██▓▒ ▒██ ██░▓██ ░▄█ ▒▓██ ░▄█ ▒▒██ ▀█▄
▒██▄█▓▒ ▒ ░ ▐██▓░▒██▀▀█▄ ▒██▀▀█▄ ░██▄▄▄▄██
▒██▒ ░ ░ ░ ██▒▓░░██▓ ▒██▒░██▓ ▒██▒ ▓█ ▓██▒
▒▓▒░ ░ ░ ██▒▒▒ ░ ▒▓ ░▒▓░░ ▒▓ ░▒▓░ ▒▒ ▓▒█░
░▒ ░ ▓██ ░▒░ ░▒ ░ ▒░ ░▒ ░ ▒░ ▒ ▒▒ ░
░░ ▒ ▒ ░░ ░░ ░ ░░ ░ ░ ▒
░ ░ ░ ░ ░ ░
░ ░
""", 'green'))
print(": Pyrra launch at:", datetime.now().strftime('%Y-%m-%d %H:%M:%S'), "on", platform.system(), "by", username,)
speak_text_cmd('Pyrra launch at:' + datetime.now().strftime('%Y-%m-%d %H:%M:%S') + 'on'+ platform.system() + 'by'+ username)
print(colored(": Hello " + username, 'blue'))
speak_text_cmd('Hello' + username)
print(colored(': What can I do for you ?', 'blue'))
speak_text_cmd('What can I do for you ?')
while True:
try:
voice_note = read_voice_cmd()
print(colored(': {}'.format(voice_note), 'green'))
if 'get server IP' in voice_note:
get_server_ip()
continue
elif 'website source code' in voice_note:
get_website_response_code()
continue
elif 'manual mode' in voice_note:
print(colored(": Entering manual input and control mode", 'red'))
speak_text_cmd('Entering manual control mode')
manual_mode()
continue
elif 'get server info' in voice_note:
get_server_info()
continue
elif 'get system info' in voice_note:
get_full_info()
continue
elif 'DDOS attack' in voice_note:
ddos_attack()
continue
elif 'exit' in voice_note:
print(colored(": Bye " + username, 'blue'))
speak_text_cmd("Bye " + username)
print(": Pyrra stop at:", datetime.now().strftime('%Y-%m-%d %H:%M:%S'), "on", platform.system(), "by", username)
quit()
elif 'credit' in voice_note:
credit()
continue
elif 'facebook bruteforce' in voice_note:
print(colored(": Launching facebook bruteforce program...", 'blue'))
speak_text_cmd("Launching facebook bruteforce program")
os.system('python fb.py')
continue
elif 'instagram bruteforce' in voice_note:
instagram_attack()
continue
elif 'subdomain scanner' in voice_note:
subdomain_scanner()
continue
elif 'password tester' in voice_note:
password_tester()
continue
elif 'hash crack' in voice_note:
hash_crack_menu()
continue
else:
print(colored(": No command detected, do you want to enter manual control mode ? y/n", 'red'))
speak_text_cmd("No command detect detected, do you want to enter manual control mode ? yes or no")
manual_control_opt = input(": ")
if manual_control_opt == 'y':
manual_mode()
elif manual_control_opt == 'n':
pass
else:
print(": Invalid option")
speak_text_cmd('Invalid option')
continue
except KeyboardInterrupt:
exit()
if __name__ == '__main__':
voice_control_mode()