-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathmavoc.py
39 lines (30 loc) · 1.35 KB
/
mavoc.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
import bcrypt
import subprocess
print("""
┌┬┐┌─┐┬ ┬┌─┐┌─┐ ┌─┐┌┐┌┌┬┐┬┬ ┬┬┬─┐┬ ┬┌─┐
│││├─┤└┐┌┘│ ││ ├─┤│││ │ │└┐┌┘│├┬┘│ │└─┐
┴ ┴┴ ┴ └┘ └─┘└─┘ ┴ ┴┘└┘ ┴ ┴ └┘ ┴┴└─└─┘└─┘
~ By Smukx
""")
def verify_password(hashed_password, input_password):
return bcrypt.checkpw(input_password.encode('utf-8'), hashed_password)
try:
with open("core/log_auth.txt", "rb") as file:
stored_hashed_password = file.read()
except FileNotFoundError:
print("Password file not found. Please set up authentication.")
exit()
entered_password = input("Enter your password: ")
if verify_password(stored_hashed_password, entered_password):
print("Password is correct. Logging in...")
script_path = r'mavoc.ps1'
ask = input("Do you need to start with schedule scanning ? [y / n] : ")
if (ask == 'y'):
subprocess.run(["powershell.exe", "-ExecutionPolicy", "Bypass", "-File", script_path], shell=True)
elif(ask == 'n'):
subprocess.run(["python3" , "framework.py"], shell=True)
else:
print("Please Provide proper input . Exiting")
exit()
else:
print("Incorrect password. Exiting...")